Module org.eclipse.persistence.jpa
Class SecondaryTableMetadata
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.metadata.ORMetadata
-
- org.eclipse.persistence.internal.jpa.metadata.tables.TableMetadata
-
- org.eclipse.persistence.internal.jpa.metadata.tables.SecondaryTableMetadata
-
public class SecondaryTableMetadata extends TableMetadata
INTERNAL: Object to hold onto a secondary 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 Constructor Description SecondaryTableMetadata()INTERNAL: Used for XML loading.SecondaryTableMetadata(MetadataAnnotation secondaryTable, MetadataAccessor accessor)INTERNAL: Used for annotation loading.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)INTERNAL:StringgetCatalogContext()INTERNAL:StringgetNameContext()INTERNAL:PrimaryKeyForeignKeyMetadatagetPrimaryKeyForeignKey()INTERNAL: Used for OX mapping.List<PrimaryKeyJoinColumnMetadata>getPrimaryKeyJoinColumns()INTERNAL: Used for OX mapping.StringgetSchemaContext()INTERNAL:inthashCode()voidinitXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)INTERNAL:voidprocessForeignKey()INTERNAL: Process any primary key foreign key specification for this table.voidsetPrimaryKeyForeignKey(PrimaryKeyForeignKeyMetadata primaryKeyForeignKey)INTERNAL: Used for OX mapping.voidsetPrimaryKeyJoinColumns(List<PrimaryKeyJoinColumnMetadata> primaryKeyJoinColumns)INTERNAL: Used for OX mapping.-
Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.tables.TableMetadata
getCatalog, getCreationSuffix, getDatabaseTable, getIndexes, getName, getSchema, getUniqueConstraints, processCreationSuffix, processIndexes, processUniqueConstraints, setCatalog, setCreationSuffix, setDatabaseTable, setFullyQualifiedTableName, setIndexes, setName, setSchema, setUniqueConstraints, setUseDelimiters
-
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
-
SecondaryTableMetadata
public SecondaryTableMetadata()
INTERNAL: Used for XML loading.
-
SecondaryTableMetadata
public SecondaryTableMetadata(MetadataAnnotation secondaryTable, MetadataAccessor accessor)
INTERNAL: Used for annotation loading.
-
-
Method Detail
-
equals
public boolean equals(Object objectToCompare)
INTERNAL:- Overrides:
equalsin classTableMetadata
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTableMetadata
-
getCatalogContext
public String getCatalogContext()
INTERNAL:- Overrides:
getCatalogContextin classTableMetadata
-
getNameContext
public String getNameContext()
INTERNAL:- Overrides:
getNameContextin classTableMetadata
-
getPrimaryKeyForeignKey
public PrimaryKeyForeignKeyMetadata getPrimaryKeyForeignKey()
INTERNAL: Used for OX mapping.
-
getPrimaryKeyJoinColumns
public List<PrimaryKeyJoinColumnMetadata> getPrimaryKeyJoinColumns()
INTERNAL: Used for OX mapping.
-
getSchemaContext
public String getSchemaContext()
INTERNAL:- Overrides:
getSchemaContextin classTableMetadata
-
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
INTERNAL:- Overrides:
initXMLObjectin classTableMetadata
-
processForeignKey
public void processForeignKey()
INTERNAL: Process any primary key foreign key specification for this table.- Overrides:
processForeignKeyin classTableMetadata
-
setPrimaryKeyForeignKey
public void setPrimaryKeyForeignKey(PrimaryKeyForeignKeyMetadata primaryKeyForeignKey)
INTERNAL: Used for OX mapping.
-
setPrimaryKeyJoinColumns
public void setPrimaryKeyJoinColumns(List<PrimaryKeyJoinColumnMetadata> primaryKeyJoinColumns)
INTERNAL: Used for OX mapping.
-
-