1 25 package org.objectweb.perseus.persistence.api; 26 27 import java.util.Set ; 28 29 35 public interface WorkingSet { 36 37 41 byte CTX_ACTIVE = 1; 42 43 44 47 byte CTX_CLOSED = 32; 48 49 52 byte READ_INTENTION = 1; 53 byte WRITE_INTENTION = 2; 54 byte UNKNOWN_INTENTION = 3; 55 56 62 byte getStatus(); 63 64 73 void setStatus(byte status) throws PersistenceException; 74 75 78 State lookup(Object oid); 79 80 88 89 State bind(State state, Object oid, byte mode); 90 91 97 boolean unbind(Object oid); 98 99 102 void clear(); 103 104 107 Set entries(); 108 109 112 Set oids(); 113 114 117 Object getUserObject(); 118 119 122 124 127 ConnectionHolder getConnectionHolder(); 128 129 133 boolean getWSRetainValues(); 134 135 140 void setWSRetainValues(boolean val); 141 142 145 boolean getWSRestoreValues(); 146 147 151 void setWSRestoreValues(boolean val); 152 } 153 | Popular Tags |