|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.sequencing.Sequence org.eclipse.persistence.sequencing.StandardSequence org.eclipse.persistence.sequencing.QuerySequence org.eclipse.persistence.sequencing.UnaryTableSequence
public class UnaryTableSequence
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.
Field Summary | |
---|---|
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
|
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 | |
---|---|
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)
|
Method Summary | |
---|---|
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)
|
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, 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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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)
Method Detail |
---|
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()
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |