1 16 17 21 22 package javax.jdo; 23 24 import java.util.Properties ; 25 import java.util.Collection ; 26 27 import javax.jdo.datastore.DataStoreCache; 28 29 import javax.jdo.listener.InstanceLifecycleListener; 30 31 53 54 public interface PersistenceManagerFactory extends java.io.Serializable { 55 56 72 void close(); 73 74 82 boolean isClosed(); 83 84 92 PersistenceManager getPersistenceManager(); 93 94 105 PersistenceManager getPersistenceManager(String userid, String password); 106 107 110 void setConnectionUserName(String userName); 111 112 115 String getConnectionUserName (); 116 117 120 void setConnectionPassword (String password); 121 122 125 void setConnectionURL (String URL); 126 127 130 String getConnectionURL (); 131 132 135 void setConnectionDriverName (String driverName); 136 137 140 String getConnectionDriverName (); 141 142 145 void setConnectionFactoryName (String connectionFactoryName); 146 147 150 String getConnectionFactoryName (); 151 152 157 void setConnectionFactory (Object connectionFactory); 158 159 162 Object getConnectionFactory (); 163 164 169 void setConnectionFactory2Name (String connectionFactoryName); 170 171 176 String getConnectionFactory2Name (); 177 178 185 void setConnectionFactory2 (Object connectionFactory); 186 187 192 Object getConnectionFactory2 (); 193 194 199 void setMultithreaded (boolean flag); 200 201 206 boolean getMultithreaded(); 207 208 213 void setMapping (String mapping); 214 215 220 String getMapping (); 221 222 227 void setOptimistic (boolean flag); 228 229 234 boolean getOptimistic(); 235 236 241 void setRetainValues (boolean flag); 242 243 248 boolean getRetainValues (); 249 250 265 void setRestoreValues(boolean restoreValues); 266 267 270 boolean getRestoreValues(); 271 272 277 void setNontransactionalRead (boolean flag); 278 279 284 boolean getNontransactionalRead (); 285 286 291 void setNontransactionalWrite (boolean flag); 292 293 298 boolean getNontransactionalWrite (); 299 300 305 void setIgnoreCache (boolean flag); 306 307 312 boolean getIgnoreCache (); 313 314 320 Properties getProperties(); 321 322 359 Collection supportedOptions(); 360 361 368 DataStoreCache getDataStoreCache (); 369 370 391 void addInstanceLifecycleListener (InstanceLifecycleListener listener, 392 Class [] classes); 393 394 407 void removeInstanceLifecycleListener (InstanceLifecycleListener listener); 408 409 } 410 | Popular Tags |