|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xquark.mapping.TriggerEvent
public class TriggerEvent
Field Summary | |
---|---|
static java.lang.String[] |
actionStrings
|
static int |
DELETE
|
static int |
INSERT
|
static int |
UPDATE
|
Constructor Summary | |
---|---|
TriggerEvent(StorageContext context,
java.lang.String table,
java.lang.String[] colnames,
java.lang.Object[] colvalues,
int action)
Constructor for TriggerEvent |
Method Summary | |
---|---|
int |
getAction()
Returns the action linked to this event |
int |
getColumnCount()
Returns the number of columns selected for the event |
java.lang.String |
getColumnName(int index)
Returns the name of the column at the given index |
java.lang.String[] |
getColumnNames()
Returns the array of column names |
java.lang.Object |
getColumnValue(int index)
Returns the value of the column at the given index |
java.lang.Object |
getColumnValue(java.lang.String colname)
Returns the value of the column for the given column name |
java.lang.Object[] |
getColumnValues()
Returns the array of column values |
java.lang.String |
getMappingMode()
Returns the current mappping mode. |
java.lang.String |
getMappingNamespace()
Returns the target namespace of the active mapping. |
java.sql.Connection |
getStorageContext()
Returns the JDBC connection |
java.lang.String |
getTableName()
Returns the table name for the event |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INSERT
public static final int UPDATE
public static final int DELETE
public static final java.lang.String[] actionStrings
Constructor Detail |
---|
public TriggerEvent(StorageContext context, java.lang.String table, java.lang.String[] colnames, java.lang.Object[] colvalues, int action)
context
- the storage context that provides access to storage information such as the JDBC connectiontable
- the name of the table in which the tuple has been insertedcolnames
- the names of the tuple columns that have been selected for the eventcolvalues
- the values of the tuple columns that have been selected for the eventMethod Detail |
---|
public java.sql.Connection getStorageContext()
public java.lang.String getMappingNamespace()
public java.lang.String getMappingMode()
public java.lang.String getTableName()
public int getColumnCount()
public java.lang.String[] getColumnNames()
public java.lang.Object[] getColumnValues()
public java.lang.String getColumnName(int index)
index
- the index of the column, starting at 0
public java.lang.Object getColumnValue(int index)
index
- the index of the column, starting at 0
public java.lang.Object getColumnValue(java.lang.String colname)
colname
- the name of the column
public int getAction()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |