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
public class SequenceMapping extends SequenceMetaData
Specialization of sequence metadata for ORM.- Author:
 - Abe White
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class org.apache.openjpa.meta.SequenceMetaData
SequenceMetaData.SequenceFactory 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static StringIMPL_CLASS_TABLEClassTableJDBCSeqalias.static StringIMPL_TABLETableJDBCSeqalias.static StringIMPL_VALUE_TABLEValueTableJDBCSeqalias.- 
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
Constructors Constructor Description SequenceMapping(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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddStandardProperties(StringBuilder props)Add standard properties to the given properties buffer.FilegetMappingFile()Allow sequence to have a mapping file separate from its metadata source file.StringgetPrimaryKeyColumn()Deprecated.DBIdentifiergetPrimaryKeyColumnIdentifier()StringgetPrimaryKeyValue()Primary key value, if not auto-determined.StringgetSequenceColumn()Deprecated.DBIdentifiergetSequenceColumnIdentifier()StringgetTable()Deprecated.DBIdentifiergetTableIdentifier()String[]getUniqueColumns()Deprecated.DBIdentifier[]getUniqueColumnsIdentifier()DBIdentifiergetUniqueConstraintIdentifier()StringgetUniqueConstraintName()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)voidsetTable(String table)Deprecated.voidsetTableIdentifier(DBIdentifier table)voidsetUniqueColumns(String[] cols)Deprecated.voidsetUniqueColumnsIdentifier(DBIdentifier[] cols)voidsetUniqueConstraintIdentifier(DBIdentifier name)voidsetUniqueConstraintName(String name)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 Detail
- 
IMPL_VALUE_TABLE
public static final String IMPL_VALUE_TABLE
ValueTableJDBCSeqalias.- See Also:
 - Constant Field Values
 
 
- 
IMPL_TABLE
public static final String IMPL_TABLE
TableJDBCSeqalias.- See Also:
 - Constant Field Values
 
 
- 
IMPL_CLASS_TABLE
public static final String IMPL_CLASS_TABLE
ClassTableJDBCSeqalias.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
SequenceMapping
@Deprecated public SequenceMapping(String name, MappingRepository repos)
Deprecated.- Parameters:
 name-repos-
 
- 
SequenceMapping
public SequenceMapping(DBIdentifier name, MappingRepository repos)
Sequence names are a kernel object so DBIdentifiers must be converted to strings- Parameters:
 name-repos-
 
 - 
 
- 
Method Detail
- 
getMappingFile
public File getMappingFile()
Allow sequence to have a mapping file separate from its metadata source file. 
- 
setMappingFile
public void setMappingFile(File file)
Allow sequence to have a mapping file separate from its metadata source file. 
- 
getTable
@Deprecated public String getTable()
Deprecated.Name of sequence table, if any. 
- 
getTableIdentifier
public DBIdentifier getTableIdentifier()
 
- 
setTable
@Deprecated public void setTable(String table)
Deprecated.Name of sequence table, if any. 
- 
setTableIdentifier
public void setTableIdentifier(DBIdentifier table)
 
- 
getSequenceColumn
@Deprecated public String getSequenceColumn()
Deprecated.Name of sequence column, if any. 
- 
getSequenceColumnIdentifier
public DBIdentifier getSequenceColumnIdentifier()
 
- 
setSequenceColumn
@Deprecated public void setSequenceColumn(String sequenceColumn)
Deprecated.Name of sequence column, if any. 
- 
setSequenceColumnIdentifier
public void setSequenceColumnIdentifier(DBIdentifier sequenceColumn)
 
- 
getPrimaryKeyColumn
@Deprecated public String getPrimaryKeyColumn()
Deprecated.Name of primary key column, if any. 
- 
getPrimaryKeyColumnIdentifier
public DBIdentifier getPrimaryKeyColumnIdentifier()
 
- 
setPrimaryKeyColumn
@Deprecated public void setPrimaryKeyColumn(String primaryKeyColumn)
Deprecated.Name of primary key column, if any. 
- 
setPrimaryKeyColumnIdentifier
public void setPrimaryKeyColumnIdentifier(DBIdentifier primaryKeyColumn)
 
- 
getPrimaryKeyValue
public String getPrimaryKeyValue()
Primary key value, if not auto-determined. 
- 
setPrimaryKeyValue
public void setPrimaryKeyValue(String primaryKeyValue)
Primary key value, if not auto-determined. 
- 
setUniqueColumns
@Deprecated public void setUniqueColumns(String[] cols)
Deprecated.- Parameters:
 cols-
 
- 
setUniqueColumnsIdentifier
public void setUniqueColumnsIdentifier(DBIdentifier[] cols)
 
- 
getUniqueColumns
@Deprecated public String[] getUniqueColumns()
Deprecated. 
- 
getUniqueColumnsIdentifier
public DBIdentifier[] getUniqueColumnsIdentifier()
 
- 
newPluginValue
protected PluginValue newPluginValue(String property)
Description copied from class:SequenceMetaDataCreate a new plugin value for sequences. Returns a standardSeqValueby default.- Overrides:
 newPluginValuein classSequenceMetaData
 
- 
addStandardProperties
protected void addStandardProperties(StringBuilder props)
Description copied from class:SequenceMetaDataAdd standard properties to the given properties buffer.- Overrides:
 addStandardPropertiesin classSequenceMetaData
 
- 
setUniqueConstraintName
@Deprecated public void setUniqueConstraintName(String name)
Deprecated.- Parameters:
 name-
 
- 
setUniqueConstraintIdentifier
public void setUniqueConstraintIdentifier(DBIdentifier name)
 
- 
getUniqueConstraintName
@Deprecated public String getUniqueConstraintName()
Deprecated. 
- 
getUniqueConstraintIdentifier
public DBIdentifier getUniqueConstraintIdentifier()
 
 - 
 
 -