|
EclipseLink 1.2.0, build 'v20091016-r5565' 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.NativeSequence
public class NativeSequence
Purpose: Define a database's native sequencing mechanism.
Description Many databases have built in support for sequencing. This can be a SEQUENCE object such as in Oracle, or a auto-incrementing column such as the IDENTITY field in Sybase. For an auto-incrementing column the preallocation size is always 1. For a SEQUENCE object the preallocation size must match the SEQUENCE objects "increment by".
Field Summary | |
---|---|
protected boolean |
shouldUseIdentityIfPlatformSupports
true indicates that identity should be used - if the platform supports identity. |
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 | |
---|---|
NativeSequence()
|
|
NativeSequence(boolean shouldUseIdentityIfPlatformSupports)
|
|
NativeSequence(java.lang.String name)
Create a new sequence with the name. |
|
NativeSequence(java.lang.String name,
boolean shouldUseIdentityIfPlatformSupports)
|
|
NativeSequence(java.lang.String name,
int size)
Create a new sequence with the name and sequence pre-allocation size. |
|
NativeSequence(java.lang.String name,
int size,
boolean shouldUseIdentityIfPlatformSupports)
|
|
NativeSequence(java.lang.String name,
int size,
int initialValue)
|
|
NativeSequence(java.lang.String name,
int size,
int initialValue,
boolean shouldUseIdentityIfPlatformSupports)
|
Method Summary | |
---|---|
protected ValueReadQuery |
buildSelectQuery()
INTERNAL: |
protected ValueReadQuery |
buildSelectQuery(java.lang.String seqName,
java.lang.Integer size)
INTERNAL: |
boolean |
equals(java.lang.Object obj)
|
boolean |
isNative()
|
void |
onConnect()
INTERNAL: |
void |
onDisconnect()
INTERNAL: |
void |
setShouldUseIdentityIfPlatformSupports(boolean shouldUseIdentityIfPlatformSupports)
|
boolean |
shouldUseIdentityIfPlatformSupports()
|
Methods inherited from class org.eclipse.persistence.sequencing.QuerySequence |
---|
buildUpdateQuery, 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, isTable, isUnaryTable, 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 |
---|
protected boolean shouldUseIdentityIfPlatformSupports
Constructor Detail |
---|
public NativeSequence()
public NativeSequence(boolean shouldUseIdentityIfPlatformSupports)
public NativeSequence(java.lang.String name)
public NativeSequence(java.lang.String name, boolean shouldUseIdentityIfPlatformSupports)
public NativeSequence(java.lang.String name, int size)
public NativeSequence(java.lang.String name, int size, boolean shouldUseIdentityIfPlatformSupports)
public NativeSequence(java.lang.String name, int size, int initialValue)
public NativeSequence(java.lang.String name, int size, int initialValue, boolean shouldUseIdentityIfPlatformSupports)
Method Detail |
---|
public boolean isNative()
isNative
in class Sequence
public void setShouldUseIdentityIfPlatformSupports(boolean shouldUseIdentityIfPlatformSupports)
public boolean shouldUseIdentityIfPlatformSupports()
public boolean equals(java.lang.Object obj)
equals
in class QuerySequence
protected ValueReadQuery buildSelectQuery()
buildSelectQuery
in class QuerySequence
protected ValueReadQuery buildSelectQuery(java.lang.String seqName, java.lang.Integer size)
buildSelectQuery
in class QuerySequence
public void onConnect()
onConnect
in class QuerySequence
public void onDisconnect()
onDisconnect
in class QuerySequence
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |