Package com.mckoi.database
Class TableCommitModificationEvent
java.lang.Object
com.mckoi.database.TableCommitModificationEvent
An object that encapsulates all row modification information about a table
when a change to the table is about to be committed. The object provides
information about what rows in the table were changed
(inserted/updated/deleted).
- Author:
- Tobias Downer
-
Constructor Summary
ConstructorsConstructorDescriptionTableCommitModificationEvent
(SimpleTransaction transaction, TableName table_name, int[] added, int[] removed) Constructs the event. -
Method Summary
Modifier and TypeMethodDescriptionint[]
Returns the normalized list of all rows that were inserted or updated in this table of the transaction being committed.int[]
Returns the normalized list of all rows that were deleted or updated in this table of the transaction being committed.Returns the name of the table.Returns the Transaction that represents the view of the database when the changes to the table have been committed.
-
Constructor Details
-
TableCommitModificationEvent
public TableCommitModificationEvent(SimpleTransaction transaction, TableName table_name, int[] added, int[] removed) Constructs the event.
-
-
Method Details
-
getTransaction
Returns the Transaction that represents the view of the database when the changes to the table have been committed. -
getTableName
Returns the name of the table. -
getAddedRows
public int[] getAddedRows()Returns the normalized list of all rows that were inserted or updated in this table of the transaction being committed. This is a normalized list which means if a row is inserted and then deleted in the transaction then it is not considered important and does not appear in this list. -
getRemovedRows
public int[] getRemovedRows()Returns the normalized list of all rows that were deleted or updated in this table of the transaction being committed. This is a normalized list which means if a row is inserted and then deleted in the transaction then it is not considered important and does not appear in this list.
-