1 23 24 29 30 package com.sun.jdo.api.persistence.support; 31 import java.util.Collection ; 32 import java.util.Properties ; 33 import java.lang.Class ; 34 35 46 47 public interface PersistenceManager 48 { 49 53 boolean isClosed(); 54 59 void close(); 60 61 65 Transaction currentTransaction(); 66 67 70 Query newQuery(); 71 78 Query newQuery(Object compiled); 79 80 84 Query newQuery(Class cls); 85 86 92 Query newQuery(Class cls,Collection cln); 93 94 100 Query newQuery (Class cls, String filter); 101 102 109 Query newQuery (Class cls, Collection cln, String filter); 110 111 120 Collection getExtent(Class persistenceCapableClass,boolean subclasses); 121 122 134 Object getObjectById(Object oid); 135 136 143 Object getObjectId(Object pc); 144 145 152 Object getTransactionalInstance(Object pc); 153 154 163 void makePersistent(Object pc); 164 165 169 void makePersistent(Object [] pcs); 170 171 175 void makePersistent (Collection pcs); 176 177 189 void deletePersistent(Object pc); 190 191 195 void deletePersistent (Object [] pcs); 196 197 201 void deletePersistent (Collection pcs); 202 203 209 PersistenceManagerFactory getPersistenceManagerFactory(); 210 211 217 void setUserObject(Object o); 218 219 225 Object getUserObject(); 226 227 235 Properties getProperties(); 236 237 242 Class getObjectIdClass(Class cls); 243 244 245 256 Object newSCOInstance (Class type, Object owner, String fieldName); 257 258 259 275 Object newCollectionInstance (Class type, Object owner, String fieldName, 276 Class elementType, boolean allowNulls, int initialSize); 277 278 279 335 Object getObjectById (Object oid, boolean validate); 336 337 344 boolean getSupersedeDeletedInstance (); 345 346 347 351 void setSupersedeDeletedInstance (boolean flag); 352 353 363 boolean getRequireCopyObjectId(); 364 365 366 376 void setRequireCopyObjectId (boolean flag); 377 378 386 boolean getRequireTrackedSCO(); 387 388 396 void setRequireTrackedSCO (boolean flag); 397 398 } 399 | Popular Tags |