Java Doc for VersantPersistenceManagerImp.java in  » Testing » PolePosition-0.20 » com » versant » core » jdo » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » PolePosition 0.20 » com.versant.core.jdo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.versant.core.jdo.VersantPersistenceManagerImp

VersantPersistenceManagerImp
final public class VersantPersistenceManagerImp implements VersantPersistenceManager,ApplicationContext,Transaction,PersistenceContext,XAResource,Synchronization(Code)
This is a global StateManager instance for a PersistenceManagerImp. It will assign a state managing object to a managed PersistenceCapable instance.


Field Summary
final public static  StringLANGUAGE_EJBQL
    
final public static  StringLANGUAGE_SQL
    
final public static  intTX_FAIL
    
final public static  intTX_INACTIVE
    
final public static  intTX_PREPARED
    
final public static  intTX_STARTED
    
final public static  intTX_SUSPENDED
    
public  booleanidle
    
final public  JDOImplHelperjdoImplHelper
    
final public  ModelMetaDatamodelMetaData
    
public  VersantPersistenceManagerImpnext
    
public  VersantPersistenceManagerImpprev
    
public  PCStateManrequestedPCState
     This is a cheat to quickly get the sm for a pc instance.
final public  StatesToStorestoreOidStateContainer
     This is used to transport the dirty stuff to the server.

Constructor Summary
public  VersantPersistenceManagerImp(VersantPMFInternal pmf, ModelMetaData modelMetaData, StorageManager sm, LocalPMCache jdoManagedCache, MemQueryCompiler memQueryCompiler)
    

Method Summary
public  voidaddForDelete(OID oid, State state)
     Add the OID and State for deletion.
public  voidaddLifecycleListener(LifecycleListener listener, Class[] classes)
    
public  voidaddToCache(StatesReturned container)
     Add all the OIDs and States in the container to the cache.
public  voidaddTxStateObject(PCStateMan stateObject)
     add an transactional instance to the list.
public  voidafterCompletion(int status)
    
public  voidbeforeCompletion()
    
public  voidbegin()
    
public  voidcancelQueryExecution()
    
public  voidcheckModelConsistency()
     Check the consistency of all instances in the local cache.
final public  voidcheckNonTxRead()
    
final public  voidcheckNonTxWrite()
    
public  voidcheckToPreFetch(Object[] oids, int stateFieldNo, int navClassIndex)
     <<<<<<< VersantPersistenceManagerImp.java This util method is used by collection types to preload their pc entries.
public  voidclearTxDirtyList()
     Clear the dirty list.
public synchronized  voidclose()
     This is called by the user to close the pm.
public  voidcommit()
     This calls commit on all the transactional objects.
public  voidcommit(Xid xid, boolean onePhase)
     Commit the work done on this resource in the given transaction.
public  voidconvertPcParamsToOID(Object[] params)
     Convert all PC, VersantOid and objectid-class params to OIDs.
public  StateManagercreateStateManagerProxy(PCStateMan sm)
     Create a proxy for a PCStateMan or return it as is if no proxy is needed.
public  TransactioncurrentTransaction()
    
public  voiddeletePersistent(Object pc)
    
public  voiddeletePersistentAll(Object[] pcs)
    
public  voiddeletePersistentAll(Collection pcs)
    
public  voiddestroy()
     Destroy the PM.
public  booleandoBeforeState(boolean isTransient, boolean isTransactional)
    
public  voiddump(OID oid)
    
public  voidend(Xid xid, int flags)
     Called to disassociate the resource from a transaction.

If the flags argument is VersantPersistenceManagerImp.TMSUCCESS , the portion of work was done sucessfully.

If the flags argument is VersantPersistenceManagerImp.TMFAIL , the portion of work failed.

public  voidevict(Object pc)
    
public  voidevictAll()
    
public  voidevictAll(Object[] pcs)
    
public  voidevictAll(Collection pcs)
    
public  voidevictAllFromL2CacheAfterCommit(Object[] data)
    
public  voidevictAllFromL2CacheAfterCommit(Collection data)
    
public  voidevictAllFromL2CacheAfterCommit(Class cls, boolean includeSubclasses)
    
public  voidevictAllFromL2CacheAfterCommit()
    
public  voidevictFromL2CacheAfterCommit(Object o)
    
public  voidevictFromL2CacheAfterCommitImp(Object o)
     Version of VersantPersistenceManagerImp.evictFromL2CacheAfterCommit without the active tx check for interna use.
public  OIDextractOID(Object oid)
    
protected  voidfinalize()
     Reset the proxy so that if a client has a weak/soft ref to pm he will get a closed exception.
public  voidfireDelete(ClassMetaData cmd, Object o)
     Fire a delete to all of the LifecycleListener's for o.
public  voidflush()
     This flushes everything to the store.
public  voidflush(boolean retainValues)
    
public  voidflushIfDepOn(int[] cmdBits)
    
public  voidflushRetainState()
     This is used to flush the current changes to the store.
public  voidforget(Xid xid)
     Tells the resource manager to forget about a heuristic decision.
public  ReferencegetActiveReference()
    
public  LocalPMCachegetCache()
    
public  VersantSCOCollectiongetCollectionField(PersistenceCapable pc, int fieldNo)
     Get a collection field from a pc.
public  StringgetConnectionDriverName(String dataStore)
    
public  StringgetConnectionURL(String dataStore)
    
public  intgetDatastoreTxLocking()
     Get the locking mode for datastore transactions.
public  ExtentgetExtent(Class persistenceCapableClass, boolean subclasses)
     todo keep extent's around instead of creating a new one.
public  ObjectgetExternalOID(OID oid)
    
public  booleangetIgnoreCache()
    
public  OIDgetInternalOID(PersistenceCapable pc)
     Return the internal oid representation for this pc instance. This oid is the actual oid and not a clone.
public  PCStateMangetInternalSM(PersistenceCapable pc)
     This is used internally to obtain the PCStateObject for a PersistanceCapable instance.
public  PCStateMangetInternalSM(OID oid)
     This is used internally to obtain the PCStateObject for a PersistanceCapable instance.
public  StategetInternaleState(PersistenceCapable pc)
     This is used for debug.
public  ConnectiongetJdbcConnection(String datastore)
    
public  MemQueryCompilergetMemQueryCompiler()
    
public  booleangetMultithreaded()
    
public  booleangetNontransactionalRead()
    
public  booleangetNontransactionalWrite()
    
 OIDgetOID(VersantDetachable detachable)
    
public  ObjectgetObjectByIDString(String value, boolean toValidate)
    
public  ObjectgetObjectByIDString(String value, boolean toValidate, boolean resolved)
    
public  ObjectgetObjectById(Object oid, boolean validate)
    
public  ObjectgetObjectByIdForState(OID oid, int stateFieldNo, int navClassIndex, OID fromOID)
     This is use by State implementations when they need to retrieve an instance.
public  ObjectgetObjectByIdFromCache(Object oid)
     Return the instance for oid if it is present in the local PM cache otherwise return null.
public  ObjectgetObjectField(PersistenceCapable pc, int fieldNo)
    
public  ObjectgetObjectId(Object pc)
    
public  ClassgetObjectIdClass(Class cls)
    
public  intgetObjectsById(Object[] oids, int length, Object[] data, int stateFieldNo, int classMetaDataIndex)
     This util method is used by collection types to preload their pc entries.
public  booleangetOptimistic()
    
public  ObjectgetOptimisticLockingValue(Object o)
    
public  PersistenceManagergetPersistenceManager()
    
public  PersistenceManagergetPersistenceManager(PersistenceCapable pc)
    
public  PersistenceManagerFactorygetPersistenceManagerFactory()
    
public  intgetPmCacheRefType()
    
public  PMProxygetProxy()
    
public  booleangetRestoreValues()
    
public  booleangetRetainValues()
    
public  PCStateMangetSMIfManaged(PersistenceCapable pc)
    
public  StatesReturnedgetState(OID oid, State current, int fgi, int fieldNo, int navClassIndex, boolean ignoreLocalPmCache)
     This is called by sm's if they require a field.
public  StatesReturnedgetStateForDetach(OID oid, int fgi)
     This is called by sm's if they require a field.
public  voidgetStateForRefresh(OID oid, State current, int fgi)
     This is called by sm's when doing a refresh.
public  StategetStateFromLocalCacheById(Object oid)
    
final  PCStateMangetStateManager(Object o)
    
final  PCStateMangetStateManagerById(Object oid)
    
public  StorageManagergetStorageManager()
     Get our StorageManager.
public  SynchronizationgetSynchronization()
    
public  intgetTransactionTimeout()
     Get the current transaction timeout value for this resource.
public  ObjectgetTransactionalObjectId(Object pc)
    
public  ObjectgetUserObject()
    
public  booleanhasIdentity(Object pc)
     Does the instance have an identity? New instances are only assigned an identity on commit or flush or when the application executes an operation that requires the identity.
public  booleanisActive()
    
final public  booleanisActiveDS()
    
public  booleanisActualClosed()
    
public  booleanisCheckModelConsistencyOnCommit()
    
public  booleanisClosed()
    
public  booleanisDirty()
    
public  booleanisHollow(Object pc)
     Is the instance hollow? Hollow instances are managed but their fields have not been loaded from the level 2 cache or database.
public  booleanisIgnoreCache()
    
public  booleanisInPool()
    
public  booleanisInTx()
    
public  booleanisInterceptDfgFieldAccess()
    
public  booleanisManaged()
     Is this pm managed by a container.
public  booleanisMustNotPool()
    
public  booleanisNontransactionalRead()
    
public  booleanisNontransactionalWrite()
    
public  booleanisOptimistic()
    
public  booleanisPClean(Object pc)
    
public  booleanisPDeleted(Object pc)
    
public  booleanisPDirty(Object pc)
    
public  booleanisPNew(Object pc)
    
public  booleanisPNewDeleted(Object pc)
    
public  booleanisPNonTx(Object pc)
    
public  booleanisRestoreValues()
    
public  booleanisRetainValues()
    
public  booleanisSameRM(XAResource xaResource)
     This method does not check for inPool because Weblogic seems to keep a ref around of used ones to try and re-use it.
public  booleanisStateRequired(OID oid, FetchGroup fetchGroup)
     The StorageManager calls this method to check if we need prefetched data or not.
public  booleanisStrict()
    
public  booleanisTClean(Object pc)
    
public  booleanisTDirty(Object pc)
    
public  voidloadFetchGroup(Object pc, String name)
    
public  voidlogEvent(int level, String description, int ms)
    
public  voidmakeNontransactional(Object pc)
    
public  voidmakeNontransactionalAll(Object[] pcs)
    
public  voidmakeNontransactionalAll(Collection pcs)
    
public  voidmakePersistent(Object o)
    
public  voidmakePersistentAll(Object[] pcs)
    
public  voidmakePersistentAll(Collection pcs)
    
public  voidmakeReachablePersistent(Object o)
     Make an instance found in a reachability search persistent.
public  voidmakeTransactional(Object pc)
    
public  voidmakeTransactionalAll(Object[] pcs)
    
public  voidmakeTransactionalAll(Collection pcs)
    
public  voidmakeTransient(Object pc)
     TODO: Remove the instance from the weak caches.
public  voidmakeTransientAll(Object[] pcs)
     TODO: Remove the instance from the weak caches.
public  voidmakeTransientAll(Collection pcs)
     TODO: Remove the instance from the weak caches.
public  voidmakeTransientRecursive(Object pc)
    
public  ObjectnewObjectIdInstance(Class cls, String s)
    
public  ObjectnewObjectIdInstance(Class cls, String s, boolean resolved)
    
public  QuerynewQuery()
    
public  QuerynewQuery(Object compiled)
    
public  QuerynewQuery(String language, Object query)
    
public  QuerynewQuery(Class cls)
    
public  QuerynewQuery(Extent extent)
    
public  QuerynewQuery(Extent extent, String filter)
    
public  QuerynewQuery(Class cls, Collection cln)
    
public  QuerynewQuery(Class cls, String filter)
    
public  QuerynewQuery(Class cls, Collection cln, String filter)
    
public  voidphaseCommit1()
     This will do everything except actually commit to the store.
public  voidphaseCommit2()
     Do the actual commit on the store.
public  intprepare(Xid xid)
     Prepare to commit the work done on this resource in the given transaction.

This method cannot return a status indicating that the transaction should be rolled back.

public  voidprocessLocalCacheReferenceQueue()
     Process the ReferenceQueue for the local cache.
public  PCStateManreManage(OID oid, State state)
     This is called by the JDOManagedCache when an instance is added but it is not already managed.
public  Xid[]recover(int flag)
     Return a list of transactions that are in a prepared or heuristically state.

This method looks not only at the resource it is invoked on, but also on all other resources managed by the same resource manager. It is intended to be used by the application server when recovering after a server crash.

A recovery scan is done with one or more calls to this method. At the first call, VersantPersistenceManagerImp.TMSTARTRSCAN must be in the state argument to indicate that the scan should be started. During the recovery scan, the resource manager maintains an internal cursor that keeps track of the progress of the recovery scan. To end the recovery scan, the VersantPersistenceManagerImp.TMENDRSCAN must be passed in the state argument.
Parameters:
  flag - Must be either VersantPersistenceManagerImp.TMNOFLAGS, VersantPersistenceManagerImp.TMSTARTRSCAN,VersantPersistenceManagerImp.TMENDRSCAN or TMSTARTRSCAN|TMENDRSCAN.

public  voidrefresh(Object pc)
    
public  voidrefreshAll(Object[] pcs)
    
public  voidrefreshAll(Collection pcs)
    
public  voidrefreshAll()
    
public  voidremoveLifecycleListener(LifecycleListener listener)
    
public  voidremoveTxStateObject(PCStateMan stateObject)
    
public  voidresetForPooling()
     This will reset the pm to be returned to the pool.
public  voidretrieve(Object o)
    
public  voidretrieveAll(Collection collection)
    
public  voidretrieveAll(Collection collection, boolean b)
    
public  voidretrieveAll(Object[] objects, boolean b)
    
public  voidretrieveAll(Object[] objects)
    
public  voidretrieveAllImp(Object[] toRetrieve)
    
public  voidretrieveAllImp(Collection toRetrieve)
    
public  voidretrieveImp(Object o)
    
public  voidrollback()
     This is for client to rollback the connection.
public  voidrollback(Xid xid)
     Roll back the work done on this resource in the given transaction.
public  voidrollbackForFatalExceptionInJDOConnectionProxy()
     This is called by JDOConnectionImpProxy when it handles a JDOFatalException from a call to the JDOConnection.
public  voidsetActiveReference(Reference activeReference)
    
public  voidsetCache(LocalPMCache cache)
    
public  voidsetCheckModelConsistencyOnCommit(boolean on)
    
public  voidsetDatastoreTxLocking(int mode)
     Set the locking mode for datastore transactions.
public  voidsetIgnoreCache(boolean flag)
    
public  voidsetInPool(boolean inPool)
     This is called by the pool instance the moment comes in or out of the pool.
public  voidsetInterceptDfgFieldAccess(boolean on)
    
public  voidsetListeners(LifecycleListenerManager listeners)
    
public  voidsetManaged(boolean managed)
     set the state of the pm to be in a container.
public  voidsetMasterOnDetail(PersistenceCapable detail, int managedFieldNo, PersistenceCapable master, boolean removeFromCurrentMaster)
     Sets the master on the detail in a Master/Detail relationship.
public  voidsetMultithreaded(boolean flag)
    
public  voidsetMultithreadedImp(boolean flag)
    
public  voidsetMustNotPool(boolean mustNotPool)
    
public  voidsetNontransactionalRead(boolean nontransactionalRead)
    
public  voidsetNontransactionalWrite(boolean nontransactionalWrite)
    
public  voidsetOptimistic(boolean optimistic)
    
public  voidsetPmCacheRefType(Object pc, int type)
    
public  voidsetPmCacheRefType(Object[] pcs, int type)
    
public  voidsetPmCacheRefType(Collection col, int type)
    
public  voidsetPmCacheRefType(int type)
    
public  voidsetRestoreValues(boolean b)
    
public  voidsetRetainConnectionInOptTx(boolean on)
    
public  voidsetRetainValues(boolean retainValues)
    
public  voidsetStrict(boolean strict)
    
public  voidsetSynchronization(Synchronization sync)
    
public  booleansetTransactionTimeout(int seconds)
     Set the transaction timeout value for this resource.

If the seconds argument is 0, the timeout value is set to the default timeout value of the resource manager.

Not all resource managers support setting the timeout value. If the resource manager does not support setting the timeout value, it should return false.
Parameters:
  seconds - The timeout value, in seconds.

public  voidsetUserObject(Object o)
    
public  voidstart(Xid xid, int flags)
     Called to associate the resource with a transaction.
public  ListversantAllDirtyInstances()
    
public  CollectionversantAttachCopy(Collection detached, boolean makeTransactional)
     This method applies the changes contained in the collection of detached instances to the corresponding persistent instances in the cache and returns a collection of persistent instances that exactly corresponds to the parameter instances.
public  CollectionversantAttachCopy(Collection detached, boolean makeTransactional, boolean shallow)
     This method applies the changes contained in the collection of detached instances to the corresponding persistent instances in the cache and returns a collection of persistent instances that exactly corresponds to the parameter instances.
public  ListversantCollectReachable(Collection roots, String fetchGroup)
    
public  CollectionversantDetachCopy(Collection pcs, String fetchGroup)
     This method makes detached copies of the parameter instances and returns the copies as the result of the method.
public  QueryversantNewNamedQuery(Class cls, String queryName)
     Construct a new query instance with the given candidate class from a named query.

Field Detail
LANGUAGE_EJBQL
final public static String LANGUAGE_EJBQL(Code)



LANGUAGE_SQL
final public static String LANGUAGE_SQL(Code)



TX_FAIL
final public static int TX_FAIL(Code)



TX_INACTIVE
final public static int TX_INACTIVE(Code)



TX_PREPARED
final public static int TX_PREPARED(Code)



TX_STARTED
final public static int TX_STARTED(Code)



TX_SUSPENDED
final public static int TX_SUSPENDED(Code)



idle
public boolean idle(Code)



jdoImplHelper
final public JDOImplHelper jdoImplHelper(Code)



modelMetaData
final public ModelMetaData modelMetaData(Code)



next
public VersantPersistenceManagerImp next(Code)



prev
public VersantPersistenceManagerImp prev(Code)



requestedPCState
public PCStateMan requestedPCState(Code)
This is a cheat to quickly get the sm for a pc instance. When getPM is called on the stateManager it sets itself to the



storeOidStateContainer
final public StatesToStore storeOidStateContainer(Code)
This is used to transport the dirty stuff to the server.




Constructor Detail
VersantPersistenceManagerImp
public VersantPersistenceManagerImp(VersantPMFInternal pmf, ModelMetaData modelMetaData, StorageManager sm, LocalPMCache jdoManagedCache, MemQueryCompiler memQueryCompiler)(Code)




Method Detail
addForDelete
public void addForDelete(OID oid, State state)(Code)
Add the OID and State for deletion.



addLifecycleListener
public void addLifecycleListener(LifecycleListener listener, Class[] classes)(Code)



addToCache
public void addToCache(StatesReturned container)(Code)
Add all the OIDs and States in the container to the cache.



addTxStateObject
public void addTxStateObject(PCStateMan stateObject)(Code)
add an transactional instance to the list.
Parameters:
  stateObject -



afterCompletion
public void afterCompletion(int status)(Code)



beforeCompletion
public void beforeCompletion()(Code)



begin
public void begin()(Code)



cancelQueryExecution
public void cancelQueryExecution()(Code)



checkModelConsistency
public void checkModelConsistency()(Code)
Check the consistency of all instances in the local cache. Currently this makes sure that all birectional relationships have been completed properly (both sides in sync) but other checks may will be added in future. This method is very slow and should only be used for debugging during development.
See Also:   VersantPersistenceManagerImp.setCheckModelConsistencyOnCommit(boolean)



checkNonTxRead
final public void checkNonTxRead()(Code)



checkNonTxWrite
final public void checkNonTxWrite()(Code)



checkToPreFetch
public void checkToPreFetch(Object[] oids, int stateFieldNo, int navClassIndex)(Code)
<<<<<<< VersantPersistenceManagerImp.java This util method is used by collection types to preload their pc entries. It tests to determine if the states refered to by the oids is in the managed cache. If not they must be bulk loaded from server. The scenario in which this is likely to happen is when the collection is not in the default fetch group and the state is in cache with the collection filled in. If this collection field is read then the pcstateman will determine that the stateField is filled and hence not ask the server for it.



clearTxDirtyList
public void clearTxDirtyList()(Code)
Clear the dirty list.



close
public synchronized void close()(Code)
This is called by the user to close the pm. If in a managed environment the managedClosed flag will be set.

If pooling is enabled the the instance must be reset to be put back in the pool.

If pooling is not enabled then the instance must be reset to avoid mem leaks. The instance will never be used again.

The current transaction will be rolled back if active. This means that synchronization events will be fired.




commit
public void commit()(Code)
This calls commit on all the transactional objects. It ensures that the instances undergo the correct state changes.



commit
public void commit(Xid xid, boolean onePhase) throws XAException(Code)
Commit the work done on this resource in the given transaction.

If the onePhase argument is true, one-phase optimization is being used, and the VersantPersistenceManagerImp.prepare(Xid) prepare method must not have been called for this transaction. Otherwise, this is the second phase of the two-phase commit protocol.
Parameters:
  xid - The id of the transaction to commit work for.
Parameters:
  onePhase - If true, the transaction manager is using one-phaseoptimization.
throws:
  javax.transaction.xa.XAException - If an error occurred.




convertPcParamsToOID
public void convertPcParamsToOID(Object[] params)(Code)
Convert all PC, VersantOid and objectid-class params to OIDs. This makes it possible to pass an OID instead of a PC instance for PC parameters.



createStateManagerProxy
public StateManager createStateManagerProxy(PCStateMan sm)(Code)
Create a proxy for a PCStateMan or return it as is if no proxy is needed. This is used to synchronize StateManager access when multithreading is required.



currentTransaction
public Transaction currentTransaction()(Code)



deletePersistent
public void deletePersistent(Object pc)(Code)

Parameters:
  pc -



deletePersistentAll
public void deletePersistentAll(Object[] pcs)(Code)

Parameters:
  pcs -



deletePersistentAll
public void deletePersistentAll(Collection pcs)(Code)

Parameters:
  pcs -



destroy
public void destroy()(Code)
Destroy the PM. It cannot be reused after this call.



doBeforeState
public boolean doBeforeState(boolean isTransient, boolean isTransactional)(Code)



dump
public void dump(OID oid)(Code)



end
public void end(Xid xid, int flags) throws XAException(Code)
Called to disassociate the resource from a transaction.

If the flags argument is VersantPersistenceManagerImp.TMSUCCESS , the portion of work was done sucessfully.

If the flags argument is VersantPersistenceManagerImp.TMFAIL , the portion of work failed. The resource manager may mark the transaction for rollback only to avoid the transaction being committed.

If the flags argument is VersantPersistenceManagerImp.TMSUSPEND the resource will temporarily suspend the transaction association. The transaction must later be re-associated by giving the VersantPersistenceManagerImp.TMRESUME state to the VersantPersistenceManagerImp.start(Xid,int) start method.
Parameters:
  xid - The id of the transaction to disassociate from.
Parameters:
  flags - Must be either VersantPersistenceManagerImp.TMSUCCESS, VersantPersistenceManagerImp.TMFAILor VersantPersistenceManagerImp.TMSUSPEND.
throws:
  javax.transaction.xa.XAException - If an error occurred.




evict
public void evict(Object pc)(Code)



evictAll
public void evictAll()(Code)



evictAll
public void evictAll(Object[] pcs)(Code)



evictAll
public void evictAll(Collection pcs)(Code)



evictAllFromL2CacheAfterCommit
public void evictAllFromL2CacheAfterCommit(Object[] data)(Code)



evictAllFromL2CacheAfterCommit
public void evictAllFromL2CacheAfterCommit(Collection data)(Code)



evictAllFromL2CacheAfterCommit
public void evictAllFromL2CacheAfterCommit(Class cls, boolean includeSubclasses)(Code)



evictAllFromL2CacheAfterCommit
public void evictAllFromL2CacheAfterCommit()(Code)



evictFromL2CacheAfterCommit
public void evictFromL2CacheAfterCommit(Object o)(Code)



evictFromL2CacheAfterCommitImp
public void evictFromL2CacheAfterCommitImp(Object o)(Code)
Version of VersantPersistenceManagerImp.evictFromL2CacheAfterCommit without the active tx check for interna use.



extractOID
public OID extractOID(Object oid)(Code)



finalize
protected void finalize() throws Throwable(Code)
Reset the proxy so that if a client has a weak/soft ref to pm he will get a closed exception. Then return us to our PMF.



fireDelete
public void fireDelete(ClassMetaData cmd, Object o)(Code)
Fire a delete to all of the LifecycleListener's for o.



flush
public void flush()(Code)
This flushes everything to the store. After this state interogation will not be correct and the behaviour is not inline with the spec. This is used for big batch procedures that needs to free the memory.



flush
public void flush(boolean retainValues)(Code)



flushIfDepOn
public void flushIfDepOn(int[] cmdBits)(Code)



flushRetainState
public void flushRetainState()(Code)
This is used to flush the current changes to the store. All state interogation will still work after this is called. The data is just flushed to the store for queries to work.

The implication of this is that the datastore connection will be pinned to the jdoConnection for the life time of the transaction.

This method will be a no-op if the transaction is not active.




forget
public void forget(Xid xid) throws XAException(Code)
Tells the resource manager to forget about a heuristic decision.
Parameters:
  xid - The id of the transaction that was ended with a heuristicdecision.
throws:
  javax.transaction.xa.XAException - If an error occurred.



getActiveReference
public Reference getActiveReference()(Code)



getCache
public LocalPMCache getCache()(Code)



getCollectionField
public VersantSCOCollection getCollectionField(PersistenceCapable pc, int fieldNo)(Code)
Get a collection field from a pc. This is used to implement many-to-many relationships.



getConnectionDriverName
public String getConnectionDriverName(String dataStore)(Code)



getConnectionURL
public String getConnectionURL(String dataStore)(Code)



getDatastoreTxLocking
public int getDatastoreTxLocking()(Code)
Get the locking mode for datastore transactions.



getExtent
public Extent getExtent(Class persistenceCapableClass, boolean subclasses)(Code)
todo keep extent's around instead of creating a new one.
Parameters:
  persistenceCapableClass -
Parameters:
  subclasses -



getExternalOID
public Object getExternalOID(OID oid)(Code)



getIgnoreCache
public boolean getIgnoreCache()(Code)



getInternalOID
public OID getInternalOID(PersistenceCapable pc)(Code)
Return the internal oid representation for this pc instance. This oid is the actual oid and not a clone. If pc is null then null is returned.



getInternalSM
public PCStateMan getInternalSM(PersistenceCapable pc)(Code)
This is used internally to obtain the PCStateObject for a PersistanceCapable instance. This instance must be managed by this pm.



getInternalSM
public PCStateMan getInternalSM(OID oid)(Code)
This is used internally to obtain the PCStateObject for a PersistanceCapable instance. This instance must be managed by this pm.



getInternaleState
public State getInternaleState(PersistenceCapable pc)(Code)
This is used for debug. Not to be used else where.



getJdbcConnection
public Connection getJdbcConnection(String datastore)(Code)



getMemQueryCompiler
public MemQueryCompiler getMemQueryCompiler()(Code)



getMultithreaded
public boolean getMultithreaded()(Code)



getNontransactionalRead
public boolean getNontransactionalRead()(Code)



getNontransactionalWrite
public boolean getNontransactionalWrite()(Code)



getOID
OID getOID(VersantDetachable detachable)(Code)



getObjectByIDString
public Object getObjectByIDString(String value, boolean toValidate)(Code)



getObjectByIDString
public Object getObjectByIDString(String value, boolean toValidate, boolean resolved)(Code)



getObjectById
public Object getObjectById(Object oid, boolean validate)(Code)



getObjectByIdForState
public Object getObjectByIdForState(OID oid, int stateFieldNo, int navClassIndex, OID fromOID)(Code)
This is use by State implementations when they need to retrieve an instance. This will typically be a result of graph navigation. The oid parameter is not used when an embedded reference field is being retrieved.



getObjectByIdFromCache
public Object getObjectByIdFromCache(Object oid)(Code)
Return the instance for oid if it is present in the local PM cache otherwise return null. Note that the instances might still be hollow and touching its fields will cause a fetch from the level 2 cache or database.
See Also:   VersantPersistenceManagerImp.isHollow(Object)



getObjectField
public Object getObjectField(PersistenceCapable pc, int fieldNo)(Code)



getObjectId
public Object getObjectId(Object pc)(Code)



getObjectIdClass
public Class getObjectIdClass(Class cls)(Code)



getObjectsById
public int getObjectsById(Object[] oids, int length, Object[] data, int stateFieldNo, int classMetaDataIndex)(Code)
This util method is used by collection types to preload their pc entries. It tests to determine if the states refered to by the oids is in the managed cache. If not they must be bulk loaded from server. The scenario in which this is likely to happen is when the collection is not in the default fetch group and the state is in cache with the collection filled in. If this collection field is read then the pcstateman will determine that the stateField is filled and hence not ask the server for it.



getOptimistic
public boolean getOptimistic()(Code)



getOptimisticLockingValue
public Object getOptimisticLockingValue(Object o)(Code)



getPersistenceManager
public PersistenceManager getPersistenceManager()(Code)



getPersistenceManager
public PersistenceManager getPersistenceManager(PersistenceCapable pc)(Code)



getPersistenceManagerFactory
public PersistenceManagerFactory getPersistenceManagerFactory()(Code)



getPmCacheRefType
public int getPmCacheRefType()(Code)



getProxy
public PMProxy getProxy()(Code)



getRestoreValues
public boolean getRestoreValues()(Code)



getRetainValues
public boolean getRetainValues()(Code)



getSMIfManaged
public PCStateMan getSMIfManaged(PersistenceCapable pc)(Code)



getState
public StatesReturned getState(OID oid, State current, int fgi, int fieldNo, int navClassIndex, boolean ignoreLocalPmCache)(Code)
This is called by sm's if they require a field. This will update the local cache with the requested data (State instances). The returned container reference must be kept until all the required State instances in the local cache have been referenced or they might be GCed. This is important for collections of PC and other fields that involve fetching State instances and loading them into the local cache. They are only hard referenced when the SCO instance has been created.



getStateForDetach
public StatesReturned getStateForDetach(OID oid, int fgi)(Code)
This is called by sm's if they require a field. This will update the managedCache with the requested data.



getStateForRefresh
public void getStateForRefresh(OID oid, State current, int fgi)(Code)
This is called by sm's when doing a refresh. It will ensure that the data comes from the database when in a datastore transaction.



getStateFromLocalCacheById
public State getStateFromLocalCacheById(Object oid)(Code)



getStateManager
final PCStateMan getStateManager(Object o)(Code)



getStateManagerById
final PCStateMan getStateManagerById(Object oid)(Code)



getStorageManager
public StorageManager getStorageManager()(Code)
Get our StorageManager.



getSynchronization
public Synchronization getSynchronization()(Code)



getTransactionTimeout
public int getTransactionTimeout() throws XAException(Code)
Get the current transaction timeout value for this resource. The current timeout value, in seconds.
throws:
  javax.transaction.xa.XAException - If an error occurred.



getTransactionalObjectId
public Object getTransactionalObjectId(Object pc)(Code)



getUserObject
public Object getUserObject()(Code)



hasIdentity
public boolean hasIdentity(Object pc)(Code)
Does the instance have an identity? New instances are only assigned an identity on commit or flush or when the application executes an operation that requires the identity.



isActive
public boolean isActive()(Code)



isActiveDS
final public boolean isActiveDS()(Code)



isActualClosed
public boolean isActualClosed()(Code)



isCheckModelConsistencyOnCommit
public boolean isCheckModelConsistencyOnCommit()(Code)
Must bidirectional relationships be checked for consistency on commit or flush?



isClosed
public boolean isClosed()(Code)



isDirty
public boolean isDirty()(Code)
Are there any dirty instances?



isHollow
public boolean isHollow(Object pc)(Code)
Is the instance hollow? Hollow instances are managed but their fields have not been loaded from the level 2 cache or database.
See Also:   VersantPersistenceManagerImp.getObjectByIdFromCache(Object)



isIgnoreCache
public boolean isIgnoreCache()(Code)



isInPool
public boolean isInPool()(Code)



isInTx
public boolean isInTx()(Code)



isInterceptDfgFieldAccess
public boolean isInterceptDfgFieldAccess()(Code)



isManaged
public boolean isManaged()(Code)
Is this pm managed by a container.



isMustNotPool
public boolean isMustNotPool()(Code)



isNontransactionalRead
public boolean isNontransactionalRead()(Code)



isNontransactionalWrite
public boolean isNontransactionalWrite()(Code)



isOptimistic
public boolean isOptimistic()(Code)



isPClean
public boolean isPClean(Object pc)(Code)



isPDeleted
public boolean isPDeleted(Object pc)(Code)



isPDirty
public boolean isPDirty(Object pc)(Code)



isPNew
public boolean isPNew(Object pc)(Code)



isPNewDeleted
public boolean isPNewDeleted(Object pc)(Code)



isPNonTx
public boolean isPNonTx(Object pc)(Code)



isRestoreValues
public boolean isRestoreValues()(Code)



isRetainValues
public boolean isRetainValues()(Code)



isSameRM
public boolean isSameRM(XAResource xaResource) throws XAException(Code)
This method does not check for inPool because Weblogic seems to keep a ref around of used ones to try and re-use it. This happens even though it was delisted from transaction.

Tells the caller if this resource has the same resource manager as the argument resource.

The transaction manager needs this method to be able to decide if the VersantPersistenceManagerImp.start(Xid,int) start method should be given the VersantPersistenceManagerImp.TMJOIN state.
throws:
  javax.transaction.xa.XAException - If an error occurred.




isStateRequired
public boolean isStateRequired(OID oid, FetchGroup fetchGroup)(Code)
The StorageManager calls this method to check if we need prefetched data or not.



isStrict
public boolean isStrict()(Code)



isTClean
public boolean isTClean(Object pc)(Code)



isTDirty
public boolean isTDirty(Object pc)(Code)



loadFetchGroup
public void loadFetchGroup(Object pc, String name)(Code)



logEvent
public void logEvent(int level, String description, int ms)(Code)



makeNontransactional
public void makeNontransactional(Object pc)(Code)



makeNontransactionalAll
public void makeNontransactionalAll(Object[] pcs)(Code)



makeNontransactionalAll
public void makeNontransactionalAll(Collection pcs)(Code)



makePersistent
public void makePersistent(Object o)(Code)



makePersistentAll
public void makePersistentAll(Object[] pcs)(Code)



makePersistentAll
public void makePersistentAll(Collection pcs)(Code)



makeReachablePersistent
public void makeReachablePersistent(Object o)(Code)
Make an instance found in a reachability search persistent. This skips some checks done by makePersistent for speed. Note that this does not add reachable instances.




makeTransactional
public void makeTransactional(Object pc)(Code)



makeTransactionalAll
public void makeTransactionalAll(Object[] pcs)(Code)



makeTransactionalAll
public void makeTransactionalAll(Collection pcs)(Code)



makeTransient
public void makeTransient(Object pc)(Code)
TODO: Remove the instance from the weak caches.
Parameters:
  pc -



makeTransientAll
public void makeTransientAll(Object[] pcs)(Code)
TODO: Remove the instance from the weak caches.
Parameters:
  pcs -



makeTransientAll
public void makeTransientAll(Collection pcs)(Code)
TODO: Remove the instance from the weak caches.
Parameters:
  pcs -



makeTransientRecursive
public void makeTransientRecursive(Object pc)(Code)



newObjectIdInstance
public Object newObjectIdInstance(Class cls, String s)(Code)



newObjectIdInstance
public Object newObjectIdInstance(Class cls, String s, boolean resolved)(Code)



newQuery
public Query newQuery()(Code)



newQuery
public Query newQuery(Object compiled)(Code)



newQuery
public Query newQuery(String language, Object query)(Code)



newQuery
public Query newQuery(Class cls)(Code)



newQuery
public Query newQuery(Extent extent)(Code)



newQuery
public Query newQuery(Extent extent, String filter)(Code)



newQuery
public Query newQuery(Class cls, Collection cln)(Code)



newQuery
public Query newQuery(Class cls, String filter)(Code)



newQuery
public Query newQuery(Class cls, Collection cln, String filter)(Code)



phaseCommit1
public void phaseCommit1()(Code)
This will do everything except actually commit to the store.



phaseCommit2
public void phaseCommit2()(Code)
Do the actual commit on the store.



prepare
public int prepare(Xid xid) throws XAException(Code)
Prepare to commit the work done on this resource in the given transaction.

This method cannot return a status indicating that the transaction should be rolled back. If the resource wants the transaction to be rolled back, it should throw an XAException at the caller.
Parameters:
  xid - The id of the transaction to prepare to commit work for. Either VersantPersistenceManagerImp.XA_OK or VersantPersistenceManagerImp.XA_RDONLY.
throws:
  javax.transaction.xa.XAException - If an error occurred.




processLocalCacheReferenceQueue
public void processLocalCacheReferenceQueue()(Code)
Process the ReferenceQueue for the local cache. This is called when a query fetches data from the server to ensure that long running read-only transactions do not leak SoftReferences.



reManage
public PCStateMan reManage(OID oid, State state)(Code)
This is called by the JDOManagedCache when an instance is added but it is not already managed.



recover
public Xid[] recover(int flag) throws XAException(Code)
Return a list of transactions that are in a prepared or heuristically state.

This method looks not only at the resource it is invoked on, but also on all other resources managed by the same resource manager. It is intended to be used by the application server when recovering after a server crash.

A recovery scan is done with one or more calls to this method. At the first call, VersantPersistenceManagerImp.TMSTARTRSCAN must be in the state argument to indicate that the scan should be started. During the recovery scan, the resource manager maintains an internal cursor that keeps track of the progress of the recovery scan. To end the recovery scan, the VersantPersistenceManagerImp.TMENDRSCAN must be passed in the state argument.
Parameters:
  flag - Must be either VersantPersistenceManagerImp.TMNOFLAGS, VersantPersistenceManagerImp.TMSTARTRSCAN,VersantPersistenceManagerImp.TMENDRSCAN or TMSTARTRSCAN|TMENDRSCAN. An array of zero or more transaction ids.
throws:
  javax.transaction.xa.XAException - If an error occurred.




refresh
public void refresh(Object pc)(Code)



refreshAll
public void refreshAll(Object[] pcs)(Code)



refreshAll
public void refreshAll(Collection pcs)(Code)



refreshAll
public void refreshAll()(Code)



removeLifecycleListener
public void removeLifecycleListener(LifecycleListener listener)(Code)



removeTxStateObject
public void removeTxStateObject(PCStateMan stateObject)(Code)



resetForPooling
public void resetForPooling()(Code)
This will reset the pm to be returned to the pool.



retrieve
public void retrieve(Object o)(Code)



retrieveAll
public void retrieveAll(Collection collection)(Code)



retrieveAll
public void retrieveAll(Collection collection, boolean b)(Code)



retrieveAll
public void retrieveAll(Object[] objects, boolean b)(Code)



retrieveAll
public void retrieveAll(Object[] objects)(Code)



retrieveAllImp
public void retrieveAllImp(Object[] toRetrieve)(Code)



retrieveAllImp
public void retrieveAllImp(Collection toRetrieve)(Code)



retrieveImp
public void retrieveImp(Object o)(Code)



rollback
public void rollback()(Code)
This is for client to rollback the connection. This will try to orderly rollback the data. The pm will be reset if an internal exception happens during rollback. The pm must be reset as new to avoid inconsistent behaviour.

NB TODO ensure that all tx instances are rolledback properly. If for instance the are already removed out of the tx list at commit time then they can not undergo a rollback.




rollback
public void rollback(Xid xid) throws XAException(Code)
Roll back the work done on this resource in the given transaction.
Parameters:
  xid - The id of the transaction to rollback for.
throws:
  javax.transaction.xa.XAException - If an error occurred.



rollbackForFatalExceptionInJDOConnectionProxy
public void rollbackForFatalExceptionInJDOConnectionProxy()(Code)
This is called by JDOConnectionImpProxy when it handles a JDOFatalException from a call to the JDOConnection.



setActiveReference
public void setActiveReference(Reference activeReference)(Code)



setCache
public void setCache(LocalPMCache cache)(Code)



setCheckModelConsistencyOnCommit
public void setCheckModelConsistencyOnCommit(boolean on)(Code)



setDatastoreTxLocking
public void setDatastoreTxLocking(int mode)(Code)
Set the locking mode for datastore transactions. This method may only be called when no transaction is active. You can set the default value for this property using the Workbench or edit your .jdogenie file directly (datastore.tx.locking property).
See Also:   VersantPersistenceManagerImp.LOCKING_NONE
See Also:   VersantPersistenceManagerImp.LOCKING_FIRST
See Also:   VersantPersistenceManagerImp.LOCKING_ALL



setIgnoreCache
public void setIgnoreCache(boolean flag)(Code)



setInPool
public void setInPool(boolean inPool)(Code)
This is called by the pool instance the moment comes in or out of the pool.



setInterceptDfgFieldAccess
public void setInterceptDfgFieldAccess(boolean on)(Code)



setListeners
public void setListeners(LifecycleListenerManager listeners)(Code)



setManaged
public void setManaged(boolean managed)(Code)
set the state of the pm to be in a container.
Parameters:
  managed -



setMasterOnDetail
public void setMasterOnDetail(PersistenceCapable detail, int managedFieldNo, PersistenceCapable master, boolean removeFromCurrentMaster)(Code)
Sets the master on the detail in a Master/Detail relationship. If removeFromCurrentMaster is true then the detail is removed from its current master (if any and if different).



setMultithreaded
public void setMultithreaded(boolean flag)(Code)



setMultithreadedImp
public void setMultithreadedImp(boolean flag)(Code)



setMustNotPool
public void setMustNotPool(boolean mustNotPool)(Code)



setNontransactionalRead
public void setNontransactionalRead(boolean nontransactionalRead)(Code)



setNontransactionalWrite
public void setNontransactionalWrite(boolean nontransactionalWrite)(Code)



setOptimistic
public void setOptimistic(boolean optimistic)(Code)



setPmCacheRefType
public void setPmCacheRefType(Object pc, int type)(Code)



setPmCacheRefType
public void setPmCacheRefType(Object[] pcs, int type)(Code)



setPmCacheRefType
public void setPmCacheRefType(Collection col, int type)(Code)



setPmCacheRefType
public void setPmCacheRefType(int type)(Code)



setRestoreValues
public void setRestoreValues(boolean b)(Code)



setRetainConnectionInOptTx
public void setRetainConnectionInOptTx(boolean on)(Code)



setRetainValues
public void setRetainValues(boolean retainValues)(Code)



setStrict
public void setStrict(boolean strict)(Code)



setSynchronization
public void setSynchronization(Synchronization sync)(Code)



setTransactionTimeout
public boolean setTransactionTimeout(int seconds) throws XAException(Code)
Set the transaction timeout value for this resource.

If the seconds argument is 0, the timeout value is set to the default timeout value of the resource manager.

Not all resource managers support setting the timeout value. If the resource manager does not support setting the timeout value, it should return false.
Parameters:
  seconds - The timeout value, in seconds. True if the timeout value could be set, otherwise false.
throws:
  javax.transaction.xa.XAException - If an error occurred.




setUserObject
public void setUserObject(Object o)(Code)



start
public void start(Xid xid, int flags) throws XAException(Code)
Called to associate the resource with a transaction.

If the flags argument is VersantPersistenceManagerImp.TMNOFLAGS , the transaction must not previously have been seen by this resource manager, or an javax.transaction.xa.XAException with error code XAER_DUPID will be thrown.

If the flags argument is VersantPersistenceManagerImp.TMJOIN , the resource will join a transaction previously seen by its resource manager.

If the flags argument is VersantPersistenceManagerImp.TMRESUME the resource will resume the transaction association that was suspended with end(TMSUSPEND).
Parameters:
  xid - The id of the transaction to associate with.
Parameters:
  flags - Must be either VersantPersistenceManagerImp.TMNOFLAGS, VersantPersistenceManagerImp.TMJOINor VersantPersistenceManagerImp.TMRESUME.
throws:
  javax.transaction.xa.XAException - If an error occurred.




versantAllDirtyInstances
public List versantAllDirtyInstances()(Code)



versantAttachCopy
public Collection versantAttachCopy(Collection detached, boolean makeTransactional)(Code)
This method applies the changes contained in the collection of detached instances to the corresponding persistent instances in the cache and returns a collection of persistent instances that exactly corresponds to the parameter instances. The order of instances in the parameter Collection's iteration corresponds to the order of corresponding instances in the returned Collection's iteration.

Changes made to instances while detached are applied to the corresponding persistent instances in the cache. New instances associated with the detached instances are added to the persistent instances in the corresponding place.




versantAttachCopy
public Collection versantAttachCopy(Collection detached, boolean makeTransactional, boolean shallow)(Code)
This method applies the changes contained in the collection of detached instances to the corresponding persistent instances in the cache and returns a collection of persistent instances that exactly corresponds to the parameter instances. The order of instances in the parameter Collection's iteration corresponds to the order of corresponding instances in the returned Collection's iteration.

Changes made to instances while detached are applied to the corresponding persistent instances in the cache. New instances associated with the detached instances are added to the persistent instances in the corresponding place.
Parameters:
  detached - VersantDetachable objects to attach in the currenttransaction
Parameters:
  shallow - attach only the objects in 'detached' Collection and notreachable objects if true.




versantCollectReachable
public List versantCollectReachable(Collection roots, String fetchGroup)(Code)



versantDetachCopy
public Collection versantDetachCopy(Collection pcs, String fetchGroup)(Code)
This method makes detached copies of the parameter instances and returns the copies as the result of the method. The order of instances in the parameter Collection's iteration corresponds to the order of corresponding instances in the returned Collection's iteration.

The Collection of instances is first made persistent, and the reachability algorithm is run on the instances. This ensures that the closure of all of the instances in the the parameter Collection is persistent.

For each instance in the parameter Collection, a corresponding detached copy is created. Each field in the persistent instance is handled based on its type and whether the field is contained in the fetch group for the persistence-capable class. If there are duplicates in the parameter Collection, the corresponding detached copy is used for each such duplicate.




versantNewNamedQuery
public Query versantNewNamedQuery(Class cls, String queryName)(Code)
Construct a new query instance with the given candidate class from a named query. The query name given must be the name of a query defined in metadata. The metadata is searched for the specified name. This is a JDO 2 preview feature.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.