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
ConstructorsModifierConstructorDescriptionINTERNAL: Used for XML loading.protectedTableMetadata(String xmlElement) INTERNAL: Used for XML loading.TableMetadata(MetadataAnnotation table, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionbooleanINTERNAL: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.inthashCode()voidinitXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:voidINTERNAL: Process the creation suffix.voidINTERNAL: Process any foreign key metadata for this table.voidINTERNAL: Process the index metadata for this table.voidINTERNAL: 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.voidINTERNAL: Used for OX mapping.voidINTERNAL: 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 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:
equalsin 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:
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
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:
-