Class TableGeneratorMetaData
java.lang.Object
org.datanucleus.metadata.MetaData
org.datanucleus.metadata.TableGeneratorMetaData
- All Implemented Interfaces:
Serializable
Representation of the MetaData of a TableGenerator (JPA).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longAllocation size for ids from the table.protected StringName of the catalog to use for the tableprotected longInitial value in the table.protected final StringName under which this table generator is known.protected StringName of the primary-key column nameprotected StringName of the primary-key column valueprotected StringName of the schema to use for the tableprivate static final longprotected StringName of the table to use for sequencesprotected StringName of the value column nameFields inherited from class 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 -
Method Summary
Modifier and TypeMethodDescriptionlongConvenience accessor for the fully-qualified name of the sequence.longgetName()setAllocationSize(long allocationSize) setAllocationSize(String allocationSize) setCatalogName(String catalogName) setInitialValue(long initialValue) setInitialValue(String initialValue) setPKColumnName(String pkColumnName) setPKColumnValue(String pkColumnValue) setSchemaName(String schemaName) setTableName(String tableName) setValueColumnName(String valueColumnName) Methods inherited from class MetaData
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setInitialised, setParent, setPopulated, setUsed
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
Name under which this table generator is known. -
tableName
Name of the table to use for sequences -
catalogName
Name of the catalog to use for the table -
schemaName
Name of the schema to use for the table -
pkColumnName
Name of the primary-key column name -
valueColumnName
Name of the value column name -
pkColumnValue
Name of the primary-key column value -
initialValue
protected long initialValueInitial value in the table. -
allocationSize
protected long allocationSizeAllocation size for ids from the table.
-
-
Constructor Details
-
TableGeneratorMetaData
TableGeneratorMetaData(String name) Constructor. Create via PackageMetaData.newTableGeneratorMetaData(...)- Parameters:
name- The generator name
-
-
Method Details
-
getFullyQualifiedName
Convenience accessor for the fully-qualified name of the sequence.- Returns:
- Fully qualfiied name of the sequence (including the package name).
-
getName
-
getTableName
-
setTableName
-
getCatalogName
-
setCatalogName
-
getSchemaName
-
setSchemaName
-
getPKColumnName
-
setPKColumnName
-
getValueColumnName
-
setValueColumnName
-
getPKColumnValue
-
setPKColumnValue
-
getInitialValue
public long getInitialValue() -
setInitialValue
-
setInitialValue
-
getAllocationSize
public long getAllocationSize() -
setAllocationSize
-
setAllocationSize
-