1 23 24 29 30 package com.sun.jdo.api.persistence.support; 31 import javax.transaction.*; 32 33 46 47 public interface Transaction 48 { 49 56 void begin(); 57 58 60 void commit(); 61 62 64 void rollback(); 65 66 69 boolean isActive(); 70 71 76 void setRetainValues(boolean retainValues); 77 78 81 boolean getRetainValues(); 82 83 87 void setRestoreValues(boolean restoreValues); 88 89 92 boolean getRestoreValues(); 93 94 97 void setOptimistic(boolean optimistic); 98 99 102 boolean getOptimistic(); 103 104 108 void setNontransactionalRead (boolean flag); 109 110 114 boolean getNontransactionalRead (); 115 116 124 void setSynchronization(Synchronization sync); 125 126 129 Synchronization getSynchronization(); 130 131 136 void setQueryTimeout (int timeout); 137 138 143 int getQueryTimeout (); 144 145 150 void setUpdateTimeout (int timeout); 151 152 157 int getUpdateTimeout(); 158 159 164 PersistenceManager getPersistenceManager(); 165 } 166 | Popular Tags |