1 16 17 21 22 package javax.jdo; 23 import javax.transaction.Synchronization ; 24 25 41 42 public interface Transaction 43 { 44 51 void begin(); 52 53 57 void commit(); 58 59 63 void rollback(); 64 65 68 boolean isActive(); 69 70 79 boolean getRollbackOnly(); 80 81 88 void setRollbackOnly(); 89 90 96 void setNontransactionalRead (boolean nontransactionalRead); 97 98 102 boolean getNontransactionalRead (); 103 104 110 void setNontransactionalWrite (boolean nontransactionalWrite); 111 112 116 boolean getNontransactionalWrite (); 117 118 124 void setRetainValues(boolean retainValues); 125 126 129 boolean getRetainValues(); 130 131 145 void setRestoreValues(boolean restoreValues); 146 147 150 boolean getRestoreValues(); 151 152 157 void setOptimistic(boolean optimistic); 158 159 162 boolean getOptimistic(); 163 164 177 void setSynchronization(Synchronization sync); 178 179 182 Synchronization getSynchronization(); 183 184 189 PersistenceManager getPersistenceManager(); 190 } 191 | Popular Tags |