1 2 12 package com.versant.core.jdo; 13 14 import javax.jdo.PersistenceManager; 15 import javax.jdo.Query; 16 import java.sql.Connection ; 17 import java.util.Collection ; 18 import java.util.List ; 19 20 23 public interface VersantPersistenceManager extends PersistenceManager { 24 25 28 public static final int LOCKING_NONE = 1; 29 32 public static final int LOCKING_FIRST = 2; 33 36 public static final int LOCKING_ALL = 3; 37 38 public static final int EVENT_ERRORS = VersantPersistenceManagerFactory.EVENT_ERRORS; 39 public static final int EVENT_NORMAL = VersantPersistenceManagerFactory.EVENT_NORMAL; 40 public static final int EVENT_VERBOSE = VersantPersistenceManagerFactory.EVENT_VERBOSE; 41 public static final int EVENT_ALL = VersantPersistenceManagerFactory.EVENT_ALL; 42 43 46 public final static int PM_CACHE_REF_TYPE_STRONG = 1; 47 50 public final static int PM_CACHE_REF_TYPE_SOFT = 2; 51 54 public final static int PM_CACHE_REF_TYPE_WEAK = 3; 55 56 61 public boolean isInterceptDfgFieldAccess(); 62 63 68 public void setInterceptDfgFieldAccess(boolean interceptDfgFieldAccess); 69 70 73 public void cancelQueryExecution(); 74 75 78 public boolean isDirty(); 79 80 87 public Object getObjectByIDString(String value, boolean toValidate); 88 89 102 public Object newObjectIdInstance(Class pcClass, String str, 103 boolean resolved); 104 105 117 public Object getObjectByIDString(String value, boolean toValidate, 118 boolean resolved); 119 120 126 public void loadFetchGroup(Object pc, String name); 127 128 140 public void flush(); 141 142 158 public void flush(boolean retainValues); 159 160 188 public Connection getJdbcConnection(String datastore); 189 190 194 public String getConnectionURL(String dataStore); 195 196 200 public String getConnectionDriverName(String dataStore); 201 202 205 public void makeTransientRecursive(Object pc); 206 207 211 public List versantAllDirtyInstances(); 212 213 224 public void setDatastoreTxLocking(int mode); 225 226 229 public int getDatastoreTxLocking(); 230 231 239 public Object getObjectByIdFromCache(Object oid); 240 241 247 public boolean isHollow(Object pc); 248 249 254 public boolean hasIdentity(Object pc); 255 256 267 public void logEvent(int level, String description, int ms); 268 269 279 public int getObjectsById(Object [] oids, int length, Object [] data, 280 int stateFieldNo, int classMetaDataIndex); 281 282 288 public Query versantNewNamedQuery(Class cls, String queryName); 289 290 306 public Collection versantDetachCopy(Collection pcs, String fetchGroup); 307 308 316 public boolean isCheckModelConsistencyOnCommit(); 317 318 327 public void setCheckModelConsistencyOnCommit(boolean on); 328 329 338 public void checkModelConsistency(); 339 340 353 public Collection versantAttachCopy(Collection detached, 354 boolean makeTransactional); 355 356 374 public Collection versantAttachCopy(Collection detached, 375 boolean makeTransactional, boolean shallow); 376 377 385 public void setPmCacheRefType(Object pc, int type); 386 387 395 public void setPmCacheRefType(Object [] pcs, int type); 396 397 405 public void setPmCacheRefType(Collection col, int type); 406 407 415 public void setPmCacheRefType(int type); 416 417 425 public int getPmCacheRefType(); 426 427 433 public void setRetainConnectionInOptTx(boolean on); 434 435 445 public void evictFromL2CacheAfterCommit(Object o); 446 447 453 public void evictAllFromL2CacheAfterCommit(Object [] a); 454 455 461 public void evictAllFromL2CacheAfterCommit(Collection c); 462 463 475 public void evictAllFromL2CacheAfterCommit(Class cls, boolean includeSubclasses); 476 477 482 public void evictAllFromL2CacheAfterCommit(); 483 484 489 public Object getOptimisticLockingValue(Object o); 490 491 501 public void addLifecycleListener(LifecycleListener listener, 502 Class [] classes); 503 504 508 public void removeLifecycleListener(LifecycleListener listener); 509 510 } 511 512 | Popular Tags |