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 SummaryFieldsModifier and TypeFieldDescriptionprotected StringHold the name of the only column in multiple single-column tablesprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected intFields inherited from class org.eclipse.persistence.sequencing.QuerySequenceselectQuery, shouldAcquireValueAfterInsert, shouldSelectBeforeUpdate, shouldSkipUpdate, shouldUseTransaction, updateQuery, wasSelectQueryCreated, wasUpdateQueryCreatedFields inherited from class org.eclipse.persistence.sequencing.Sequencedepth, initialValue, isCustomQualifier, name, platform, qualifier, shouldAlwaysOverrideExistingValue, size
- 
Constructor SummaryConstructorsConstructorDescriptionUnaryTableSequence(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 SummaryModifier and TypeMethodDescriptionprotected ValueReadQuerybuildSelectQuery(String seqName, Integer size) INTERNAL:protected voidprotected DataModifyQuerybuildUpdateQuery(String seqName, Number size) INTERNAL:protected voidprotected voidprotected voidclear()booleaninthashCode()protected voidbooleanvoidINTERNAL:voidINTERNAL:voidsetCounterFieldName(String name) Methods inherited from class org.eclipse.persistence.sequencing.QuerySequencebuildSelectQuery, buildUpdateQuery, createArguments, getSelectQuery, getUpdateQuery, select, setSelectQuery, setShouldAcquireValueAfterInsert, setShouldSelectBeforeUpdate, setShouldSkipUpdate, setShouldUseTransaction, setUpdateQuery, shouldAcquireValueAfterInsert, shouldSelectBeforeUpdate, shouldSkipUpdate, shouldUseTransaction, update, updateAndSelectSequenceMethods inherited from class org.eclipse.persistence.sequencing.StandardSequencecreateVector, createVectorAtNextVal, getGeneratedValue, getGeneratedVector, setInitialValueMethods inherited from class org.eclipse.persistence.sequencing.Sequenceclone, 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- 
counterFieldNameHold the name of the only column in multiple single-column tables
- 
updateString1
- 
updateString2
- 
selectString1
- 
selectString2
- 
updateStringBufferSizeprotected int updateStringBufferSize
- 
selectStringBufferSizeprotected int selectStringBufferSize
 
- 
- 
Constructor Details- 
UnaryTableSequencepublic UnaryTableSequence()
- 
UnaryTableSequenceCreate a new sequence with the name.
- 
UnaryTableSequenceCreate a new sequence with the name and sequence pre-allocation size.
- 
UnaryTableSequence
- 
UnaryTableSequence
 
- 
- 
Method Details- 
isUnaryTablepublic boolean isUnaryTable()- Overrides:
- isUnaryTablein class- Sequence
 
- 
equals- Overrides:
- equalsin class- QuerySequence
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- QuerySequence
 
- 
setCounterFieldName
- 
getCounterFieldName
- 
onConnectpublic void onConnect()INTERNAL:- Overrides:
- onConnectin class- QuerySequence
 
- 
onDisconnectpublic void onDisconnect()INTERNAL:- Overrides:
- onDisconnectin class- QuerySequence
 
- 
buildSelectQueryDescription copied from class:QuerySequenceINTERNAL:- Overrides:
- buildSelectQueryin class- QuerySequence
 
- 
buildUpdateQueryDescription copied from class:QuerySequenceINTERNAL:- Overrides:
- buildUpdateQueryin class- QuerySequence
 
- 
initializeprotected void initialize()
- 
buildUpdateString1protected void buildUpdateString1()
- 
buildUpdateString2protected void buildUpdateString2()
- 
buildSelectString1protected void buildSelectString1()
- 
clearprotected void clear()
 
-