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, wasUpdateQueryCreated
depth, 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, updateAndSelectSequence
createVector, createVectorAtNextVal, 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 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 Sequence
public boolean equals(Object obj)
equals
in class QuerySequence
public int hashCode()
hashCode
in class QuerySequence
public void setCounterFieldName(String name)
public String getCounterFieldName()
public void onConnect()
onConnect
in class QuerySequence
public void onDisconnect()
onDisconnect
in class QuerySequence
protected ValueReadQuery buildSelectQuery(String seqName, Integer size)
QuerySequence
buildSelectQuery
in class QuerySequence
protected DataModifyQuery buildUpdateQuery(String seqName, Number size)
QuerySequence
buildUpdateQuery
in class QuerySequence
protected void initialize()
protected void buildUpdateString1()
protected void buildUpdateString2()
protected void buildSelectString1()
protected void clear()
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.