Module org.eclipse.persistence.jpa
Class ComplexTypeMetadata
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.metadata.ORMetadata
-
- org.eclipse.persistence.internal.jpa.metadata.queries.ComplexTypeMetadata
-
- Direct Known Subclasses:
OracleComplexTypeMetadata,PLSQLComplexTypeMetadata
public abstract class ComplexTypeMetadata extends ORMetadata
INTERNAL: Object to hold onto complex type meta-data, including PL/SQL records and collections, as well as advanced Oracle JDBC types. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - all metadata mapped from XML should be initialized in the initXMLObject 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 2.5
- Author:
- David McCann
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringname-
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
-
Constructor Summary
Constructors Constructor Description ComplexTypeMetadata(String element)INTERNAL: Used for XML loading.ComplexTypeMetadata(MetadataAnnotation record, MetadataAccessor accessor)INTERNAL: Used for annotation loading.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)INTERNAL:StringgetIdentifier()INTERNAL: The unique identifier of named subgraph metadata.StringgetName()INTERNAL: Used for OX mapping.inthashCode()booleanisOracleComplexTypeMetadata()Indicates an instance of OracleComplexTypeMetadata.booleanisPLSQLComplexTypeMetadata()Indicates an instance of PLSQLComplexTypeMetadata.abstract ComplexDatabaseTypeprocess()Build a runtime type from the meta-data.protected voidprocess(ComplexDatabaseType type)Build a runtime record type from the meta-data.voidsetName(String name)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, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
-
-
-
Field Detail
-
name
protected String name
-
-
Constructor Detail
-
ComplexTypeMetadata
public ComplexTypeMetadata(String element)
INTERNAL: Used for XML loading.
-
ComplexTypeMetadata
public ComplexTypeMetadata(MetadataAnnotation record, MetadataAccessor accessor)
INTERNAL: Used for annotation loading.
-
-
Method Detail
-
equals
public boolean equals(Object objectToCompare)
INTERNAL:- Specified by:
equalsin classORMetadata
-
getIdentifier
public String getIdentifier()
INTERNAL: The unique identifier of named subgraph metadata.
-
getName
public String getName()
INTERNAL: Used for OX mapping.
-
process
public abstract ComplexDatabaseType process()
Build a runtime type from the meta-data.
-
process
protected void process(ComplexDatabaseType type)
Build a runtime record type from the meta-data.
-
setName
public void setName(String name)
INTERNAL: Used for OX mapping.
-
isOracleComplexTypeMetadata
public boolean isOracleComplexTypeMetadata()
Indicates an instance of OracleComplexTypeMetadata.
-
isPLSQLComplexTypeMetadata
public boolean isPLSQLComplexTypeMetadata()
Indicates an instance of PLSQLComplexTypeMetadata.
-
-