Purpose: An generic query sequence mechanism.
Description This sequence allows the sequence operations to be customized through user defined queries. A select and update query can be set which can use custom SQL or stored procedures to define the sequencing mechanism. If a single stored procedure is used that does the update and select only the select query needs to be set.
| Modifier and Type | Field and Description |
|---|---|
| protected ValueReadQuery | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected DataModifyQuery | |
| protected boolean | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | QuerySequence(String name, int size)
Create a new sequence with the name and sequence pre-allocation size. |
| public | |
| public | |
| public | |
| public | QuerySequence(String name, int size, boolean shouldAcquireValueAfterInsert, boolean shouldUseTransaction)
|
| public | QuerySequence(String name, int size, int initialValue, boolean shouldAcquireValueAfterInsert, boolean shouldUseTransaction)
|
| Modifier and Type | Method and Description |
|---|---|
| protected ValueReadQuery | |
| protected ValueReadQuery | |
| protected DataModifyQuery | |
| protected DataModifyQuery | |
| protected Vector | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides org. |
| public ValueReadQuery | |
| public DataModifyQuery | |
| public int | hashCode()
Overrides org. |
| public void | |
| public void | |
| protected Object | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | shouldAcquireValueAfterInsert()
Implements abstract org. |
| public boolean | |
| public boolean | |
| public boolean | shouldUseTransaction()
Implements abstract org. |
| protected void | update(Accessor accessor, AbstractSession writeSession, String seqName, Number sizeOrNewValue)
INTERNAL: |
| protected Number | updateAndSelectSequence(Accessor accessor, AbstractSession writeSession, String seqName, int size)
Implements abstract org. |
| selectQuery | back to summary |
|---|---|
| protected ValueReadQuery selectQuery | |
| shouldAcquireValueAfterInsert | back to summary |
|---|---|
| protected boolean shouldAcquireValueAfterInsert | |
| shouldSelectBeforeUpdate | back to summary |
|---|---|
| protected boolean shouldSelectBeforeUpdate | |
| shouldSkipUpdate | back to summary |
|---|---|
| protected boolean shouldSkipUpdate | |
| shouldUseTransaction | back to summary |
|---|---|
| protected boolean shouldUseTransaction | |
| updateQuery | back to summary |
|---|---|
| protected DataModifyQuery updateQuery | |
| wasSelectQueryCreated | back to summary |
|---|---|
| protected boolean wasSelectQueryCreated | |
| wasUpdateQueryCreated | back to summary |
|---|---|
| protected boolean wasUpdateQueryCreated | |
| QuerySequence | back to summary |
|---|---|
| public QuerySequence() | |
| QuerySequence | back to summary |
|---|---|
| public QuerySequence(String name) Create a new sequence with the name. | |
| QuerySequence | back to summary |
|---|---|
| public QuerySequence(String name, int size) Create a new sequence with the name and sequence pre-allocation size. | |
| QuerySequence | back to summary |
|---|---|
| public QuerySequence(String name, int size, int initialValue) | |
| QuerySequence | back to summary |
|---|---|
| public QuerySequence(boolean shouldAcquireValueAfterInsert, boolean shouldUseTransaction) | |
| QuerySequence | back to summary |
|---|---|
| public QuerySequence(String name, boolean shouldAcquireValueAfterInsert, boolean shouldUseTransaction) | |
| QuerySequence | back to summary |
|---|---|
| public QuerySequence(String name, int size, boolean shouldAcquireValueAfterInsert, boolean shouldUseTransaction) | |
| QuerySequence | back to summary |
|---|---|
| public QuerySequence(String name, int size, int initialValue, boolean shouldAcquireValueAfterInsert, boolean shouldUseTransaction) | |
| buildSelectQuery | back to summary |
|---|---|
| protected ValueReadQuery buildSelectQuery() INTERNAL: | |
| buildSelectQuery | back to summary |
|---|---|
| protected ValueReadQuery buildSelectQuery(String seqName, Integer size) INTERNAL: | |
| buildUpdateQuery | back to summary |
|---|---|
| protected DataModifyQuery buildUpdateQuery() INTERNAL: | |
| buildUpdateQuery | back to summary |
|---|---|
| protected DataModifyQuery buildUpdateQuery(String seqName, Number sizeOrNewValue) INTERNAL: | |
| createArguments | back to summary |
|---|---|
| protected Vector INTERNAL: | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getSelectQuery | back to summary |
|---|---|
| public ValueReadQuery getSelectQuery() PUBLIC: | |
| getUpdateQuery | back to summary |
|---|---|
| public DataModifyQuery getUpdateQuery() PUBLIC: | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| onConnect | back to summary |
|---|---|
| public void onConnect() Overrides org. INTERNAL:
| |
| onDisconnect | back to summary |
|---|---|
| public void onDisconnect() Overrides org. INTERNAL:
| |
| select | back to summary |
|---|---|
| protected Object select(Accessor accessor, AbstractSession writeSession, String seqName, Integer size) INTERNAL: | |
| setSelectQuery | back to summary |
|---|---|
| public void setSelectQuery(ValueReadQuery query) PUBLIC: | |
| setShouldAcquireValueAfterInsert | back to summary |
|---|---|
| public void setShouldAcquireValueAfterInsert(boolean shouldAcquireValueAfterInsert) PUBLIC: | |
| setShouldSelectBeforeUpdate | back to summary |
|---|---|
| public void setShouldSelectBeforeUpdate(boolean shouldSelectBeforeUpdate) PUBLIC: | |
| setShouldSkipUpdate | back to summary |
|---|---|
| public void setShouldSkipUpdate(boolean shouldSkipUpdate) PUBLIC: | |
| setShouldUseTransaction | back to summary |
|---|---|
| public void setShouldUseTransaction(boolean shouldUseTransaction) PUBLIC: | |
| setUpdateQuery | back to summary |
|---|---|
| public void setUpdateQuery(DataModifyQuery query) PUBLIC: | |
| shouldAcquireValueAfterInsert | back to summary |
|---|---|
| public boolean shouldAcquireValueAfterInsert() Implements abstract org. PUBLIC:
| |
| shouldSelectBeforeUpdate | back to summary |
|---|---|
| public boolean shouldSelectBeforeUpdate() PUBLIC: | |
| shouldSkipUpdate | back to summary |
|---|---|
| public boolean shouldSkipUpdate() PUBLIC: | |
| shouldUseTransaction | back to summary |
|---|---|
| public boolean shouldUseTransaction() Implements abstract org. PUBLIC:
| |
| update | back to summary |
|---|---|
| protected void update(Accessor accessor, AbstractSession writeSession, String seqName, Number sizeOrNewValue) INTERNAL: | |
| updateAndSelectSequence | back to summary |
|---|---|
| protected Number updateAndSelectSequence(Accessor accessor, AbstractSession writeSession, String seqName, int size) Implements abstract org. INTERNAL:
| |