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 String |
counterFieldName
Hold the name of the only column in multiple single-column tables
|
protected String |
selectString1 |
protected String |
selectString2 |
protected int |
selectStringBufferSize |
protected String |
updateString1 |
protected String |
updateString2 |
protected int |
updateStringBufferSize |
selectQuery, shouldAcquireValueAfterInsert, shouldSelectBeforeUpdate, shouldSkipUpdate, shouldUseTransaction, updateQuery, wasSelectQueryCreated, wasUpdateQueryCreateddepth, initialValue, isCustomQualifier, name, platform, qualifier, shouldAlwaysOverrideExistingValue, size| Constructor and Description |
|---|
UnaryTableSequence() |
UnaryTableSequence(String name)
Create a new sequence with the name.
|
UnaryTableSequence(String name,
int size)
Create a new sequence with the name and sequence pre-allocation size.
|
UnaryTableSequence(String name,
int size,
String counterFieldName) |
UnaryTableSequence(String name,
String counterFieldName) |
| Modifier and Type | Method and Description |
|---|---|
protected ValueReadQuery |
buildSelectQuery(String seqName,
Integer size)
INTERNAL:
|
protected void |
buildSelectString1() |
protected DataModifyQuery |
buildUpdateQuery(String seqName,
Number size)
INTERNAL:
|
protected void |
buildUpdateString1() |
protected void |
buildUpdateString2() |
protected void |
clear() |
boolean |
equals(Object obj) |
String |
getCounterFieldName() |
int |
hashCode() |
protected void |
initialize() |
boolean |
isUnaryTable() |
void |
onConnect()
INTERNAL:
|
void |
onDisconnect()
INTERNAL:
|
void |
setCounterFieldName(String name) |
buildSelectQuery, buildUpdateQuery, createArguments, getSelectQuery, getUpdateQuery, select, setSelectQuery, setShouldAcquireValueAfterInsert, setShouldSelectBeforeUpdate, setShouldSkipUpdate, setShouldUseTransaction, setUpdateQuery, shouldAcquireValueAfterInsert, shouldSelectBeforeUpdate, shouldSkipUpdate, shouldUseTransaction, update, updateAndSelectSequencecreateVector, createVectorAtNextVal, getGeneratedValue, getGeneratedVector, setInitialValueclone, equalNameAndSize, getDatasourcePlatform, getGeneratedValue, getGeneratedVector, getInitialValue, getName, getPreallocationSize, getQualified, getQualifier, isConnected, isCustomQualifier, isNative, isTable, onConnect, onDisconnect, setDatasourcePlatform, setName, setPreallocationSize, setQualifier, setShouldAlwaysOverrideExistingValue, shouldAlwaysOverrideExistingValue, shouldAlwaysOverrideExistingValue, shouldUsePreallocation, toString, verifyPlatformprotected String counterFieldName
protected String updateString1
protected String updateString2
protected String selectString1
protected String selectString2
protected int updateStringBufferSize
protected int selectStringBufferSize
public UnaryTableSequence()
public UnaryTableSequence(String name)
public UnaryTableSequence(String name, int size)
public boolean isUnaryTable()
isUnaryTable in class Sequencepublic boolean equals(Object obj)
equals in class QuerySequencepublic int hashCode()
hashCode in class QuerySequencepublic void setCounterFieldName(String name)
public String getCounterFieldName()
public void onConnect()
onConnect in class QuerySequencepublic void onDisconnect()
onDisconnect in class QuerySequenceprotected ValueReadQuery buildSelectQuery(String seqName, Integer size)
QuerySequencebuildSelectQuery in class QuerySequenceprotected DataModifyQuery buildUpdateQuery(String seqName, Number size)
QuerySequencebuildUpdateQuery in class QuerySequenceprotected void initialize()
protected void buildUpdateString1()
protected void buildUpdateString2()
protected void buildSelectString1()
protected void clear()
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.