Module org.eclipse.persistence.jpa
Class MetadataConverter
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.converters.MetadataConverter
- Direct Known Subclasses:
AbstractConverterMetadata
,ClassInstanceMetadata
,EnumeratedMetadata
,JSONMetadata
,JsonValueMetadata
,KryoMetadata
,LobMetadata
,SerializedMetadata
,TemporalMetadata
,UUIDMetadata
,XMLMetadata
INTERNAL:
Abstract converter class that parents both the JPA and Eclipselink
converters.
Key notes:
- any metadata mapped from XML to this class must be compared in the
equals method.
- when loading from annotations, the constructor accepts the metadata
accessor this metadata was loaded from. Used it to look up any
'companion' annotation needed for processing.
- methods should be preserved in alphabetical order.
- Since:
- EclipseLink 1.2
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ModifierConstructorDescriptionprotected
INTERNAL: Used for defaulting case.protected
MetadataConverter
(String xmlElement) INTERNAL: Used for XML loading.protected
MetadataConverter
(MetadataAccessor accessor) INTERNAL: Used for defaulting.protected
MetadataConverter
(MetadataAnnotation converter, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:abstract void
process
(DatabaseMapping mapping, MappingAccessor accessor, MetadataClass referenceClass, boolean isForMapKey) INTERNAL: Every converter needs to be able to process themselves.protected void
setConverter
(DatabaseMapping mapping, Converter converter, boolean isForMapKey) INTERNAL:protected void
setConverterClassName
(DatabaseMapping mapping, String converterClassName, boolean isForMapKey) INTERNAL:protected void
setFieldClassification
(DatabaseMapping mapping, Class<?> classification, boolean isForMapKey) INTERNAL: Wrapper method to make sure we always set the classification name and not class.protected void
setFieldClassification
(DatabaseMapping mapping, MetadataClass classification, boolean isForMapKey) INTERNAL: Wrapper method to make sure we always set the classification name and not class.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getIdentifier, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Constructor Details
-
MetadataConverter
protected MetadataConverter()INTERNAL: Used for defaulting case. -
MetadataConverter
INTERNAL: Used for defaulting. -
MetadataConverter
INTERNAL: Used for annotation loading. -
MetadataConverter
INTERNAL: Used for XML loading.
-
-
Method Details
-
equals
INTERNAL:- Specified by:
equals
in classORMetadata
-
process
public abstract void process(DatabaseMapping mapping, MappingAccessor accessor, MetadataClass referenceClass, boolean isForMapKey) INTERNAL: Every converter needs to be able to process themselves. -
setConverter
INTERNAL: -
setConverterClassName
protected void setConverterClassName(DatabaseMapping mapping, String converterClassName, boolean isForMapKey) INTERNAL: -
setFieldClassification
protected void setFieldClassification(DatabaseMapping mapping, Class<?> classification, boolean isForMapKey) INTERNAL: Wrapper method to make sure we always set the classification name and not class. This class name will be initialized at run time with the real class loader. -
setFieldClassification
protected void setFieldClassification(DatabaseMapping mapping, MetadataClass classification, boolean isForMapKey) INTERNAL: Wrapper method to make sure we always set the classification name and not class. This class name will be initialized at run time with the real class loader.
-