public class SequenceMapping extends SequenceMetaData
SequenceMetaData.SequenceFactory
Modifier and Type | Field and Description |
---|---|
static String |
IMPL_CLASS_TABLE
ClassTableJDBCSeq alias. |
static String |
IMPL_TABLE
TableJDBCSeq alias. |
static String |
IMPL_VALUE_TABLE
ValueTableJDBCSeq alias. |
IMPL_NATIVE, IMPL_TIME, NAME_SYSTEM
SRC_ANNOTATIONS, SRC_OTHER, SRC_XML
EMPTY_COMMENTS
Constructor and Description |
---|
SequenceMapping(DBIdentifier name,
MappingRepository repos)
Sequence names are a kernel object so DBIdentifiers must be converted to
strings
|
SequenceMapping(String name,
MappingRepository repos)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addStandardProperties(StringBuilder props)
Add standard properties to the given properties buffer.
|
File |
getMappingFile()
Allow sequence to have a mapping file separate from its metadata
source file.
|
String |
getPrimaryKeyColumn()
Deprecated.
|
DBIdentifier |
getPrimaryKeyColumnIdentifier() |
String |
getPrimaryKeyValue()
Primary key value, if not auto-determined.
|
String |
getSequenceColumn()
Deprecated.
|
DBIdentifier |
getSequenceColumnIdentifier() |
String |
getTable()
Deprecated.
|
DBIdentifier |
getTableIdentifier() |
String[] |
getUniqueColumns()
Deprecated.
|
DBIdentifier[] |
getUniqueColumnsIdentifier() |
DBIdentifier |
getUniqueConstraintIdentifier() |
String |
getUniqueConstraintName()
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 |
setTable(String table)
Deprecated.
|
void |
setTableIdentifier(DBIdentifier table) |
void |
setUniqueColumns(String[] cols)
Deprecated.
|
void |
setUniqueColumnsIdentifier(DBIdentifier[] cols) |
void |
setUniqueConstraintIdentifier(DBIdentifier name) |
void |
setUniqueConstraintName(String name)
Deprecated.
|
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
public static final String IMPL_VALUE_TABLE
ValueTableJDBCSeq
alias.public static final String IMPL_TABLE
TableJDBCSeq
alias.public static final String IMPL_CLASS_TABLE
ClassTableJDBCSeq
alias.@Deprecated public SequenceMapping(String name, MappingRepository repos)
name
- repos
- public SequenceMapping(DBIdentifier name, MappingRepository repos)
name
- repos
- public File getMappingFile()
public void setMappingFile(File file)
@Deprecated public String getTable()
public DBIdentifier getTableIdentifier()
@Deprecated public void setTable(String table)
public void setTableIdentifier(DBIdentifier table)
@Deprecated public String getSequenceColumn()
public DBIdentifier getSequenceColumnIdentifier()
@Deprecated public void setSequenceColumn(String sequenceColumn)
public void setSequenceColumnIdentifier(DBIdentifier sequenceColumn)
@Deprecated public String getPrimaryKeyColumn()
public DBIdentifier getPrimaryKeyColumnIdentifier()
@Deprecated public void setPrimaryKeyColumn(String primaryKeyColumn)
public void setPrimaryKeyColumnIdentifier(DBIdentifier primaryKeyColumn)
public String getPrimaryKeyValue()
public void setPrimaryKeyValue(String primaryKeyValue)
@Deprecated public void setUniqueColumns(String[] cols)
cols
- public void setUniqueColumnsIdentifier(DBIdentifier[] cols)
@Deprecated public String[] getUniqueColumns()
public DBIdentifier[] getUniqueColumnsIdentifier()
protected PluginValue newPluginValue(String property)
SequenceMetaData
SeqValue
by default.newPluginValue
in class SequenceMetaData
protected void addStandardProperties(StringBuilder props)
SequenceMetaData
addStandardProperties
in class SequenceMetaData
@Deprecated public void setUniqueConstraintName(String name)
name
- public void setUniqueConstraintIdentifier(DBIdentifier name)
@Deprecated public String getUniqueConstraintName()
public DBIdentifier getUniqueConstraintIdentifier()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.