1 24 25 package com.mckoi.database; 26 27 import com.mckoi.util.IntegerVector; 28 29 37 38 public class TableCommitModificationEvent { 39 40 44 private SimpleTransaction transaction; 45 46 49 private TableName table_name; 50 51 55 private int[] added_rows; 56 57 61 private int[] removed_rows; 62 63 66 public TableCommitModificationEvent(SimpleTransaction transaction, 67 TableName table_name, int[] added, int[] removed) { 68 this.transaction = transaction; 69 this.table_name = table_name; 70 this.added_rows = added; 71 this.removed_rows = removed; 72 } 73 74 78 public SimpleTransaction getTransaction() { 79 return transaction; 80 } 81 82 85 public TableName getTableName() { 86 return table_name; 87 } 88 89 95 public int[] getAddedRows() { 96 return added_rows; 97 } 98 99 105 public int[] getRemovedRows() { 106 return removed_rows; 107 } 108 109 } 110 | Popular Tags |