Module org.eclipse.persistence.jpa
Class ColumnMetadata
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
org.eclipse.persistence.internal.jpa.metadata.columns.ColumnMetadata
- Direct Known Subclasses:
FieldMetadata
INTERNAL: Object to process a JPA column into an 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:
- TopLink EJB 3.0 Reference Implementation
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ModifierConstructorDescriptionINTERNAL: Used for XML loading.protected
ColumnMetadata
(String xmlElement) INTERNAL: Used for XML loading.ColumnMetadata
(MetadataAccessor accessor) INTERNAL: Used for defaulting.ColumnMetadata
(MetadataAnnotation column, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:INTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.getScale()
INTERNAL: Used for OX mapping.getTable()
INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.int
hashCode()
void
INTERNAL: Used for OX mapping.void
setPrecision
(Integer precision) INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.columns.DirectColumnMetadata
getInsertable, getNullable, getUpdatable, setInsertable, setNullable, setUpdatable
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
-
ColumnMetadata
public ColumnMetadata()INTERNAL: Used for XML loading. -
ColumnMetadata
INTERNAL: Used for XML loading. -
ColumnMetadata
INTERNAL: Used for defaulting. -
ColumnMetadata
INTERNAL: Used for annotation loading.
-
-
Method Details
-
equals
INTERNAL:- Overrides:
equals
in classDirectColumnMetadata
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDirectColumnMetadata
-
getDatabaseField
INTERNAL:- Overrides:
getDatabaseField
in classDirectColumnMetadata
-
getLength
INTERNAL: Used for OX mapping. -
getPrecision
INTERNAL: Used for OX mapping. -
getScale
INTERNAL: Used for OX mapping. -
getTable
INTERNAL: Used for OX mapping. -
getUnique
INTERNAL: Used for OX mapping. -
setLength
INTERNAL: Used for OX mapping. -
setPrecision
INTERNAL: Used for OX mapping. -
setScale
INTERNAL: Used for OX mapping. -
setTable
INTERNAL: Used for OX mapping. -
setUnique
INTERNAL: Used for OX mapping.
-