Module org.eclipse.persistence.jpa
Class MetadataHelper
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.MetadataHelper
INTERNAL:
Common helper methods for the metadata processing.
- Since:
- TopLink EJB 3.0 Reference Implementation
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
getCanonicalName
(String name, Map<String, Object> properties) INTERNAL: Return the canonical name.static Class
<?> getClassForName
(String classname, ClassLoader loader) INTERNAL: Load a class from a given class name.static String
INTERNAL: Helper method to return a field name from a candidate field name and a default field name.static String
getQualifiedCanonicalName
(String qualifiedName, Map<String, Object> properties) INTERNAL: Return the canonical name applying any default package.static String
getQualifiedCanonicalName
(String qualifiedName, AbstractSession session) INTERNAL: Return the qualified canonical name of the given qualified class name.static Integer
INTERNAL: Helper method to return a string value if specified, otherwise returns the default value.static String
INTERNAL: Helper method to return a string value if specified, otherwise returns the default value.
-
Field Details
-
JPA_ORM_FILE
- See Also:
-
ECLIPSELINK_ORM_FILE
- See Also:
-
-
Method Details
-
getCanonicalName
INTERNAL: Return the canonical name. This will apply the prefix and suffix qualifiers given to the canonical name. If the given prefix is null, the the default "" is applied. If the given suffix is null, then the default "_" will be applied. -
getClassForName
INTERNAL: Load a class from a given class name. (XMLEntityMappings calls this one) -
getName
public static String getName(String name, String defaultName, String context, MetadataLogger logger, Object location) INTERNAL: Helper method to return a field name from a candidate field name and a default field name. Requires the context from where this method is called to output the correct logging message when defaulting the field name. In some cases, both the name and defaultName could be "" or null, therefore, don't log a message and return name. -
getQualifiedCanonicalName
INTERNAL: Return the qualified canonical name of the given qualified class name. This method will check the session for a corresponding class that was processed during deploy. If one is not found, will build the canonical name applying any default package and the default suffix qualifier "_". -
getQualifiedCanonicalName
INTERNAL: Return the canonical name applying any default package. This will apply the prefix and suffix qualifiers given to the canonical name. If the prefix is null, the default "" is applied. If the suffix is null, then the default "_" will be applied. -
getValue
INTERNAL: Helper method to return a string value if specified, otherwise returns the default value. -
getValue
INTERNAL: Helper method to return a string value if specified, otherwise returns the default value.
-