EclipseLink 2.0.0, build 'v20091127-r5931' API Reference

org.eclipse.persistence.sequencing
Class UnaryTableSequence

java.lang.Object
  extended by org.eclipse.persistence.sequencing.Sequence
      extended by org.eclipse.persistence.sequencing.StandardSequence
          extended by org.eclipse.persistence.sequencing.QuerySequence
              extended by org.eclipse.persistence.sequencing.UnaryTableSequence
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

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.

See Also:
Serialized Form

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, 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, shouldUsePreallocation, verifyPlatform
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counterFieldName

protected java.lang.String counterFieldName
Hold the name of the only column in multiple single-column tables


updateString1

protected java.lang.String updateString1

updateString2

protected java.lang.String updateString2

selectString1

protected java.lang.String selectString1

selectString2

protected java.lang.String selectString2

updateStringBufferSize

protected int updateStringBufferSize

selectStringBufferSize

protected int selectStringBufferSize
Constructor Detail

UnaryTableSequence

public UnaryTableSequence()

UnaryTableSequence

public UnaryTableSequence(java.lang.String name)
Create a new sequence with the name.


UnaryTableSequence

public UnaryTableSequence(java.lang.String name,
                          int size)
Create a new sequence with the name and sequence pre-allocation size.


UnaryTableSequence

public UnaryTableSequence(java.lang.String name,
                          java.lang.String counterFieldName)

UnaryTableSequence

public UnaryTableSequence(java.lang.String name,
                          int size,
                          java.lang.String counterFieldName)
Method Detail

isUnaryTable

public boolean isUnaryTable()
Overrides:
isUnaryTable in class Sequence

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class QuerySequence

setCounterFieldName

public void setCounterFieldName(java.lang.String name)

getCounterFieldName

public java.lang.String getCounterFieldName()

onConnect

public void onConnect()
INTERNAL:

Overrides:
onConnect in class QuerySequence

onDisconnect

public void onDisconnect()
INTERNAL:

Overrides:
onDisconnect in class QuerySequence

buildSelectQuery

protected ValueReadQuery buildSelectQuery(java.lang.String seqName,
                                          java.lang.Integer size)
Description copied from class: QuerySequence
INTERNAL:

Overrides:
buildSelectQuery in class QuerySequence

buildUpdateQuery

protected DataModifyQuery buildUpdateQuery(java.lang.String seqName,
                                           java.lang.Number size)
Description copied from class: QuerySequence
INTERNAL:

Overrides:
buildUpdateQuery in class QuerySequence

initialize

protected void initialize()

buildUpdateString1

protected void buildUpdateString1()

buildUpdateString2

protected void buildUpdateString2()

buildSelectString1

protected void buildSelectString1()

clear

protected void clear()

EclipseLink 2.0.0, build 'v20091127-r5931' API Reference