Package org.datanucleus.metadata
Class SequenceMetaData
- java.lang.Object
-
- org.datanucleus.metadata.MetaData
-
- org.datanucleus.metadata.SequenceMetaData
-
- All Implemented Interfaces:
Serializable
public class SequenceMetaData extends MetaData
Representation of the MetaData of a named Sequence (JDO, or JPA).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intallocationSizeAllocation size for the sequence.protected StringcatalogNameprotected StringdatastoreSequenceDatastore Sequence nameprotected StringfactoryClassfactory class name (JDO).protected intinitialValueInitial value of the sequence.protected StringnameName under which this sequence generator is known.protected StringschemaNameprotected SequenceStrategystrategyStrategy for this sequence (JDO).-
Fields inherited from class org.datanucleus.metadata.MetaData
EXTENSION_CLASS_CREATETIMESTAMP, EXTENSION_CLASS_CREATETIMESTAMP_COLUMN_NAME, EXTENSION_CLASS_CREATEUSER, EXTENSION_CLASS_CREATEUSER_COLUMN_LENGTH, EXTENSION_CLASS_CREATEUSER_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_COLUMN_LENGTH, EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_JDBC_TYPE, EXTENSION_CLASS_MULTITENANT, EXTENSION_CLASS_READ_ONLY, EXTENSION_CLASS_SOFTDELETE, EXTENSION_CLASS_SOFTDELETE_COLUMN_NAME, EXTENSION_CLASS_UPDATETIMESTAMP, EXTENSION_CLASS_UPDATETIMESTAMP_COLUMN_NAME, EXTENSION_CLASS_UPDATEUSER, EXTENSION_CLASS_UPDATEUSER_COLUMN_LENGTH, EXTENSION_CLASS_UPDATEUSER_COLUMN_NAME, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_CLASS_VIEW_DEFINITION, EXTENSION_CLASS_VIEW_IMPORTS, EXTENSION_INDEX_COLUMN_ORDERING, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_ATTACH, EXTENSION_MEMBER_CASCADE_DETACH, EXTENSION_MEMBER_CASCADE_PERSIST, EXTENSION_MEMBER_CASCADE_REFRESH, EXTENSION_MEMBER_COMPARATOR_NAME, EXTENSION_MEMBER_CONTAINER_ALLOW_NULLS, EXTENSION_MEMBER_CREATE_TIMESTAMP, EXTENSION_MEMBER_CREATE_USER, EXTENSION_MEMBER_ENUM_VALUE_GETTER, EXTENSION_MEMBER_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_INSERTABLE, EXTENSION_MEMBER_KEY_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_LIST_ORDERING, EXTENSION_MEMBER_RELATION_DISCRIM_COLUMN, EXTENSION_MEMBER_RELATION_DISCRIM_PK, EXTENSION_MEMBER_RELATION_DISCRIM_VALUE, EXTENSION_MEMBER_STRATEGY_WHEN_NOTNULL, EXTENSION_MEMBER_TYPE_CONVERTER_DISABLED, EXTENSION_MEMBER_TYPE_CONVERTER_NAME, EXTENSION_MEMBER_UPDATE_TIMESTAMP, EXTENSION_MEMBER_UPDATE_USER, EXTENSION_MEMBER_UPDATEABLE, EXTENSION_MEMBER_VALUE_IMPLEMENTATION_CLASSES, EXTENSION_VERSION_NUMBER_INITIAL_VALUE, extensions, metaDataState, parent, VENDOR_NAME
-
-
Constructor Summary
Constructors Constructor Description SequenceMetaData(String name, String strategyValue)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAllocationSize()StringgetCatalogName()StringgetDatastoreSequence()StringgetFactoryClass()StringgetFullyQualifiedName()Convenience accessor for the fully-qualified name of the sequence.intgetInitialValue()StringgetName()StringgetSchemaName()SequenceStrategygetStrategy()SequenceMetaDatasetAllocationSize(int allocationSize)SequenceMetaDatasetAllocationSize(String allocationSize)SequenceMetaDatasetCatalogName(String name)SequenceMetaDatasetDatastoreSequence(String datastoreSequence)SequenceMetaDatasetFactoryClass(String factoryClass)SequenceMetaDatasetInitialValue(int initialValue)SequenceMetaDatasetInitialValue(String initialValue)SequenceMetaDatasetName(String name)SequenceMetaDatasetSchemaName(String name)SequenceMetaDatasetStrategy(SequenceStrategy strategy)-
Methods inherited from class org.datanucleus.metadata.MetaData
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setParent
-
-
-
-
Field Detail
-
name
protected String name
Name under which this sequence generator is known.
-
datastoreSequence
protected String datastoreSequence
Datastore Sequence name
-
factoryClass
protected String factoryClass
factory class name (JDO).
-
strategy
protected SequenceStrategy strategy
Strategy for this sequence (JDO).
-
initialValue
protected int initialValue
Initial value of the sequence.
-
allocationSize
protected int allocationSize
Allocation size for the sequence.
-
schemaName
protected String schemaName
-
catalogName
protected String catalogName
-
-
Method Detail
-
getFullyQualifiedName
public String getFullyQualifiedName()
Convenience accessor for the fully-qualified name of the sequence.- Returns:
- Fully-qualified name of the sequence (including the package name).
-
getName
public String getName()
-
setName
public SequenceMetaData setName(String name)
-
getCatalogName
public String getCatalogName()
-
setCatalogName
public SequenceMetaData setCatalogName(String name)
-
getSchemaName
public String getSchemaName()
-
setSchemaName
public SequenceMetaData setSchemaName(String name)
-
getStrategy
public SequenceStrategy getStrategy()
-
setStrategy
public SequenceMetaData setStrategy(SequenceStrategy strategy)
-
getDatastoreSequence
public String getDatastoreSequence()
-
setDatastoreSequence
public SequenceMetaData setDatastoreSequence(String datastoreSequence)
-
getFactoryClass
public String getFactoryClass()
-
setFactoryClass
public SequenceMetaData setFactoryClass(String factoryClass)
-
getInitialValue
public int getInitialValue()
-
setInitialValue
public SequenceMetaData setInitialValue(int initialValue)
-
setInitialValue
public SequenceMetaData setInitialValue(String initialValue)
-
getAllocationSize
public int getAllocationSize()
-
setAllocationSize
public SequenceMetaData setAllocationSize(int allocationSize)
-
setAllocationSize
public SequenceMetaData setAllocationSize(String allocationSize)
-
-