Module org.eclipse.persistence.jpa
Class ConverterAccessor
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ConverterAccessor
Object to represent a converter class.
Key notes:
- any metadata mapped from XML to this class must be compared in the
equals method.
- any metadata mapped from XML to this class must be handled in the merge
method. (merging is done at the accessor/mapping level)
- any metadata mapped from XML to this class must be initialized in the
initXMLObject method.
- methods should be preserved in alphabetical order.
- Since:
- EclipseLink 2.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MetadataClassprotected Booleanprotected Stringprotected MetadataClassFields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project -
Constructor Summary
ConstructorsConstructorDescriptionINTERNAL: Used for XML loading.ConverterAccessor(MetadataAnnotation converter, MetadataClass metadataClass, MetadataProject project) INTERNAL: -
Method Summary
Modifier and TypeMethodDescriptionbooleanINTERNAL: Return true if this converter should auto applybooleanINTERNAL: Used for metadata merging.INTERNAL: Return the type this converter will auto apply to.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: To satisfy the abstract getIdentifier() method from ORMetadata.INTERNAL:inthashCode()protected voidINTERNAL: Do some validation and initialize the attribute converter classficiation classes.voidinitXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL: Any subclass that cares to do any more initialization (e.g.voidmerge(ORMetadata metadata) INTERNAL: Entity level merging details.voidprocess(DatabaseMapping mapping, boolean isForMapKey, String attributeName) INTERNAL: Process this converter for the given mapping.voidprocess(DatabaseMapping mapping, boolean isForMapKey, String attributeName, boolean disableConversion) INTERNAL: Process this converter for the given mapping.voidsetAutoApply(Boolean autoApply) INTERNAL: Used for OX mapping.voidsetClassName(String className) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Field Details
-
className
-
autoApply
-
attributeClassification
-
fieldClassification
-
-
Constructor Details
-
ConverterAccessor
public ConverterAccessor()INTERNAL: Used for XML loading. -
ConverterAccessor
public ConverterAccessor(MetadataAnnotation converter, MetadataClass metadataClass, MetadataProject project) INTERNAL:
-
-
Method Details
-
autoApply
public boolean autoApply()INTERNAL: Return true if this converter should auto apply -
equals
INTERNAL: Used for metadata merging.- Specified by:
equalsin classORMetadata
-
hashCode
public int hashCode() -
getAutoApply
INTERNAL: Used for OX mapping. -
getAttributeClassification
INTERNAL: Return the type this converter will auto apply to. -
getClassName
INTERNAL: Used for OX mapping. -
getIdentifier
INTERNAL: To satisfy the abstract getIdentifier() method from ORMetadata.- Overrides:
getIdentifierin classORMetadata- See Also:
-
getJavaClassName
INTERNAL: -
initClassificationClasses
INTERNAL: Do some validation and initialize the attribute converter classficiation classes. -
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL: Any subclass that cares to do any more initialization (e.g. initialize a class) should override this method.- Overrides:
initXMLObjectin classORMetadata
-
merge
INTERNAL: Entity level merging details.- Overrides:
mergein classORMetadata
-
process
INTERNAL: Process this converter for the given mapping. -
process
public void process(DatabaseMapping mapping, boolean isForMapKey, String attributeName, boolean disableConversion) INTERNAL: Process this converter for the given mapping. -
setAutoApply
INTERNAL: Used for OX mapping. -
setClassName
INTERNAL: Used for OX mapping.
-