|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.compile.DefaultVTIModDeferPolicy
class DefaultVTIModDeferPolicy
This class implements the default policy for defering modifications to virtual tables.
| Field Summary | |
|---|---|
private java.lang.String |
targetVTIClassName
|
private boolean |
VTIResultSetIsSensitive
|
| Fields inherited from interface org.apache.derby.vti.DeferModification |
|---|
DELETE_STATEMENT, INSERT_STATEMENT, UPDATE_STATEMENT |
| Constructor Summary | |
|---|---|
DefaultVTIModDeferPolicy(java.lang.String targetVTIClassName,
boolean VTIResultSetIsSensitive)
|
|
| Method Summary | |
|---|---|
boolean |
alwaysDefer(int statementType)
This method is called during preparation of an insert, update, or delete statement with this VTI as the target. |
boolean |
columnRequiresDefer(int statementType,
java.lang.String columnName,
boolean inWhereClause)
This method is called during preparation of an update or delete statement on the virtual table if getResultSetType() returns ResultSet.TYPE_SCROLL_SENSITIVE or TYPE_SCROLL_SENSITIVE and alwaysDefer( statementType) returns false. |
void |
modificationNotify(int statementType,
boolean deferred)
This VTI method is called by Derby when a VTI modification (insert, update, or delete) is executed. |
boolean |
subselectRequiresDefer(int statementType,
java.lang.String VTIClassName)
This method is called during preparation of an insert, update, or delete statement that has this virtual table as its target and that has a sub-select. |
boolean |
subselectRequiresDefer(int statementType,
java.lang.String schemaName,
java.lang.String tableName)
This method is called during preparation of an insert, update, or delete statement that has this virtual table as its target and that has a sub-select. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.lang.String targetVTIClassName
private final boolean VTIResultSetIsSensitive
| Constructor Detail |
|---|
DefaultVTIModDeferPolicy(java.lang.String targetVTIClassName,
boolean VTIResultSetIsSensitive)
| Method Detail |
|---|
public boolean alwaysDefer(int statementType)
DeferModification
alwaysDefer in interface DeferModificationstatementType - One of INSERT_STATEMENT, UPDATE_STATEMENT, DELETE_STATEMENT.
DeferModification.alwaysDefer(int)
public boolean columnRequiresDefer(int statementType,
java.lang.String columnName,
boolean inWhereClause)
DeferModification
columnRequiresDefer in interface DeferModificationstatementType - UPDATE_STATEMENT or DELETE_STATEMENT.columnName - the name of one of the columns being updatedinWhereClause - indicates whether the column also appears in the where clause
DeferModification.columnRequiresDefer(int, java.lang.String, boolean)
public boolean subselectRequiresDefer(int statementType,
java.lang.String schemaName,
java.lang.String tableName)
DeferModification
subselectRequiresDefer in interface DeferModificationstatementType - the statement type: INSERT_STATEMENT, UPDATE_STATEMENT, or DELETE_STATEMENT.schemaName - the schema of the table in the sub-select.tableName - the name of the table in the sub-select.
DeferModification.subselectRequiresDefer(int,String,String)
public boolean subselectRequiresDefer(int statementType,
java.lang.String VTIClassName)
DeferModification
subselectRequiresDefer in interface DeferModificationstatementType - the statement type: INSERT_STATEMENT, UPDATE_STATEMENT, or DELETE_STATEMENT.VTIClassName - the name of the class implementing the VTI in the sub-select.
DeferModification.subselectRequiresDefer(int, String)
public void modificationNotify(int statementType,
boolean deferred)
DeferModification
modificationNotify in interface DeferModificationstatementType - one of INSERT_STATEMENT, UPDATE_STATEMENT, or DELETE_STATEMENTdeferred - true if the modification will be deferred, false if not.
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||