public class UnaryTableSequence extends QuerySequence
Purpose: Defines sequencing through using a singleton sequence table.
Description This is similar to the TableSequence but the sequence table only stores a single row defining a single sequence.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
counterFieldName
Hold the name of the only column in multiple single-column tables
|
protected java.lang.String |
selectString1 |
protected java.lang.String |
selectString2 |
protected int |
selectStringBufferSize |
protected java.lang.String |
updateString1 |
protected java.lang.String |
updateString2 |
protected int |
updateStringBufferSize |
selectQuery, shouldAcquireValueAfterInsert, shouldSelectBeforeUpdate, shouldSkipUpdate, shouldUseTransaction, updateQuery, wasSelectQueryCreated, wasUpdateQueryCreated
depth, initialValue, isCustomQualifier, name, platform, qualifier, shouldAlwaysOverrideExistingValue, size
Constructor and Description |
---|
UnaryTableSequence() |
UnaryTableSequence(java.lang.String name)
Create a new sequence with the name.
|
UnaryTableSequence(java.lang.String name,
int size)
Create a new sequence with the name and sequence pre-allocation size.
|
UnaryTableSequence(java.lang.String name,
int size,
java.lang.String counterFieldName) |
UnaryTableSequence(java.lang.String name,
java.lang.String counterFieldName) |
Modifier and Type | Method and Description |
---|---|
protected ValueReadQuery |
buildSelectQuery(java.lang.String seqName,
java.lang.Integer size)
INTERNAL:
|
protected void |
buildSelectString1() |
protected DataModifyQuery |
buildUpdateQuery(java.lang.String seqName,
java.lang.Number size)
INTERNAL:
|
protected void |
buildUpdateString1() |
protected void |
buildUpdateString2() |
protected void |
clear() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCounterFieldName() |
protected void |
initialize() |
boolean |
isUnaryTable() |
void |
onConnect()
INTERNAL:
|
void |
onDisconnect()
INTERNAL:
|
void |
setCounterFieldName(java.lang.String name) |
buildSelectQuery, buildUpdateQuery, createArguments, getSelectQuery, getUpdateQuery, select, setSelectQuery, setShouldAcquireValueAfterInsert, setShouldSelectBeforeUpdate, setShouldSkipUpdate, setShouldUseTransaction, setUpdateQuery, shouldAcquireValueAfterInsert, shouldSelectBeforeUpdate, shouldSkipUpdate, shouldUseTransaction, update, updateAndSelectSequence
createVector, getGeneratedValue, getGeneratedVector, setInitialValue
clone, equalNameAndSize, getDatasourcePlatform, getGeneratedValue, getGeneratedVector, getInitialValue, getName, getPreallocationSize, getQualified, getQualifier, isConnected, isCustomQualifier, isNative, isTable, onConnect, onDisconnect, setDatasourcePlatform, setName, setPreallocationSize, setQualifier, setShouldAlwaysOverrideExistingValue, shouldAlwaysOverrideExistingValue, shouldAlwaysOverrideExistingValue, shouldUsePreallocation, toString, verifyPlatform
protected java.lang.String counterFieldName
protected java.lang.String updateString1
protected java.lang.String updateString2
protected java.lang.String selectString1
protected java.lang.String selectString2
protected int updateStringBufferSize
protected int selectStringBufferSize
public UnaryTableSequence()
public UnaryTableSequence(java.lang.String name)
public UnaryTableSequence(java.lang.String name, int size)
public UnaryTableSequence(java.lang.String name, java.lang.String counterFieldName)
public UnaryTableSequence(java.lang.String name, int size, java.lang.String counterFieldName)
public boolean isUnaryTable()
isUnaryTable
in class Sequence
public boolean equals(java.lang.Object obj)
equals
in class QuerySequence
public void setCounterFieldName(java.lang.String name)
public java.lang.String getCounterFieldName()
public void onConnect()
onConnect
in class QuerySequence
public void onDisconnect()
onDisconnect
in class QuerySequence
protected ValueReadQuery buildSelectQuery(java.lang.String seqName, java.lang.Integer size)
QuerySequence
buildSelectQuery
in class QuerySequence
protected DataModifyQuery buildUpdateQuery(java.lang.String seqName, java.lang.Number size)
QuerySequence
buildUpdateQuery
in class QuerySequence
protected void initialize()
protected void buildUpdateString1()
protected void buildUpdateString2()
protected void buildSelectString1()
protected void clear()