01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.change.event;
05:
06: import com.tc.object.change.TCChangeBufferEvent;
07: import com.tc.object.dna.api.DNAWriter;
08:
09: /**
10: * Nov 22, 2004: Event representing any logical actions that need to be logged
11: */
12: public class LogicalChangeEvent implements TCChangeBufferEvent {
13: private final int method;
14: private final Object[] parameters;
15:
16: public LogicalChangeEvent(int method, Object[] parameters) {
17: this .parameters = parameters;
18: this .method = method;
19: }
20:
21: public void write(DNAWriter writer) {
22: writer.addLogicalAction(method, parameters);
23: }
24:
25: public int getMethodID() {
26: return method;
27: }
28:
29: public Object[] getParameters() {
30: return parameters;
31: }
32: }
|