View Javadoc

1   /*
2    * RowsCangeEventImpl.java
3    * Created on 21 Июль 2006 г., 23:47
4    */
5   
6   package org.weda.store.impl;
7   
8   import java.util.List;
9   import org.weda.common.ChangeType;
10  import org.weda.store.RowsChangeEvent;
11  
12  /**
13   *
14   * @author Mikhail Titov
15   */
16  public class RowsChangeEventImpl implements RowsChangeEvent{
17      private ChangeType changeType;
18      private List<Object[]> changedRows;
19      
20      public RowsChangeEventImpl(ChangeType changeType) {
21          this.changeType = changeType;
22      }
23  
24      public RowsChangeEventImpl(
25              ChangeType changeType, List<Object[]> changedRows)
26      {
27          this.changeType = changeType;
28          this.changedRows = changedRows;
29      }
30  
31      public ChangeType getChangeType() {
32          return changeType;
33      }
34      
35      public void setChangedRows(List<Object[]> changedRows){        
36          this.changedRows = changedRows;
37      }
38  
39      public List<Object[]> getRows() {
40          return changedRows;
41      }
42      
43  }