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
Modifier and TypeFieldDescriptionstatic final String
ClassTableJDBCSeq
alias.static final String
TableJDBCSeq
alias.static final String
ValueTableJDBCSeq
alias.Fields inherited from class org.apache.openjpa.meta.SequenceMetaData
IMPL_NATIVE, IMPL_TIME, NAME_SYSTEM
Fields inherited from interface org.apache.openjpa.lib.xml.Commentable
EMPTY_COMMENTS
Fields inherited from interface org.apache.openjpa.lib.meta.SourceTracker
SRC_ANNOTATIONS, SRC_OTHER, SRC_XML
-
Constructor Summary
ConstructorDescriptionSequenceMapping
(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 void
Add 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 PluginValue
newPluginValue
(String property) Create a new plugin value for sequences.void
setMappingFile
(File file) Allow sequence to have a mapping file separate from its metadata source file.void
setPrimaryKeyColumn
(String primaryKeyColumn) Deprecated.void
setPrimaryKeyColumnIdentifier
(DBIdentifier primaryKeyColumn) void
setPrimaryKeyValue
(String primaryKeyValue) Primary key value, if not auto-determined.void
setSequenceColumn
(String sequenceColumn) Deprecated.void
setSequenceColumnIdentifier
(DBIdentifier sequenceColumn) void
Deprecated.void
setTableIdentifier
(DBIdentifier table) void
setUniqueColumns
(String[] cols) Deprecated.void
void
void
Deprecated.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
ValueTableJDBCSeq
alias.- See Also:
-
IMPL_TABLE
TableJDBCSeq
alias.- See Also:
-
IMPL_CLASS_TABLE
ClassTableJDBCSeq
alias.- 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:SequenceMetaData
Create a new plugin value for sequences. Returns a standardSeqValue
by default.- Overrides:
newPluginValue
in classSequenceMetaData
-
addStandardProperties
Description copied from class:SequenceMetaData
Add standard properties to the given properties buffer.- Overrides:
addStandardProperties
in classSequenceMetaData
-
setUniqueConstraintName
Deprecated.- Parameters:
name
-
-
setUniqueConstraintIdentifier
-
getUniqueConstraintName
Deprecated. -
getUniqueConstraintIdentifier
-