Java Doc for JDOPOManager.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » pm » jdo » lib » 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 » Database ORM » Speedo_1.4.5 » org.objectweb.speedo.pm.jdo.lib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.speedo.pm.lib.AbstractPOManager
      org.objectweb.speedo.pm.jdo.lib.JDOPOManager

JDOPOManager
public class JDOPOManager extends AbstractPOManager implements JDOPOManagerItf,BindingController(Code)
Is a fractal component exporting the POManagerItf interface. This implementation delegates most of the JDO methods (javax.jdo.PersistenceManager) to the underlying TransactionPersistenceManager, the perseus component managing the concurrency, the caching and the loading aspect. In order to represents a working set (transtional or not) this PM is linked forever to an org.objectweb.speedo.workingset.jdo.api.JDOTransactionItf instance. The status of this JDOTransactionItf instance changes when this PM is allocated or closed, or when transaction demarcations are done through the javax.jdo.Transaction interface. This implementation uses a QueryManager for allocating CompiledQuery instance. Concerning the javax.jdo.Query implementation, this PM uses org.objectweb.speedo.query.lib.SpeedoQuery which are created each time (No pooling mechanism). The last dependencies is the JormFactory and a P
See Also:   javax.jdo.PersistenceManager
See Also:   org.objectweb.perseus.persistence.api.TransactionalPersistenceManager
See Also:   org.objectweb.speedo.mapper.api.JormFactory
See Also:   org.objectweb.speedo.pm.api.POManagerFactoryItf
See Also:   org.objectweb.speedo.query.api.QueryManager
See Also:   org.objectweb.speedo.query.api.CompiledQuery
See Also:   org.objectweb.speedo.workingset.jdo.api.JDOTransactionItf
author:
   S.Chassande-Barrioz


Field Summary
 booleanignoreCache
    

Constructor Summary
public  JDOPOManager()
    

Method Summary
public  voidaddInstanceLifecycleListener(InstanceLifecycleListener l, Class[] classes)
    
public  voidcheckConsistency()
    
public  voidclose()
     This method closes the PersistenceManager.
public  voidclosePOManager()
    
public  QuerycreateQuery(Object o)
    
public  javax.jdo.TransactioncurrentTransaction()
     Return the JDOTransactionItf instance associated with a PersistenceManager.
public  voiddeleteByQuery(QueryDefinition qd)
    
public  voiddeletePersistent(Object o)
     Delete the persistent instance from the data store.
public  voiddeletePersistentAll(Object[] pcs)
     Delete an array of instances from the data store.
public  voiddeletePersistentAll(Collection pcs)
     Delete a Set of instances from the data store.
public  ObjectdetachCopy(Object o)
     Make a detached copy of the persitent object o and return it.
public  CollectiondetachCopyAll(Collection collection)
     Create a detached copy for each element of collection (assuming each element is persistent).
public  Object[]detachCopyAll(Object[] objects)
    
public  voidevict(Object o)
     Mark an instance as no longer needed in the cache.
public  voidevictAll(Object[] pcs)
     Mark an array of instances as no longer needed in the cache.
public  voidevictAll(Collection pcs)
     Mark a Set of instances as no longer needed in the cache.
public  voidevictAll()
     Mark all persistent-nontransactional instances as no longer needed in the cache.
public  voidflush()
    
public  JDOConnectiongetDataStoreConnection()
    
public  booleangetDetachAllOnCommit()
    
public  ObjectgetEncodedPName(PersistentObjectItf po)
    
public  ExtentgetExtent(Class persistenceCapableClass, boolean subclasses)
     Not implemented.
public  ExtentgetExtent(Class arg0)
    
public  FetchPlangetFetchPlan()
    
public  booleangetIgnoreCache()
     Get the ignoreCache setting for queries.
public  booleangetMultithreaded()
     Get the current Multithreaded flag for this PersistenceManager.
public  ObjectgetNativeConnection()
    
public  ObjectgetObjectById(Object oid, boolean validate)
     This method locates a persistent instance in the cache of instances managed by this PersistenceManager.
public  ObjectgetObjectById(Class arg0, Object oid)
    
public  ObjectgetObjectById(Object oid)
    
public  ObjectgetObjectId(Object pc)
     The ObjectId returned by this method represents the JDO identity of the instance.
public  java.lang.ClassgetObjectIdClass(Class cls)
    
public  CollectiongetObjectsById(Collection arg0, boolean validate)
    
public  CollectiongetObjectsById(Collection arg0)
    
public  Object[]getObjectsById(Object[] arg0, boolean arg1)
    
public  Object[]getObjectsById(Object[] arg0)
    
public  PersistenceManagerFactorygetPersistenceManagerFactory()
    
public  SequencegetSequence(String name)
    
public  ObjectgetTransactionalObjectId(Object o)
     Not implemented.
public  ObjectgetUserObject()
     The application can manage the PersistenceManager instances more easily by having an application object associated with each PersistenceManager instance.
public  ObjectgetUserObject(Object arg0)
    
public  booleanisClosed()
    
public  voidmakeNontransactional(Object o)
    
public  voidmakeNontransactionalAll(Object[] pcs)
    
public  voidmakeNontransactionalAll(Collection pcs)
    
public  ObjectmakePersistent(Object o)
     Make the transient instance persistent in this PersistenceManager. This method must be called in an active transaction. The PersistenceManager assigns an ObjectId to the instance and transitions it to persistent-new. The instance will be managed in the Extent associated with its Class. The instance will be put into the data store at commit. The closure of instances of PersistenceCapable classes reachable from persistent fields will be made persistent at commit.
public  Object[]makePersistentAll(Object[] pcs)
     Make an array of instances persistent.
public  CollectionmakePersistentAll(Collection pcs)
     Make a Set of instances persistent.
public  voidmakeTransactional(Object o)
     Make an instance subject to transactional boundaries.
public  voidmakeTransactionalAll(Object[] pcs)
     Make an array of instances subject to transactional boundaries.
public  voidmakeTransactionalAll(Collection pcs)
     Make a Set of instances subject to transactional boundaries.
public  voidmakeTransient(Object o)
     Make an instance transient, removing it from management by this PersistenceManager.

The instance loses its JDO identity and it is no longer associated with any PersistenceManager.

public  voidmakeTransient(Object o, boolean useFetchPlan)
    
public  voidmakeTransientAll(Object[] pcs)
     Make an array of instances transient, removing them from management by this PersistenceManager.
public  voidmakeTransientAll(Collection pcs)
     Make a Set of instances transient, removing them from management by this PersistenceManager.

The instances lose their JDO identity and they are no longer associated with any PersistenceManager.

public  voidmakeTransientAll(Object[] os, boolean useFetchPlan)
    
public  voidmakeTransientAll(Collection os, boolean useFetchPlan)
    
public  ObjectnewInstance(Class arg0)
    
public  QuerynewNamedQuery(Class klass, String name)
    
public  ObjectnewObjectIdInstance(Class aClass, Object s)
    
public  QuerynewQuery()
     Create a new Query with no elements.
public  QuerynewQuery(String query)
    
public  QuerynewQuery(Object compiled)
     Create a new Query using elements from another Query.
public  QuerynewQuery(String language, Object query)
     Create a new Query using the specified language.
public  QuerynewQuery(Class cls)
     Create a new Query specifying the Class of the candidate instances.
public  QuerynewQuery(Extent extent)
    
public  QuerynewQuery(Extent extent, String filter)
    
public  QuerynewQuery(Class cls, Collection cln)
     Create a new Query with the Class of the candidate instances and candidate Set.
public  QuerynewQuery(Class cls, String filter)
     Create a new Query with the Class of the candidate instances and filter.
public  QuerynewQuery(Class cls, Collection cln, String filter)
     Create a new Query with the Class of the candidate instances, candidate Set, and filter.
public  ObjectputUserObject(Object arg0, Object arg1)
    
public  voidrefresh(Object o)
     Refresh the state of the instance from the data store.

In an optimistic transaction, the state of instances in the cache might not match the state in the data store.

public  voidrefreshAll(Object[] pcs)
     Refresh the state of an array of instances from the data store.
public  voidrefreshAll(Collection pcs)
     Refresh the state of a Set of instances from the data store.
public  voidrefreshAll()
     Refresh the state of all applicable instances from the data store.

If called with an active transaction, all transactional instances will be refreshed.

public  voidrefreshAll(JDOException arg0)
    
public  voidremoveInstanceLifecycleListener(InstanceLifecycleListener classes)
    
public  ObjectremoveUserObject(Object arg0)
    
protected  voidresetPMOnOpen(Object connectionspec)
    
public  voidretrieve(Object o)
    
public  voidretrieve(Object o, boolean FGOnly)
    
public  voidretrieveAll(Collection pcs)
    
public  voidretrieveAll(Object[] pcs)
    
public  voidretrieveAll(Collection collection, boolean b)
    
public  voidretrieveAll(Object[] objects, boolean b)
    
public  voidsetDetachAllOnCommit(boolean arg0)
    
public  voidsetIgnoreCache(boolean flag)
     Set the ignoreCache parameter for queries.
public  voidsetMultithreaded(boolean flag)
     Set the Multithreaded flag for this PersistenceManager.
public  voidsetUserObject(Object o)
    
public  ObjectspeedoAttachCopy(Object detached, Map map)
     Apply the changes contained in the detached object to the corresponding persistent instance in the cache.
public  voidspeedoDeletePersistent(Object o)
    
public  voidspeedoDeletePersistent(Object oid, Class pc)
    
public  ObjectspeedoDetachCopy(PersistentObjectItf po, Map map, Collection fgHints)
    
public  FetchPlanItfspeedoGetFetchPlan()
    
public  ObjectspeedoGetObjectById(Object oid, boolean validate)
    
public  ObjectspeedoMakePersistent(PersistentObjectItf po, Map map)
    
public  voidspeedoRefresh(PersistentObjectItf sp, Map map, Collection fgHints)
    
public  voidspeedoRetrieve(PersistentObjectItf sp, Map map, Collection fgHints)
    

Field Detail
ignoreCache
boolean ignoreCache(Code)
indicates if the cache must be ignore on queries




Constructor Detail
JDOPOManager
public JDOPOManager()(Code)




Method Detail
addInstanceLifecycleListener
public void addInstanceLifecycleListener(InstanceLifecycleListener l, Class[] classes)(Code)



checkConsistency
public void checkConsistency()(Code)



close
public void close()(Code)
This method closes the PersistenceManager.
exception:
  javax.jdo.JDOUserException - if the transaction associated tothe persistence manager is active.
exception:
  javax.jdo.JDOFatalDataStoreException - if there is a problem whilereleasing the persistence manager.



closePOManager
public void closePOManager()(Code)



createQuery
public Query createQuery(Object o)(Code)



currentTransaction
public javax.jdo.Transaction currentTransaction()(Code)
Return the JDOTransactionItf instance associated with a PersistenceManager. the JDOTransactionItf associated with thisPersistenceManager.



deleteByQuery
public void deleteByQuery(QueryDefinition qd)(Code)



deletePersistent
public void deletePersistent(Object o)(Code)
Delete the persistent instance from the data store. This method must be called in an active transaction. The data store object will be removed at commit. Unlike makePersistent, which makes the closure of the instance persistent, the closure of the instance is not deleted from the data store. This method has no effect if the instance is already deleted in the current transaction.
Parameters:
  o - a persistent instance
exception:
  javax.jdo.JDOUserException - if the instance is transient or managed byanother PersistenceManager.



deletePersistentAll
public void deletePersistentAll(Object[] pcs)(Code)
Delete an array of instances from the data store.
Parameters:
  pcs - a Set of persistent instances
See Also:   JDOPOManager.deletePersistent(java.lang.Object pc)



deletePersistentAll
public void deletePersistentAll(Collection pcs)(Code)
Delete a Set of instances from the data store.
Parameters:
  pcs - a Set of persistent instances
See Also:   JDOPOManager.deletePersistent(java.lang.Object pc)



detachCopy
public Object detachCopy(Object o)(Code)
Make a detached copy of the persitent object o and return it. Only the fields belonging to the fetch group are reachable.
Parameters:
  o - the detached copy of the persistent object



detachCopyAll
public Collection detachCopyAll(Collection collection)(Code)
Create a detached copy for each element of collection (assuming each element is persistent). If there are duplicates in collection, the corresponding detached copy is used for each such duplicate.
Parameters:
  collection - the collection of the detached copies in the same order than the parameter



detachCopyAll
public Object[] detachCopyAll(Object[] objects)(Code)



evict
public void evict(Object o)(Code)
Mark an instance as no longer needed in the cache.
Parameters:
  o - the instance to evict from the cache.



evictAll
public void evictAll(Object[] pcs)(Code)
Mark an array of instances as no longer needed in the cache.
See Also:   JDOPOManager.evict(java.lang.Object pc)
Parameters:
  pcs - the array of instances to evict from the cache.
exception:
  javax.jdo.JDOUserException - if some instances cannot be removed.



evictAll
public void evictAll(Collection pcs)(Code)
Mark a Set of instances as no longer needed in the cache.
See Also:   JDOPOManager.evict(java.lang.Object pc)
Parameters:
  pcs - the Set of instance to evict from the cache.



evictAll
public void evictAll()(Code)
Mark all persistent-nontransactional instances as no longer needed in the cache. It transitions all persistent-nontransactional instances to hollow. Transactional instances are subject to eviction based on the RetainValues setting.
See Also:   JDOPOManager.evict(java.lang.Object pc)



flush
public void flush()(Code)



getDataStoreConnection
public JDOConnection getDataStoreConnection()(Code)



getDetachAllOnCommit
public boolean getDetachAllOnCommit()(Code)



getEncodedPName
public Object getEncodedPName(PersistentObjectItf po)(Code)



getExtent
public Extent getExtent(Class persistenceCapableClass, boolean subclasses)(Code)
Not implemented. The PersistenceManager manages a collection of instances in the data store based on the class of the instances. This method returns a Extent of instances in the data store that might be iterated or given to a Query. The Extent itself might not reference any instances, but only hold the class name and an indicator whether subclasses are included in the Extent.
Parameters:
  persistenceCapableClass - Class of instances
Parameters:
  subclasses - whether to include instances of subclasses an Extent of the specified Class



getExtent
public Extent getExtent(Class arg0)(Code)



getFetchPlan
public FetchPlan getFetchPlan()(Code)



getIgnoreCache
public boolean getIgnoreCache()(Code)
Get the ignoreCache setting for queries. the ignoreCache setting.
See Also:   JDOPOManager.setIgnoreCache



getMultithreaded
public boolean getMultithreaded()(Code)
Get the current Multithreaded flag for this PersistenceManager. This option is ignored by the implementation.
See Also:   JDOPOManager.setMultithreaded the Multithreaded setting.



getNativeConnection
public Object getNativeConnection()(Code)



getObjectById
public Object getObjectById(Object oid, boolean validate)(Code)
This method locates a persistent instance in the cache of instances managed by this PersistenceManager. The getObjectById method attempts to find an instance in the cache with the specified JDO identity. The oid parameter object might have been returned by an earlier call to getObjectId or getTransactionalObjectId, or might have been constructed by the application.
See Also:   JDOPOManager.getObjectId(java.lang.Object pc)
See Also:   JDOPOManager.getTransactionalObjectId(java.lang.Object pc) the PersistenceCapable instance with the specifiedObjectId
Parameters:
  oid - an ObjectId
Parameters:
  validate - if the existence of the instance is to be validated. Theflag is ignored in this implementation.



getObjectById
public Object getObjectById(Class arg0, Object oid)(Code)



getObjectById
public Object getObjectById(Object oid)(Code)



getObjectId
public Object getObjectId(Object pc)(Code)
The ObjectId returned by this method represents the JDO identity of the instance. The ObjectId is a copy (clone) of the internal state of the instance, and changing it does not affect the JDO identity of the instance.
See Also:   JDOPOManager.getTransactionalObjectId(java.lang.Object pc)
See Also:   JDOPOManager.getObjectById(java.lang.Object oid,boolean validate)
Parameters:
  pc - the PersistenceCapable instance the ObjectId of the instance



getObjectIdClass
public java.lang.Class getObjectIdClass(Class cls)(Code)
Fetches the Null PName associated to the PBinder of the persistent class



getObjectsById
public Collection getObjectsById(Collection arg0, boolean validate)(Code)



getObjectsById
public Collection getObjectsById(Collection arg0)(Code)



getObjectsById
public Object[] getObjectsById(Object[] arg0, boolean arg1)(Code)



getObjectsById
public Object[] getObjectsById(Object[] arg0)(Code)



getPersistenceManagerFactory
public PersistenceManagerFactory getPersistenceManagerFactory()(Code)



getSequence
public Sequence getSequence(String name)(Code)



getTransactionalObjectId
public Object getTransactionalObjectId(Object o)(Code)
Not implemented. The ObjectId returned by this method represents the JDO identity of the instance. The ObjectId is a copy (clone) of the internal state of the instance, and changing it does not affect the JDO identity of the instance.

If the object identity is being changed in the transaction, by the application modifying one or more of the application key fields, then this method returns the current identity in the transaction.

If there is no transaction in progress, or if none of the key fields is being modified, then this method will return the same value as getObjectId.
See Also:   JDOPOManager.getObjectId(java.lang.Object pc)
See Also:   JDOPOManager.getObjectById(java.lang.Object oid,boolean validate)
Parameters:
  o - a PersistenceCapable instance the ObjectId of the instance




getUserObject
public Object getUserObject()(Code)
The application can manage the PersistenceManager instances more easily by having an application object associated with each PersistenceManager instance. the user object associated with this PersistenceManager
See Also:   JDOPOManager.setUserObject



getUserObject
public Object getUserObject(Object arg0)(Code)



isClosed
public boolean isClosed()(Code)



makeNontransactional
public void makeNontransactional(Object o)(Code)



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



makeNontransactionalAll
public void makeNontransactionalAll(Collection pcs)(Code)



makePersistent
public Object makePersistent(Object o)(Code)
Make the transient instance persistent in this PersistenceManager. This method must be called in an active transaction. The PersistenceManager assigns an ObjectId to the instance and transitions it to persistent-new. The instance will be managed in the Extent associated with its Class. The instance will be put into the data store at commit. The closure of instances of PersistenceCapable classes reachable from persistent fields will be made persistent at commit. [This is known as persistence by reachability.]
Parameters:
  o - a transient instance of a Class that implementsPersistenceCapable



makePersistentAll
public Object[] makePersistentAll(Object[] pcs)(Code)
Make an array of instances persistent.
Parameters:
  pcs - an array of transient instances
exception:
  javax.jdo.JDOUserException - if an object cannot be made persistent.
See Also:   JDOPOManager.makePersistent(java.lang.Object pc)



makePersistentAll
public Collection makePersistentAll(Collection pcs)(Code)
Make a Set of instances persistent.
Parameters:
  pcs - a Set of transient instances
See Also:   JDOPOManager.makePersistent(java.lang.Object pc)



makeTransactional
public void makeTransactional(Object o)(Code)
Make an instance subject to transactional boundaries.
See Also:   javax.jdo.PersistenceManager.makeTransactional
Parameters:
  o - the instance to make transactional.



makeTransactionalAll
public void makeTransactionalAll(Object[] pcs)(Code)
Make an array of instances subject to transactional boundaries.
Parameters:
  pcs - the array of instances to make transactional.
See Also:   JDOPOManager.makeTransactional(java.lang.Object pc)



makeTransactionalAll
public void makeTransactionalAll(Collection pcs)(Code)
Make a Set of instances subject to transactional boundaries.
Parameters:
  pcs - the Set of instances to make transactional.
See Also:   JDOPOManager.makeTransactional(java.lang.Object pc)



makeTransient
public void makeTransient(Object o)(Code)
Make an instance transient, removing it from management by this PersistenceManager.

The instance loses its JDO identity and it is no longer associated with any PersistenceManager. The state of fields is preserved unchanged.
Parameters:
  o - the instance to make transient.
exception:
  javax.jdo.JDOUserException - if the instance is dirty.




makeTransient
public void makeTransient(Object o, boolean useFetchPlan)(Code)



makeTransientAll
public void makeTransientAll(Object[] pcs)(Code)
Make an array of instances transient, removing them from management by this PersistenceManager.
See Also:   JDOPOManager.makeTransient(java.lang.Object pc)
Parameters:
  pcs - the instances to make transient.



makeTransientAll
public void makeTransientAll(Collection pcs)(Code)
Make a Set of instances transient, removing them from management by this PersistenceManager.

The instances lose their JDO identity and they are no longer associated with any PersistenceManager. The state of fields is preserved unchanged.
Parameters:
  pcs - the instances to make transient.




makeTransientAll
public void makeTransientAll(Object[] os, boolean useFetchPlan)(Code)



makeTransientAll
public void makeTransientAll(Collection os, boolean useFetchPlan)(Code)



newInstance
public Object newInstance(Class arg0)(Code)



newNamedQuery
public Query newNamedQuery(Class klass, String name)(Code)



newObjectIdInstance
public Object newObjectIdInstance(Class aClass, Object s)(Code)



newQuery
public Query newQuery()(Code)
Create a new Query with no elements. the new Query.



newQuery
public Query newQuery(String query)(Code)



newQuery
public Query newQuery(Object compiled)(Code)
Create a new Query using elements from another Query. The other Query must have been created by the same JDO implementation. It might be active in a different PersistenceManager or might have been serialized and restored.

All of the settings of the other Query are copied to this Query, except for the candidate Set or Extent. the new Query
Parameters:
  compiled - another Query from the same JDO implementation




newQuery
public Query newQuery(String language, Object query)(Code)
Create a new Query using the specified language.
Parameters:
  language - the language of the query parameter
Parameters:
  query - the query, which is of a form determined by the language the new Query



newQuery
public Query newQuery(Class cls)(Code)
Create a new Query specifying the Class of the candidate instances.
Parameters:
  cls - the Class of the candidate instances the new Query



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)
Create a new Query with the Class of the candidate instances and candidate Set.
Parameters:
  cls - the Class of results
Parameters:
  cln - the Set of candidate instances the new Query



newQuery
public Query newQuery(Class cls, String filter)(Code)
Create a new Query with the Class of the candidate instances and filter.
Parameters:
  cls - the Class of results
Parameters:
  filter - the filter for candidate instances the new Query



newQuery
public Query newQuery(Class cls, Collection cln, String filter)(Code)
Create a new Query with the Class of the candidate instances, candidate Set, and filter.
Parameters:
  cls - the Class of candidate instances
Parameters:
  cln - the Set of candidate instances
Parameters:
  filter - the filter for candidate instances the new Query



putUserObject
public Object putUserObject(Object arg0, Object arg1)(Code)



refresh
public void refresh(Object o)(Code)
Refresh the state of the instance from the data store.

In an optimistic transaction, the state of instances in the cache might not match the state in the data store. This method is used to reload the state of the instance from the data store so that a subsequent commit is more likely to succeed.

Outside a transaction, this method will refresh nontransactional state.
Parameters:
  o - the instance to refresh.




refreshAll
public void refreshAll(Object[] pcs)(Code)
Refresh the state of an array of instances from the data store.
See Also:   JDOPOManager.refresh(java.lang.Object pc)
Parameters:
  pcs - the array of instances to refresh.object.



refreshAll
public void refreshAll(Collection pcs)(Code)
Refresh the state of a Set of instances from the data store.
See Also:   JDOPOManager.refresh(java.lang.Object pc)
Parameters:
  pcs - the Set of instances to refresh.



refreshAll
public void refreshAll()(Code)
Refresh the state of all applicable instances from the data store.

If called with an active transaction, all transactional instances will be refreshed. If called outside an active transaction, all nontransactional instances will be refreshed.
See Also:   JDOPOManager.refresh(java.lang.Object pc)




refreshAll
public void refreshAll(JDOException arg0)(Code)



removeInstanceLifecycleListener
public void removeInstanceLifecycleListener(InstanceLifecycleListener classes)(Code)



removeUserObject
public Object removeUserObject(Object arg0)(Code)



resetPMOnOpen
protected void resetPMOnOpen(Object connectionspec)(Code)



retrieve
public void retrieve(Object o)(Code)



retrieve
public void retrieve(Object o, boolean FGOnly)(Code)



retrieveAll
public void retrieveAll(Collection pcs)(Code)



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



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



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



setDetachAllOnCommit
public void setDetachAllOnCommit(boolean arg0)(Code)



setIgnoreCache
public void setIgnoreCache(boolean flag)(Code)
Set the ignoreCache parameter for queries.
Parameters:
  flag - the ignoreCache setting.



setMultithreaded
public void setMultithreaded(boolean flag)(Code)
Set the Multithreaded flag for this PersistenceManager. Applications that use multiple threads to invoke methods or access fields from instances managed by this PersistenceManager must set this flag to true. Instances managed by this PersistenceManager include persistent or transactional instances of PersistenceCapable classes, as well as helper instances such as Query, JDOTransactionItf, or Extent.
Parameters:
  flag - the Multithreaded setting.



setUserObject
public void setUserObject(Object o)(Code)



speedoAttachCopy
public Object speedoAttachCopy(Object detached, Map map)(Code)
Apply the changes contained in the detached object to the corresponding persistent instance in the cache.
Parameters:
  detached -
Parameters:
  map - is the attachement context the peristent object containg attached values



speedoDeletePersistent
public void speedoDeletePersistent(Object o)(Code)



speedoDeletePersistent
public void speedoDeletePersistent(Object oid, Class pc)(Code)



speedoDetachCopy
public Object speedoDetachCopy(PersistentObjectItf po, Map map, Collection fgHints)(Code)



speedoGetFetchPlan
public FetchPlanItf speedoGetFetchPlan()(Code)



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



speedoMakePersistent
public Object speedoMakePersistent(PersistentObjectItf po, Map map)(Code)



speedoRefresh
public void speedoRefresh(PersistentObjectItf sp, Map map, Collection fgHints)(Code)



speedoRetrieve
public void speedoRetrieve(PersistentObjectItf sp, Map map, Collection fgHints)(Code)



Fields inherited from org.objectweb.speedo.pm.lib.AbstractPOManager
final public static String COMPONENT_BINDING(Code)(Java Doc)
final public static String JORM_FACTORY_BINDING(Code)(Java Doc)
final public static String PNAME_CODER_BINDING(Code)(Java Doc)
final public static String PO_MANAGER_FACTORY_BINDING(Code)(Java Doc)
final public static String QUERY_MANAGER_BINDING(Code)(Java Doc)
final public static String TRANSACTIONAL_PERSISTENCE_MANAGER_BINDING(Code)(Java Doc)
final public static String TRANSACTION_BINDING(Code)(Java Doc)
protected Object connectionSpec(Code)(Java Doc)
protected Thread currentThread(Code)(Java Doc)
protected FetchPlanItf fetchPlan(Code)(Java Doc)
protected JormFactory jf(Code)(Java Doc)
protected Logger logger(Code)(Java Doc)
protected LoggerFactory loggerFactory(Code)(Java Doc)
protected short nbUse(Code)(Java Doc)
protected POManagerFactoryItf pmf(Code)(Java Doc)
protected PNameCoder pnc(Code)(Java Doc)
protected boolean prefetchOnExtent(Code)(Java Doc)
protected boolean prefetchOnQuery(Code)(Java Doc)
protected QueryManager queryManager(Code)(Java Doc)
protected Semaphore semaphore(Code)(Java Doc)
protected POManagerItf thisPM(Code)(Java Doc)
protected TransactionalPersistenceManager tpm(Code)(Java Doc)
protected TransactionItf tx(Code)(Java Doc)

Methods inherited from org.objectweb.speedo.pm.lib.AbstractPOManager
public void addUse()(Code)(Java Doc)
public void afterCompletion(int i)(Code)(Java Doc)
protected void assertIsOpen()(Code)(Java Doc)
protected void assertIsPO(Object pc, String cmd)(Code)(Java Doc)
protected void assertPOManager(PersistentObjectItf sp)(Code)(Java Doc)
public void beforeCompletion()(Code)(Java Doc)
public void bindFc(String s, Object o)(Code)(Java Doc)
protected void bindPMThread()(Code)(Java Doc)
public void closePOManager()(Code)(Java Doc)
public PName decodeIdentifier(Class aClass, Object s)(Code)(Java Doc)
public Object getConnectionSpec()(Code)(Java Doc)
public Object getEncodedPName(PersistentObjectItf o)(Code)(Java Doc)
public POManagerFactoryItf getPOManagerFactory()(Code)(Java Doc)
public Semaphore getSemaphore()(Code)(Java Doc)
public TransactionItf getSpeedoTransaction()(Code)(Java Doc)
public TransactionalPersistenceManager getTransactionalPersistenceManager()(Code)(Java Doc)
public boolean isPOMClosed()(Code)(Java Doc)
public String[] listFc()(Code)(Java Doc)
public Object lookupFc(String s)(Code)(Java Doc)
public void open(Object connectionspec)(Code)(Java Doc)
protected void resetPMOnOpen(Object connectionspec)(Code)(Java Doc)
public void speedoDeletePersistentAll(Object[] o)(Code)(Java Doc)
public void speedoFlush() throws PersistenceException(Code)(Java Doc)
abstract public FetchPlanItf speedoGetFetchPlan()(Code)(Java Doc)
public Object speedoGetObject(PName pn, boolean validate)(Code)(Java Doc)
public Object speedoGetObject(Object id, Class poc, boolean validate) throws PException, PersistenceException(Code)(Java Doc)
protected Object speedoPersist(PersistentObjectItf po, Map map) throws PException, PersistenceException(Code)(Java Doc)
public void unbindFc(String s)(Code)(Java Doc)

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.