Java Doc for PersistenceManager.java in  » Database-ORM » TJDO » com » triactive » 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 » Database ORM » TJDO » com.triactive.jdo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.triactive.jdo.PersistenceManager

All known Subclasses:   com.triactive.jdo.PersistenceManagerImpl,
PersistenceManager
public interface PersistenceManager extends javax.jdo.PersistenceManager(Code)
An extension to the standard persistence manager interface including methods specific to TriActive JDO.

Applications should not use these methods.
author:
   Mike Martin
version:
   $Revision: 1.6 $





Method Summary
 voiddataStoreModified()
     Called by state managers to indicate they have made a modification to the data store.
 intdataStoreModifyCount()
     Returns the number of data store modifications made under this persistence manager.
 voiddump(Object obj, PrintWriter out)
     Prints debugging info on an object to the specified output.
 voidenlistInTransaction(StateManager sm)
     Called by state managers to enlist in the transaction cache.
 voidevictFromTransaction(StateManager sm)
     Called by state managers to evict themselves from the transaction cache.
 StateManagerfindStateManager(Object obj)
     Finds the StateManager for a given object.
 voidflushDirty()
     Causes any dirty state manager to be updated in storage.
 ConnectiongetConnection(boolean forWriting)
     Obtains a JDBC connection to the data store.
 ObjectgetObjectById(Object id, Class contextClass, boolean validate)
     Locates a persistent instance in the cache of instances managed by this PersistenceManager.
 ObjectgetObjectById(Object id, Class contextClass, int[] fieldNumbers, FieldManager fieldManager)
     Locates a persistent instance in the cache of instances managed by this PersistenceManager.
 StoreManagergetStoreManager()
     Returns the store manager used for storage by this persistence manager.
 voidhereIsStateManager(StateManager sm, Object obj)
     Called by state managers when their getPersistenceManager() method is called.
 voidmarkDirty(StateManager sm)
     Marks the specified state manager as dirty.
 voidreleaseConnection(Connection conn)
     Release a previously-obtained data store connection.
 voidremoveStateManager(StateManager sm)
     Called by state managers when disconnecting from the managed object.



Method Detail
dataStoreModified
void dataStoreModified()(Code)
Called by state managers to indicate they have made a modification to the data store.



dataStoreModifyCount
int dataStoreModifyCount()(Code)
Returns the number of data store modifications made under this persistence manager. Can be used as a version stamp on the data store. Note that it only reflects modifications made to objects from this persistence manager.



dump
void dump(Object obj, PrintWriter out)(Code)
Prints debugging info on an object to the specified output.



enlistInTransaction
void enlistInTransaction(StateManager sm)(Code)
Called by state managers to enlist in the transaction cache.



evictFromTransaction
void evictFromTransaction(StateManager sm)(Code)
Called by state managers to evict themselves from the transaction cache.



findStateManager
StateManager findStateManager(Object obj)(Code)
Finds the StateManager for a given object. The object's state manager, or null if obj is null orhas no state manager.
exception:
  JDOUserException - If obj is not PersistenceCapable or is managed by adifferent PersistenceManager.



flushDirty
void flushDirty()(Code)
Causes any dirty state manager to be updated in storage.



getConnection
Connection getConnection(boolean forWriting) throws SQLException(Code)
Obtains a JDBC connection to the data store. If a JDO transaction is active, this is the connection on which the corresponding JDBC transaction is active. Otherwise a new connection is obtained from the underlying data source.


Parameters:
  forWriting - true if the connection will be used for updates.A JDBC connection.




getObjectById
Object getObjectById(Object id, Class contextClass, boolean validate)(Code)
Locates a persistent instance in the cache of instances managed by this PersistenceManager. This is a variation of getObjectById(Object, boolean) that allows a context class to be specified for class loading purposes.
Parameters:
  id - An object ID.
Parameters:
  contextClass - A class to use as a class-loading context, if necessary, ornull to use just the default class loader(s).
Parameters:
  validate - true if the existence of the instance is to bevalidated.The PersistenceCapable instance having the specified object ID.



getObjectById
Object getObjectById(Object id, Class contextClass, int[] fieldNumbers, FieldManager fieldManager)(Code)
Locates a persistent instance in the cache of instances managed by this PersistenceManager. This is a variation of PersistenceManager.getObjectById(Object,Class,boolean) that allows specific initial field values to be offered to the state manager. Classes in the store package use this method to proactively offer field values in cases where they are readily available. If the instance is in a state that can benefit from newly available field values, the fields are replaced in the instance and a state change occurs as though the instance itself had read a field.
Parameters:
  id - An object ID.
Parameters:
  contextClass - A class to use as a class-loading context, if necessary, ornull to use just the default class loader(s).
Parameters:
  fieldNumbers - The field numbers being offered.
Parameters:
  fieldManager - A field manager from which to get the offered fields.The PersistenceCapable instance having the specified object ID.



getStoreManager
StoreManager getStoreManager()(Code)
Returns the store manager used for storage by this persistence manager.



hereIsStateManager
void hereIsStateManager(StateManager sm, Object obj)(Code)
Called by state managers when their getPersistenceManager() method is called. This is used by PersistenceManager.findStateManager to quickly locate an object's state manager.



markDirty
void markDirty(StateManager sm)(Code)
Marks the specified state manager as dirty.

In this case, "dirty" means having one or more fields modified that have not been updated in storage via the StoreManager. The persistence manager allows at most one state manager at a time to be considered dirty. The sole purpose of this delayed update is to coalesce multiple field changes on the same object into one SQL UPDATE.




releaseConnection
void releaseConnection(Connection conn) throws SQLException(Code)
Release a previously-obtained data store connection. Must be called once for every connection obtained with PersistenceManager.getConnection (use try/finally).



removeStateManager
void removeStateManager(StateManager sm)(Code)
Called by state managers when disconnecting from the managed object. Also evicts from the transaction cache.



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