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
public class TableMetadata extends ORMetadata
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
- Author:
- Guy Pelletier
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
-
Constructor Summary
Constructors Modifier Constructor Description TableMetadata()INTERNAL: Used for XML loading.protectedTableMetadata(String xmlElement)INTERNAL: Used for XML loading.TableMetadata(MetadataAnnotation table, MetadataAccessor accessor)INTERNAL: Used for annotation loading.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)INTERNAL:StringgetCatalog()INTERNAL: Used for OX mapping.StringgetCatalogContext()INTERNAL:StringgetCreationSuffix()INTERNAL: Used for OX mapping.DatabaseTablegetDatabaseTable()INTERNAL:List<IndexMetadata>getIndexes()INTERNAL: Used for OX mapping.StringgetName()INTERNAL: Used for OX mapping.StringgetNameContext()INTERNAL:StringgetSchema()INTERNAL: Used for OX mapping.StringgetSchemaContext()INTERNAL:List<UniqueConstraintMetadata>getUniqueConstraints()INTERNAL: Used for OX mapping.inthashCode()voidinitXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)INTERNAL:voidprocessCreationSuffix()INTERNAL: Process the creation suffix.voidprocessForeignKey()INTERNAL: Process any foreign key metadata for this table.voidprocessIndexes()INTERNAL: Process the index metadata for this table.voidprocessUniqueConstraints()INTERNAL: Add the unique constraints to the database table.voidsetCatalog(String catalog)INTERNAL: Used for OX mapping.voidsetCreationSuffix(String creationSuffix)INTERNAL: Used for OX mapping.voidsetDatabaseTable(DatabaseTable databaseTable)INTERNAL:voidsetFullyQualifiedTableName(String fullyQualifiedTableName)INTERNAL:voidsetIndexes(List<IndexMetadata> indexes)INTERNAL: Used for OX mapping.voidsetName(String name)INTERNAL: Used for OX mapping.voidsetSchema(String schema)INTERNAL: Used for OX mapping.voidsetUniqueConstraints(List<UniqueConstraintMetadata> uniqueConstraints)INTERNAL: Used for OX mapping.voidsetUseDelimiters(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 Detail
-
TableMetadata
public TableMetadata()
INTERNAL: Used for XML loading.
-
TableMetadata
public TableMetadata(MetadataAnnotation table, MetadataAccessor accessor)
INTERNAL: Used for annotation loading.
-
TableMetadata
protected TableMetadata(String xmlElement)
INTERNAL: Used for XML loading.
-
-
Method Detail
-
equals
public boolean equals(Object objectToCompare)
INTERNAL:- Specified by:
equalsin classORMetadata
-
getCatalog
public String getCatalog()
INTERNAL: Used for OX mapping.
-
getCatalogContext
public String getCatalogContext()
INTERNAL:
-
getCreationSuffix
public String getCreationSuffix()
INTERNAL: Used for OX mapping.
-
getDatabaseTable
public DatabaseTable getDatabaseTable()
INTERNAL:
-
getIndexes
public List<IndexMetadata> getIndexes()
INTERNAL: Used for OX mapping.
-
getName
public String getName()
INTERNAL: Used for OX mapping.
-
getNameContext
public String getNameContext()
INTERNAL:
-
getSchema
public String getSchema()
INTERNAL: Used for OX mapping.
-
getSchemaContext
public String getSchemaContext()
INTERNAL:
-
getUniqueConstraints
public List<UniqueConstraintMetadata> getUniqueConstraints()
INTERNAL: Used for OX mapping.
-
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
INTERNAL:- Overrides:
initXMLObjectin 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
public void setFullyQualifiedTableName(String fullyQualifiedTableName)
INTERNAL:
-
setCatalog
public void setCatalog(String catalog)
INTERNAL: Used for OX mapping.
-
setCreationSuffix
public void setCreationSuffix(String creationSuffix)
INTERNAL: Used for OX mapping.
-
setDatabaseTable
public void setDatabaseTable(DatabaseTable databaseTable)
INTERNAL:
-
setIndexes
public void setIndexes(List<IndexMetadata> indexes)
INTERNAL: Used for OX mapping.
-
setName
public void setName(String name)
INTERNAL: Used for OX mapping.
-
setSchema
public void setSchema(String schema)
INTERNAL: Used for OX mapping.
-
setUniqueConstraints
public void setUniqueConstraints(List<UniqueConstraintMetadata> uniqueConstraints)
INTERNAL: Used for OX mapping.
-
setUseDelimiters
public void setUseDelimiters(boolean useDelimiters)
INTERNAL:
-
-