Module org.eclipse.persistence.jpa
Class TableMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.tables.TableMetadata
- Direct Known Subclasses:
RelationalTableMetadata
,SecondaryTableMetadata
,TableGeneratorMetadata
INTERNAL:
Object to hold onto table metadata in a TopLink database table.
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
TableMetadata
(String xmlElement) INTERNAL: Used for XML loading.TableMetadata
(MetadataAnnotation table, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:INTERNAL: Used for OX mapping.INTERNAL:INTERNAL: Used for OX mapping.INTERNAL:INTERNAL: Used for OX mapping.getName()
INTERNAL: Used for OX mapping.INTERNAL:INTERNAL: Used for OX mapping.INTERNAL:INTERNAL: Used for OX mapping.int
hashCode()
void
initXMLObject
(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:void
INTERNAL: Process the creation suffix.void
INTERNAL: Process any foreign key metadata for this table.void
INTERNAL: Process the index metadata for this table.void
INTERNAL: Add the unique constraints to the database table.void
setCatalog
(String catalog) INTERNAL: Used for OX mapping.void
setCreationSuffix
(String creationSuffix) INTERNAL: Used for OX mapping.void
setDatabaseTable
(DatabaseTable databaseTable) INTERNAL:void
setFullyQualifiedTableName
(String fullyQualifiedTableName) INTERNAL:void
setIndexes
(List<IndexMetadata> indexes) INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.void
setUniqueConstraints
(List<UniqueConstraintMetadata> uniqueConstraints) INTERNAL: Used for OX mapping.void
setUseDelimiters
(boolean useDelimiters) INTERNAL: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, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Constructor Details
-
TableMetadata
public TableMetadata()INTERNAL: Used for XML loading. -
TableMetadata
INTERNAL: Used for annotation loading. -
TableMetadata
INTERNAL: Used for XML loading.
-
-
Method Details
-
equals
INTERNAL:- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getCatalog
INTERNAL: Used for OX mapping. -
getCatalogContext
INTERNAL: -
getCreationSuffix
INTERNAL: Used for OX mapping. -
getDatabaseTable
INTERNAL: -
getIndexes
INTERNAL: Used for OX mapping. -
getName
INTERNAL: Used for OX mapping. -
getNameContext
INTERNAL: -
getSchema
INTERNAL: Used for OX mapping. -
getSchemaContext
INTERNAL: -
getUniqueConstraints
INTERNAL: Used for OX mapping. -
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:- Overrides:
initXMLObject
in classORMetadata
-
processCreationSuffix
public void processCreationSuffix()INTERNAL: Process the creation suffix. -
processIndexes
public void processIndexes()INTERNAL: Process the index metadata for this table. -
processForeignKey
public void processForeignKey()INTERNAL: Process any foreign key metadata for this table. -
processUniqueConstraints
public void processUniqueConstraints()INTERNAL: Add the unique constraints to the database table. -
setFullyQualifiedTableName
INTERNAL: -
setCatalog
INTERNAL: Used for OX mapping. -
setCreationSuffix
INTERNAL: Used for OX mapping. -
setDatabaseTable
INTERNAL: -
setIndexes
INTERNAL: Used for OX mapping. -
setName
INTERNAL: Used for OX mapping. -
setSchema
INTERNAL: Used for OX mapping. -
setUniqueConstraints
INTERNAL: Used for OX mapping. -
setUseDelimiters
public void setUseDelimiters(boolean useDelimiters) INTERNAL:
-