Module org.eclipse.persistence.jpa
Class DirectColumnMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.columns.MetadataColumn
org.eclipse.persistence.internal.jpa.metadata.columns.DirectColumnMetadata
- Direct Known Subclasses:
ColumnMetadata
,OrderColumnMetadata
INTERNAL:
Object to hold onto relation (fk and pk) column metadata in a Eclipselink
database field.
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
DirectColumnMetadata
(String xmlElement) INTERNAL: Used for XML loading.DirectColumnMetadata
(MetadataAnnotation directColumn, MetadataAccessor accessor) INTERNAL: Used annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:INTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.int
hashCode()
void
setInsertable
(Boolean insertable) INTERNAL: Used for OX mapping.void
setNullable
(Boolean nullable) INTERNAL: Used for OX mapping.void
setUpdatable
(Boolean updatable) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.columns.MetadataColumn
getColumnDefinition, getName, setColumnDefinition, setName
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
-
DirectColumnMetadata
INTERNAL: Used annotation loading. -
DirectColumnMetadata
INTERNAL: Used for XML loading.
-
-
Method Details
-
equals
INTERNAL:- Overrides:
equals
in classMetadataColumn
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMetadataColumn
-
getDatabaseField
INTERNAL:- Overrides:
getDatabaseField
in classMetadataColumn
-
getInsertable
INTERNAL: Used for OX mapping. -
getNullable
INTERNAL: Used for OX mapping. -
getUpdatable
INTERNAL: Used for OX mapping. -
setInsertable
INTERNAL: Used for OX mapping. -
setNullable
INTERNAL: Used for OX mapping. -
setUpdatable
INTERNAL: Used for OX mapping.
-