|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TriggerData
The SQL 2003 spec. does not stipulate a standard way of mapping
triggers to functions. The PLJava mapping use this interface. All
functions that are intended to be triggers must be public, static,
return void, and take a TriggerData as their argument.
| Method Summary | |
|---|---|
java.lang.String[] |
getArguments()
Returns the arguments for this trigger (as declared in the CREATE TRIGGER
statement. |
java.lang.String |
getName()
Returns the name of the trigger (as declared in the CREATE TRIGGER
statement). |
java.sql.ResultSet |
getNew()
Returns the ResultSet that represents the new row. |
java.sql.ResultSet |
getOld()
Returns the ResultSet that represents the old row. |
java.lang.String |
getTableName()
Returns the name of the table for which this trigger was created (as declared in the CREATE TRIGGER
|
boolean |
isFiredAfter()
Returns true if the trigger was fired after the statement
or row action that it is associated with. |
boolean |
isFiredBefore()
Returns true if the trigger was fired before the
statement or row action that it is associated with. |
boolean |
isFiredByDelete()
Returns true if this trigger was fired by a DELETE. |
boolean |
isFiredByInsert()
Returns true if this trigger was fired by an INSERT. |
boolean |
isFiredByUpdate()
Returns true if this trigger was fired by an UPDATE. |
boolean |
isFiredForEachRow()
Returns true if this trigger is fired once for each row
(as opposed to once for the entire statement). |
boolean |
isFiredForStatement()
Returns true if this trigger is fired once for the entire
statement (as opposed to once for each row). |
| Method Detail |
|---|
java.sql.ResultSet getNew()
throws java.sql.SQLException
ResultSet containing one row or
null.
java.sql.SQLException - if the contained native buffer has gone stale.
java.sql.ResultSet getOld()
throws java.sql.SQLException
ResultSet containing one row or
null.
java.sql.SQLException - if the contained native buffer has gone stale.
java.lang.String[] getArguments()
throws java.sql.SQLException
CREATE TRIGGER
statement. If the trigger has no arguments, this method will return an
array with size 0.
java.sql.SQLException - if the contained native buffer has gone stale.
java.lang.String getName()
throws java.sql.SQLException
CREATE TRIGGER
statement).
java.sql.SQLException - if the contained native buffer has gone stale.
java.lang.String getTableName()
throws java.sql.SQLException
CREATE TRIGGER
java.sql.SQLException - if the contained native buffer has gone stale.
boolean isFiredAfter()
throws java.sql.SQLException
true if the trigger was fired after the statement
or row action that it is associated with.
java.sql.SQLException - if the contained native buffer has gone stale.
boolean isFiredBefore()
throws java.sql.SQLException
true if the trigger was fired before the
statement or row action that it is associated with.
java.sql.SQLException - if the contained native buffer has gone stale.
boolean isFiredForEachRow()
throws java.sql.SQLException
true if this trigger is fired once for each row
(as opposed to once for the entire statement).
java.sql.SQLException - if the contained native buffer has gone stale.
boolean isFiredForStatement()
throws java.sql.SQLException
true if this trigger is fired once for the entire
statement (as opposed to once for each row).
java.sql.SQLException - if the contained native buffer has gone stale.
boolean isFiredByDelete()
throws java.sql.SQLException
true if this trigger was fired by a DELETE.
java.sql.SQLException - if the contained native buffer has gone stale.
boolean isFiredByInsert()
throws java.sql.SQLException
true if this trigger was fired by an INSERT.
java.sql.SQLException - if the contained native buffer has gone stale.
boolean isFiredByUpdate()
throws java.sql.SQLException
true if this trigger was fired by an UPDATE.
java.sql.SQLException - if the contained native buffer has gone stale.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||