Module org.eclipse.persistence.jpa
Class IndexMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.tables.IndexMetadata
INTERNAL:
Object to hold onto database index metadata.
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:
- EclipseLink 2.2
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ConstructorDescriptionINTERNAL: Used for OX mapping.IndexMetadata
(MetadataAnnotation index, MetadataAccessor accessor) INTERNAL: -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.protected String
INTERNAL: Sub classes that can uniquely be identified must override this method to allow the overriding and merging to uniquely identify objects.getName()
INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.getTable()
INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.int
hashCode()
protected boolean
hasName()
INTERNAL: Return true is a name has been specified for this index.protected boolean
isUnique()
INTERNAL: Return true is there is a unique setting for this index.void
process
(DatabaseTable table) INTERNAL: Process the index metadata.void
process
(MetadataDescriptor descriptor, String defaultColumnName) INTERNAL: Process the index metadata.protected String
processName
(DatabaseTable table, IndexDefinition indexDefinition) INTERNAL: Process the name.void
setCatalog
(String catalog) INTERNAL: Used for OX mapping.void
setColumnList
(String columnList) INTERNAL: Used for OX mapping.void
setColumnNames
(List<String> columnNames) INTERNAL: Used for OX mapping.void
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.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, 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
-
IndexMetadata
public IndexMetadata()INTERNAL: Used for OX mapping. -
IndexMetadata
INTERNAL:
-
-
Method Details
-
equals
INTERNAL:- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getCatalog
INTERNAL: Used for OX mapping. -
getColumnList
INTERNAL: Used for OX mapping. -
getColumnNames
INTERNAL: Used for OX mapping. -
getIdentifier
INTERNAL: Sub classes that can uniquely be identified must override this method to allow the overriding and merging to uniquely identify objects. It will also be used when logging messages, that is, to provide a more detailed message.- Overrides:
getIdentifier
in classORMetadata
- See Also:
-
getName
INTERNAL: Used for OX mapping. -
getSchema
INTERNAL: Used for OX mapping. -
getTable
INTERNAL: Used for OX mapping. -
getUnique
INTERNAL: Used for OX mapping. -
hasName
protected boolean hasName()INTERNAL: Return true is a name has been specified for this index. -
isUnique
protected boolean isUnique()INTERNAL: Return true is there is a unique setting for this index. -
process
INTERNAL: Process the index metadata. This is called from all table metadata. CollectionTable, SecondaryTable, JoinTable, Table, TableGenerator. -
process
INTERNAL: Process the index metadata. This is called from EntityAccessor and BasicAccesor (for Basic, Id and Version) -
processName
INTERNAL: Process the name. If specified it, use it, otherwise create a default. e.g. INDEX_tablename_field1_field2_..... -
setCatalog
INTERNAL: Used for OX mapping. -
setColumnList
INTERNAL: Used for OX mapping. -
setColumnNames
INTERNAL: Used for OX mapping. -
setName
INTERNAL: Used for OX mapping. -
setSchema
INTERNAL: Used for OX mapping. -
setTable
INTERNAL: Used for OX mapping. -
setUnique
INTERNAL: Used for OX mapping.
-