super.convertClassNamesToClasses(classLoader); if (getAttributeClassificationName() != null) { Class attributeClass = null; try{ if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ try { attributeClass = AccessController.doPrivileged(new PrivilegedClassForName(getAttributeClassificationName(), true, classLoader)); } catch (PrivilegedActionException exception) { throw ValidationException.classNotFoundWhileConvertingClassNames(getAttributeClassificationName(), exception.getException()); attributeClass = PrivilegedAccessHelper.getClassForName(getAttributeClassificationName(), true, classLoader); throw ValidationException.classNotFoundWhileConvertingClassNames(getAttributeClassificationName(), exc);
super.convertClassNamesToClasses(classLoader); if (getAttributeClassificationName() != null) { Class attributeClass = null; try{ if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ try { attributeClass = AccessController.doPrivileged(new PrivilegedClassForName(getAttributeClassificationName(), true, classLoader)); } catch (PrivilegedActionException exception) { throw ValidationException.classNotFoundWhileConvertingClassNames(getAttributeClassificationName(), exception.getException()); attributeClass = PrivilegedAccessHelper.getClassForName(getAttributeClassificationName(), true, classLoader); throw ValidationException.classNotFoundWhileConvertingClassNames(getAttributeClassificationName(), exc);
super.convertClassNamesToClasses(classLoader); if (getAttributeClassificationName() != null) { Class attributeClass = null; try{ if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ try { attributeClass = (Class)AccessController.doPrivileged(new PrivilegedClassForName(getAttributeClassificationName(), true, classLoader)); } catch (PrivilegedActionException exception) { throw ValidationException.classNotFoundWhileConvertingClassNames(getAttributeClassificationName(), exception.getException()); attributeClass = org.eclipse.persistence.internal.security.PrivilegedAccessHelper.getClassForName(getAttributeClassificationName(), true, classLoader); throw ValidationException.classNotFoundWhileConvertingClassNames(getAttributeClassificationName(), exc);
/** * Use the database mapping for an attribute to find it's type. The type returned will either be * the field type of the field in the object or the type returned by the getter method. */ private MetadataClass getAttributeTypeFromClass(MetadataClass metadataClass, String attributeName, DatabaseMapping mapping, boolean checkSuperclass){ String getterMethod = mapping.getGetMethodName(); if (mapping.isAbstractDirectMapping() && mapping.getAttributeAccessor().isVirtualAttributeAccessor()){ return metadataClass.getMetadataClass(((AbstractDirectMapping)mapping).getAttributeClassificationName()); } else if (mapping != null && getterMethod != null) { MetadataMethod method = metadataClass.getMethod(getterMethod, new ArrayList(), checkSuperclass); if (method == null) { return null; } return method.getMetadataClass(method.getReturnType()); } else { MetadataField field = metadataClass.getField(attributeName, checkSuperclass); if (field == null) { return null; } return field.getMetadataClass(field.getType()); } }
String typeName = ((AbstractDirectMapping) mapping).getAttributeClassificationName(); if (typeName != null) {
String typeName = ((AbstractDirectMapping) mapping).getAttributeClassificationName(); if (typeName != null) {
String typeName = ((AbstractDirectMapping) mapping).getAttributeClassificationName(); if (typeName != null) {