|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mckoi.database.ConnectionTriggerManager
public final class ConnectionTriggerManager
A trigger manager on a DatabaseConnection that maintains a list of all triggers set in the database, and the types of triggers they are. This object is closely tied to a DatabaseConnection.
The trigger manager actually uses a trigger itself to maintain a list of tables that have triggers, and the action to perform on the trigger.
| Method Summary | |
|---|---|
void |
createTableTrigger(java.lang.String schema,
java.lang.String name,
int type,
TableName on_table,
java.lang.String procedure_name,
TObject[] params)
Creates a new trigger action on a stored procedure and makes the change to the transaction of this DatabaseConnection. |
void |
dropTrigger(java.lang.String schema,
java.lang.String name)
Drops a trigger that has previously been defined. |
boolean |
triggerExists(java.lang.String schema,
java.lang.String name)
Returns true if the trigger exists, false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void createTableTrigger(java.lang.String schema,
java.lang.String name,
int type,
TableName on_table,
java.lang.String procedure_name,
TObject[] params)
throws DatabaseException
schema - the schema name of the trigger.name - the name of the trigger.type - the type of trigger.procedure_name - the name of the procedure to execute.params - any constant parameters for the triggering procedure.
DatabaseException
public void dropTrigger(java.lang.String schema,
java.lang.String name)
throws DatabaseException
DatabaseException
public boolean triggerExists(java.lang.String schema,
java.lang.String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||