Module org.eclipse.persistence.core
Class UnaryTableSequence
java.lang.Object
org.eclipse.persistence.sequencing.Sequence
org.eclipse.persistence.sequencing.StandardSequence
org.eclipse.persistence.sequencing.QuerySequence
org.eclipse.persistence.sequencing.UnaryTableSequence
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Hold the name of the only column in multiple single-column tablesprotected String
protected String
protected int
protected String
protected String
protected int
Fields inherited from class org.eclipse.persistence.sequencing.QuerySequence
selectQuery, shouldAcquireValueAfterInsert, shouldSelectBeforeUpdate, shouldSkipUpdate, shouldUseTransaction, updateQuery, wasSelectQueryCreated, wasUpdateQueryCreated
Fields inherited from class org.eclipse.persistence.sequencing.Sequence
depth, initialValue, isCustomQualifier, name, platform, qualifier, shouldAlwaysOverrideExistingValue, size
-
Constructor Summary
ConstructorDescriptionUnaryTableSequence
(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) -
Method Summary
Modifier and TypeMethodDescriptionprotected ValueReadQuery
buildSelectQuery
(String seqName, Integer size) INTERNAL:protected void
protected DataModifyQuery
buildUpdateQuery
(String seqName, Number size) INTERNAL:protected void
protected void
protected void
clear()
boolean
int
hashCode()
protected void
boolean
void
INTERNAL:void
INTERNAL:void
setCounterFieldName
(String name) Methods inherited from class org.eclipse.persistence.sequencing.QuerySequence
buildSelectQuery, buildUpdateQuery, createArguments, getSelectQuery, getUpdateQuery, select, setSelectQuery, setShouldAcquireValueAfterInsert, setShouldSelectBeforeUpdate, setShouldSkipUpdate, setShouldUseTransaction, setUpdateQuery, shouldAcquireValueAfterInsert, shouldSelectBeforeUpdate, shouldSkipUpdate, shouldUseTransaction, update, updateAndSelectSequence
Methods inherited from class org.eclipse.persistence.sequencing.StandardSequence
createVector, createVectorAtNextVal, getGeneratedValue, getGeneratedVector, setInitialValue
Methods inherited from class org.eclipse.persistence.sequencing.Sequence
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
-
Field Details
-
counterFieldName
Hold the name of the only column in multiple single-column tables -
updateString1
-
updateString2
-
selectString1
-
selectString2
-
updateStringBufferSize
protected int updateStringBufferSize -
selectStringBufferSize
protected int selectStringBufferSize
-
-
Constructor Details
-
UnaryTableSequence
public UnaryTableSequence() -
UnaryTableSequence
Create a new sequence with the name. -
UnaryTableSequence
Create a new sequence with the name and sequence pre-allocation size. -
UnaryTableSequence
-
UnaryTableSequence
-
-
Method Details
-
isUnaryTable
public boolean isUnaryTable()- Overrides:
isUnaryTable
in classSequence
-
equals
- Overrides:
equals
in classQuerySequence
-
hashCode
public int hashCode()- Overrides:
hashCode
in classQuerySequence
-
setCounterFieldName
-
getCounterFieldName
-
onConnect
public void onConnect()INTERNAL:- Overrides:
onConnect
in classQuerySequence
-
onDisconnect
public void onDisconnect()INTERNAL:- Overrides:
onDisconnect
in classQuerySequence
-
buildSelectQuery
Description copied from class:QuerySequence
INTERNAL:- Overrides:
buildSelectQuery
in classQuerySequence
-
buildUpdateQuery
Description copied from class:QuerySequence
INTERNAL:- Overrides:
buildUpdateQuery
in classQuerySequence
-
initialize
protected void initialize() -
buildUpdateString1
protected void buildUpdateString1() -
buildUpdateString2
protected void buildUpdateString2() -
buildSelectString1
protected void buildSelectString1() -
clear
protected void clear()
-