|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.nds.dirxml.driver.jdbc.db.lock.DBLockGenerator
Default implementation of interface DBLockStatementGenerator.
DBLockStatementGenerator| Field Summary |
| Fields inherited from interface com.novell.nds.dirxml.driver.jdbc.db.lock.DBLockStatementGenerator |
EMPTY_LOCK, TYPE_TABLE, TYPE_VIEW |
| Constructor Summary | |
DBLockGenerator()
|
|
| Method Summary | |
void |
addListedColumn(String columnName)
Method for caller to supply columns that are listed as part of a pending SELECT, INSERT or UPDATE statement. |
void |
addPrimaryKeyColumn(String columnName)
Method for caller to supply table primary key info for the table referenced in the pending SQL statement. |
void |
addWhereColumn(String columnName)
Method for caller to supply columns that are listed as part of the WHERE clause for a pending SELECT, UPDATE, or DELETE statement. |
DBLock |
generateDeleteLock()
Method for caller to request the appropriate database lock for a pending DELETE statement. |
DBLock |
generateInsertLock()
Method for caller to request the appropriate database lock for a pending INSERT statement. |
DBLock |
generateSelectLock()
Method for caller to request the appropriate database lock for a pending SELECT statement. |
DBLock |
generateUpdateLock()
Method for caller to request the appropriate database lock for a pending UPDATE statement. |
void |
reset()
Method for caller to reset the state of this generator for use with another pending SQL statement. |
void |
setTable(String tableName,
String tableType)
Method for caller to supply table name and type info for the pending SQL statement. |
void |
setWhereClause(String whereClause)
Method for caller to supply the WHERE clause signature of the pending SELECT, UPDATE, or DELETE statement. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBLockGenerator()
| Method Detail |
public void setTable(String tableName,
String tableType)
DBLockStatementGenerator
setTable in interface DBLockStatementGeneratortableName - will not be null,
empty string, or whitespacetableType - will be one of the TYPE values
defined as part of this interfacepublic void addWhereColumn(String columnName)
DBLockStatementGenerator
addWhereColumn in interface DBLockStatementGeneratorcolumnName - will not be null,
empty string, or whitespacepublic void addPrimaryKeyColumn(String columnName)
DBLockStatementGenerator
addPrimaryKeyColumn in interface DBLockStatementGeneratorcolumnName - will not be null,
empty string, or whitespacepublic void addListedColumn(String columnName)
DBLockStatementGenerator
addListedColumn in interface DBLockStatementGeneratorcolumnName - will not be null,
empty string, or whitespacepublic void setWhereClause(String whereClause)
DBLockStatementGeneratorThis should be appened as-is if the lock statement being generated requires a WHERE clause. The caller will set parameter values.
setWhereClause in interface DBLockStatementGeneratorwhereClause - contains a single whitespace character
before the word WHERE; will not be null,
empty string, or whitespacepublic DBLock generateSelectLock()
DBLockStatementGeneratorThis method is currently not invoked in any rt. Its use is reserved for future use.
generateSelectLock in interface DBLockStatementGeneratornullpublic DBLock generateInsertLock()
DBLockStatementGenerator
generateInsertLock in interface DBLockStatementGeneratornullpublic DBLock generateUpdateLock()
DBLockStatementGenerator
generateUpdateLock in interface DBLockStatementGeneratornullpublic DBLock generateDeleteLock()
DBLockStatementGenerator
generateDeleteLock in interface DBLockStatementGeneratornullpublic void reset()
DBLockStatementGenerator
reset in interface DBLockStatementGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||