public class TableSequence extends QuerySequence
Purpose:
Modifier and Type | Field and Description |
---|---|
protected String |
counterFieldName
Hold the name of the column in the sequence table which specifies the sequence numeric value
|
protected static String |
defaultTableName
Default sequence table name
|
protected String |
nameFieldName
Hold the name of the column in the sequence table which specifies the sequence name
|
protected String |
qualifier |
protected DatabaseTable |
table
Hold the database table
|
selectQuery, shouldAcquireValueAfterInsert, shouldSelectBeforeUpdate, shouldSkipUpdate, shouldUseTransaction, updateQuery, wasSelectQueryCreated, wasUpdateQueryCreated
Constructor and Description |
---|
TableSequence() |
TableSequence(String name) |
TableSequence(String name,
int size) |
TableSequence(String name,
int size,
int initialValue) |
TableSequence(String name,
int size,
String tableName) |
TableSequence(String name,
int size,
String tableName,
String nameFieldName,
String counterFieldName) |
TableSequence(String name,
String tableName) |
TableSequence(String name,
String tableName,
String nameFieldName,
String counterFieldName) |
Modifier and Type | Method and Description |
---|---|
protected ValueReadQuery |
buildSelectQuery()
INTERNAL:
|
protected DataModifyQuery |
buildUpdateQuery()
INTERNAL:
|
boolean |
equals(Object obj) |
String |
getCounterFieldName() |
String |
getNameFieldName() |
String |
getQualifiedTableName() |
DatabaseTable |
getTable() |
String |
getTableName() |
void |
onConnect()
INTERNAL:
|
void |
onDisconnect()
INTERNAL:
|
void |
setCounterFieldName(String name) |
void |
setNameFieldName(String name) |
void |
setTable(DatabaseTable table) |
void |
setTableName(String name) |
buildSelectQuery, buildUpdateQuery, createArguments, getSelectQuery, getUpdateQuery, select, setSelectQuery, setShouldAcquireValueAfterInsert, setShouldSelectBeforeUpdate, setShouldSkipUpdate, setShouldUseTransaction, setUpdateQuery, shouldAcquireValueAfterInsert, shouldSelectBeforeUpdate, shouldSkipUpdate, shouldUseTransaction, update, updateAndSelectSequence
createVector, getGeneratedValue, getGeneratedVector, shouldOverrideExistingValue
clone, equalNameAndSize, getDatasourcePlatform, getGeneratedValue, getGeneratedVector, getInitialValue, getName, getPreallocationSize, isConnected, onConnect, onDisconnect, setDatasourcePlatform, setInitialValue, setName, setPreallocationSize, shouldOverrideExistingValue, shouldUsePreallocation, verifyPlatform
protected static final String defaultTableName
protected DatabaseTable table
protected String counterFieldName
protected String nameFieldName
protected String qualifier
public TableSequence()
public TableSequence(String name)
public TableSequence(String name, int size)
public TableSequence(String name, int size, int initialValue)
public TableSequence(String name, String tableName, String nameFieldName, String counterFieldName)
public boolean equals(Object obj)
equals
in class QuerySequence
public String getCounterFieldName()
public void setCounterFieldName(String name)
public String getNameFieldName()
public void setNameFieldName(String name)
public DatabaseTable getTable()
public String getTableName()
public String getQualifiedTableName()
public void setTable(DatabaseTable table)
public void setTableName(String name)
protected ValueReadQuery buildSelectQuery()
QuerySequence
buildSelectQuery
in class QuerySequence
protected DataModifyQuery buildUpdateQuery()
QuerySequence
buildUpdateQuery
in class QuerySequence
public void onConnect()
onConnect
in class QuerySequence
public void onDisconnect()
onDisconnect
in class QuerySequence
Copyright © 2024. All rights reserved.