Package org.apache.openjpa.jdbc.meta
Class SequenceMapping
java.lang.Object
org.apache.openjpa.meta.SequenceMetaData
org.apache.openjpa.jdbc.meta.SequenceMapping
- All Implemented Interfaces:
Serializable,SourceTracker,Closeable,Commentable,MetaDataContext
Specialization of sequence metadata for ORM.
- Author:
- Abe White
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.openjpa.meta.SequenceMetaData
SequenceMetaData.SequenceFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringClassTableJDBCSeqalias.static final StringTableJDBCSeqalias.static final StringValueTableJDBCSeqalias.Fields inherited from class org.apache.openjpa.meta.SequenceMetaData
IMPL_NATIVE, IMPL_TIME, NAME_SYSTEMFields inherited from interface org.apache.openjpa.lib.xml.Commentable
EMPTY_COMMENTSFields inherited from interface org.apache.openjpa.lib.meta.SourceTracker
SRC_ANNOTATIONS, SRC_OTHER, SRC_XML -
Constructor Summary
ConstructorsConstructorDescriptionSequenceMapping(String name, MappingRepository repos) Deprecated.SequenceMapping(DBIdentifier name, MappingRepository repos) Sequence names are a kernel object so DBIdentifiers must be converted to strings -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd standard properties to the given properties buffer.Allow sequence to have a mapping file separate from its metadata source file.Deprecated.Primary key value, if not auto-determined.Deprecated.getTable()Deprecated.String[]Deprecated.Deprecated.protected PluginValuenewPluginValue(String property) Create a new plugin value for sequences.voidsetMappingFile(File file) Allow sequence to have a mapping file separate from its metadata source file.voidsetPrimaryKeyColumn(String primaryKeyColumn) Deprecated.voidsetPrimaryKeyColumnIdentifier(DBIdentifier primaryKeyColumn) voidsetPrimaryKeyValue(String primaryKeyValue) Primary key value, if not auto-determined.voidsetSequenceColumn(String sequenceColumn) Deprecated.voidsetSequenceColumnIdentifier(DBIdentifier sequenceColumn) voidDeprecated.voidsetTableIdentifier(DBIdentifier table) voidsetUniqueColumns(String[] cols) Deprecated.voidvoidvoidDeprecated.Methods inherited from class org.apache.openjpa.meta.SequenceMetaData
appendProperty, appendProperty, close, getAllocate, getCatalog, getColNumber, getComments, getIncrement, getInitialValue, getInstance, getLineNumber, getName, getRepository, getResourceName, getSchema, getSequence, getSequenceFactory, getSequencePlugin, getSourceFile, getSourceScope, getSourceType, getType, instantiate, setAllocate, setCatalog, setColNumber, setComments, setIncrement, setInitialValue, setLineNumber, setSchema, setSequence, setSequenceFactory, setSequencePlugin, setSource, setType, toString, wrapValue
-
Field Details
-
IMPL_VALUE_TABLE
ValueTableJDBCSeqalias.- See Also:
-
IMPL_TABLE
TableJDBCSeqalias.- See Also:
-
IMPL_CLASS_TABLE
ClassTableJDBCSeqalias.- See Also:
-
-
Constructor Details
-
SequenceMapping
Deprecated.- Parameters:
name-repos-
-
SequenceMapping
Sequence names are a kernel object so DBIdentifiers must be converted to strings- Parameters:
name-repos-
-
-
Method Details
-
getMappingFile
Allow sequence to have a mapping file separate from its metadata source file. -
setMappingFile
Allow sequence to have a mapping file separate from its metadata source file. -
getTable
Deprecated.Name of sequence table, if any. -
getTableIdentifier
-
setTable
Deprecated.Name of sequence table, if any. -
setTableIdentifier
-
getSequenceColumn
Deprecated.Name of sequence column, if any. -
getSequenceColumnIdentifier
-
setSequenceColumn
Deprecated.Name of sequence column, if any. -
setSequenceColumnIdentifier
-
getPrimaryKeyColumn
Deprecated.Name of primary key column, if any. -
getPrimaryKeyColumnIdentifier
-
setPrimaryKeyColumn
Deprecated.Name of primary key column, if any. -
setPrimaryKeyColumnIdentifier
-
getPrimaryKeyValue
Primary key value, if not auto-determined. -
setPrimaryKeyValue
Primary key value, if not auto-determined. -
setUniqueColumns
Deprecated.- Parameters:
cols-
-
setUniqueColumnsIdentifier
-
getUniqueColumns
Deprecated. -
getUniqueColumnsIdentifier
-
newPluginValue
Description copied from class:SequenceMetaDataCreate a new plugin value for sequences. Returns a standardSeqValueby default.- Overrides:
newPluginValuein classSequenceMetaData
-
addStandardProperties
Description copied from class:SequenceMetaDataAdd standard properties to the given properties buffer.- Overrides:
addStandardPropertiesin classSequenceMetaData
-
setUniqueConstraintName
Deprecated.- Parameters:
name-
-
setUniqueConstraintIdentifier
-
getUniqueConstraintName
Deprecated. -
getUniqueConstraintIdentifier
-