1 46 51 package org.mr.core.persistent; 52 53 54 import org.mr.core.util.byteable.Byteable; 55 56 63 public class PersistentEvent { 64 public static final byte CREATE_OPERATION = 0; 66 public static final byte DELETE_OPERATION = 1; 67 public static final byte DELETE_ALL_OPERATION = 2; 68 private int entryName; 70 private Byteable entry; 72 private byte operation; 74 75 private boolean persistentState = true; 76 77 80 public Byteable getEntry() { 81 return entry; 82 } 83 84 87 public void setEntry(Byteable event) { 88 this.entry = event; 89 } 90 91 94 public int getEntryName() { 95 return entryName; 96 } 97 98 101 public void setEntryName(int eventName) { 102 this.entryName = eventName; 103 } 104 105 108 public byte getOperation() { 109 return operation; 110 } 111 112 115 public void setOperation(byte operation) { 116 this.operation = operation; 117 } 118 119 122 public boolean isPersistentState() { 123 return persistentState; 124 } 125 126 129 public void setPersistentState(boolean persistentState) { 130 this.persistentState = persistentState; 131 } 132 133 } 134 | Popular Tags |