Module org.eclipse.persistence.jpa
Class SequenceGeneratorMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.sequencing.SequenceGeneratorMetadata
A wrapper class to the MetadataSequenceGenerator that holds onto a
@SequenceGenerator for its metadata values.
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
ConstructorsConstructorDescriptionINTERNAL: Used for XML loading.SequenceGeneratorMetadata(String sequenceName, Integer allocationSize, String catalog, String schema, boolean useIdentityIfPlatformSupports) INTERNAL This constructor is used to create a default sequence generator.SequenceGeneratorMetadata(String sequenceName, String catalog, String schema) INTERNAL This constructor is used to create a default sequence generator.SequenceGeneratorMetadata(MetadataAnnotation sequenceGenerator, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionbooleanINTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL:INTERNAL: To satisfy the abstract getIdentifier() method from ORMetadata.INTERNAL: Used for OX mapping.getName()INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL:INTERNAL: Used for OX mapping.inthashCode()process(MetadataLogger logger) INTERNAL:INTERNAL: Used for processing.voidsetAllocationSize(Integer allocationSize) INTERNAL: Used for OX mapping.voidsetCatalog(String catalog) INTERNAL: Used for OX mapping.voidsetInitialValue(Integer initialValue) INTERNAL: Used for OX mapping.voidINTERNAL: Used for OX mapping.voidINTERNAL: Used for OX mapping.voidsetSequenceName(String sequenceName) INTERNAL: Used for OX mapping.toString()INTERNAL: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
-
SequenceGeneratorMetadata
public SequenceGeneratorMetadata()INTERNAL: Used for XML loading. -
SequenceGeneratorMetadata
INTERNAL: Used for annotation loading. -
SequenceGeneratorMetadata
public SequenceGeneratorMetadata(String sequenceName, Integer allocationSize, String catalog, String schema, boolean useIdentityIfPlatformSupports) INTERNAL This constructor is used to create a default sequence generator.- See Also:
-
SequenceGeneratorMetadata
INTERNAL This constructor is used to create a default sequence generator.- See Also:
-
-
Method Details
-
equals
INTERNAL:- Specified by:
equalsin classORMetadata
-
hashCode
public int hashCode() -
getAllocationSize
INTERNAL: Used for OX mapping. -
getCatalog
INTERNAL: Used for OX mapping. -
getCatalogContext
INTERNAL: -
getIdentifier
INTERNAL: To satisfy the abstract getIdentifier() method from ORMetadata.- Overrides:
getIdentifierin classORMetadata- See Also:
-
getInitialValue
INTERNAL: Used for OX mapping. -
getName
INTERNAL: Used for OX mapping. -
getSchema
INTERNAL: Used for OX mapping. -
getSchemaContext
INTERNAL: -
getSequenceName
INTERNAL: Used for OX mapping. -
process
INTERNAL: -
processQualifier
INTERNAL: Used for processing. -
setAllocationSize
INTERNAL: Used for OX mapping. -
setCatalog
INTERNAL: Used for OX mapping. -
setInitialValue
INTERNAL: Used for OX mapping. -
setName
INTERNAL: Used for OX mapping. -
setSchema
INTERNAL: Used for OX mapping. -
setSequenceName
INTERNAL: Used for OX mapping. -
toString
INTERNAL:
-