public class UUIDSequence extends Sequence
depth, initialValue, isCustomQualifier, name, platform, qualifier, shouldAlwaysOverrideExistingValue, size
Constructor and Description |
---|
UUIDSequence() |
UUIDSequence(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getGeneratedValue(org.eclipse.persistence.internal.databaseaccess.Accessor accessor,
org.eclipse.persistence.internal.sessions.AbstractSession writeSession,
java.lang.String seqName)
INTERNAL:
Return the newly-generated sequencing value.
|
java.util.Vector |
getGeneratedVector(org.eclipse.persistence.internal.databaseaccess.Accessor accessor,
org.eclipse.persistence.internal.sessions.AbstractSession writeSession,
java.lang.String seqName,
int size)
INTERNAL:
Return a Vector of newly-generated sequencing values.
|
void |
onConnect()
INTERNAL:
This method is called when Sequencing object is created.
|
void |
onDisconnect()
INTERNAL:
This method is called when Sequencing object is destroyed.
|
boolean |
shouldAcquireValueAfterInsert()
INTERNAL:
Indicates whether sequencing value should be acquired after INSERT.
|
boolean |
shouldUsePreallocation()
INTERNAL:
Indicates whether several sequencing values should be acquired at a time
and be kept by TopLink.
|
boolean |
shouldUseTransaction()
INTERNAL:
Indicates whether TopLink should internally call beginTransaction() before
getGeneratedValue/Vector, and commitTransaction after.
|
clone, equalNameAndSize, equals, getDatasourcePlatform, getGeneratedValue, getGeneratedVector, getInitialValue, getName, getPreallocationSize, getQualified, getQualifier, isConnected, isCustomQualifier, isNative, isTable, isUnaryTable, onConnect, onDisconnect, setDatasourcePlatform, setInitialValue, setName, setPreallocationSize, setQualifier, setShouldAlwaysOverrideExistingValue, shouldAlwaysOverrideExistingValue, shouldAlwaysOverrideExistingValue, toString, verifyPlatform
public UUIDSequence()
public UUIDSequence(java.lang.String name)
public java.lang.Object getGeneratedValue(org.eclipse.persistence.internal.databaseaccess.Accessor accessor, org.eclipse.persistence.internal.sessions.AbstractSession writeSession, java.lang.String seqName)
Sequence
getGeneratedValue
in class Sequence
accessor
- Accessor is a separate sequencing accessor (may be null);writeSession
- Session is a Session used for writing (either ClientSession or DatabaseSession);seqName
- String is sequencing number field namepublic java.util.Vector getGeneratedVector(org.eclipse.persistence.internal.databaseaccess.Accessor accessor, org.eclipse.persistence.internal.sessions.AbstractSession writeSession, java.lang.String seqName, int size)
Sequence
getGeneratedVector
in class Sequence
accessor
- Accessor is a separate sequencing accessor (may be null);writeSession
- Session is a Session used for writing (either ClientSession or DatabaseSession);seqName
- String is sequencing number field namesize
- int number of values to preallocate (output Vector size).public void onConnect()
Sequence
public void onDisconnect()
Sequence
onDisconnect
in class Sequence
public boolean shouldAcquireValueAfterInsert()
Sequence
shouldAcquireValueAfterInsert
in class Sequence
public boolean shouldUseTransaction()
Sequence
shouldUseTransaction
in class Sequence
public boolean shouldUsePreallocation()
Sequence
shouldUsePreallocation
in class Sequence