|
||||||||||
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 | |
---|---|
String[] |
getArguments()
Returns the arguments for this trigger (as declared in the CREATE TRIGGER
statement. |
String |
getName()
Returns the name of the trigger (as declared in the CREATE TRIGGER
statement). |
ResultSet |
getNew()
Returns the ResultSet that represents the new row. |
ResultSet |
getOld()
Returns the ResultSet that represents the old row. |
String |
getSchemaName()
Returns the name of the schema of the table for which this trigger was created (as declared in the CREATE TRIGGER
|
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 |
---|
ResultSet getNew() throws SQLException
ResultSet
containing one row or
null
.
SQLException
- if the contained native buffer has gone stale.ResultSet getOld() throws SQLException
ResultSet
containing one row or
null
.
SQLException
- if the contained native buffer has gone stale.String[] getArguments() throws SQLException
CREATE TRIGGER
statement. If the trigger has no arguments, this method will return an
array with size 0.
SQLException
- if the contained native buffer has gone stale.String getName() throws SQLException
CREATE TRIGGER
statement).
SQLException
- if the contained native buffer has gone stale.String getTableName() throws SQLException
CREATE TRIGGER
SQLException
- if the contained native buffer has gone stale.String getSchemaName() throws SQLException
CREATE TRIGGER
SQLException
- if the contained native buffer has gone stale.boolean isFiredAfter() throws SQLException
true
if the trigger was fired after the statement
or row action that it is associated with.
SQLException
- if the contained native buffer has gone stale.boolean isFiredBefore() throws SQLException
true
if the trigger was fired before the
statement or row action that it is associated with.
SQLException
- if the contained native buffer has gone stale.boolean isFiredForEachRow() throws SQLException
true
if this trigger is fired once for each row
(as opposed to once for the entire statement).
SQLException
- if the contained native buffer has gone stale.boolean isFiredForStatement() throws SQLException
true
if this trigger is fired once for the entire
statement (as opposed to once for each row).
SQLException
- if the contained native buffer has gone stale.boolean isFiredByDelete() throws SQLException
true
if this trigger was fired by a DELETE
.
SQLException
- if the contained native buffer has gone stale.boolean isFiredByInsert() throws SQLException
true
if this trigger was fired by an INSERT
.
SQLException
- if the contained native buffer has gone stale.boolean isFiredByUpdate() throws SQLException
true
if this trigger was fired by an UPDATE
.
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 |