Java Doc for StateManagerFactory.java in  » Database-ORM » JPOX » org » jpox » state » 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 » JPOX » org.jpox.state 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jpox.state.StateManagerFactory

StateManagerFactory
public class StateManagerFactory (Code)
Factory of StateManagers.
version:
   $Revision: 1.27 $

Inner Class :protected static class Initialization

Field Summary
final protected static  LocaliserLOCALISER
     Localiser for messages.


Method Summary
public static  StateManagernewStateManagerForCachedPC(ObjectManager om, Object pc, Object id, boolean loaded)
     Constructor to create a StateManager for a persistable object, assigning the specified id to the object.
public static  StateManagernewStateManagerForDetached(ObjectManager om, Object pc, Object id, Object version)
     Constructor for creating SM instances to manage persistable objects in detached state.
public static  StateManagernewStateManagerForEmbedded(ObjectManager om, Object pc, boolean copyPc)
     Constructs a state manager to manage a persistable instance that will be EMBEDDED/SERIALISED into another persistable object.
public static  StateManagernewStateManagerForHollow(ObjectManager om, Class pcClass, Object id)
     Constructs a state manager to manage a hollow instance having the given object ID.
public static  StateManagernewStateManagerForHollowPopulated(ObjectManager om, Class pcClass, Object id, FieldValues fv)
     Constructs a state manager to manage a recently populated hollow instance having the given object ID and the given field values.
public static  StateManagernewStateManagerForHollowPopulatedAppId(ObjectManager om, Class pcClass, FieldValues fv)
     Constructs a state manager to manage a hollow (or pclean) instance having the given FieldValues.
public static  StateManagernewStateManagerForHollowPreConstructed(ObjectManager om, Object id, Object pc)
     Constructs a state manager to manage a hollow instance having the given object ID.
public static  StateManagernewStateManagerForPNewToBeDeleted(ObjectManager om, Object pc)
     Constructor for creating SM instances to manage persistable objects that are not persistent yet are about to be deleted.
public static  StateManagernewStateManagerForPersistentClean(ObjectManager om, Object id, Object pc)
     Constructs a state manager to manage the specified persistent instance having the given object ID.
public static  StateManagernewStateManagerForPersistentNew(ObjectManager om, Object pc, FieldValues preInsertChanges)
     Constructs a state manager to manage a transient instance that is becoming newly persistent.
public static  StateManagernewStateManagerForTransactionalTransient(ObjectManager om, Object pc)
     Constructs a state manager to manage a Transactional Transient instance.

Field Detail
LOCALISER
final protected static Localiser LOCALISER(Code)
Localiser for messages.





Method Detail
newStateManagerForCachedPC
public static StateManager newStateManagerForCachedPC(ObjectManager om, Object pc, Object id, boolean loaded)(Code)
Constructor to create a StateManager for a persistable object, assigning the specified id to the object. This is used when getting objects out of the L2 Cache, where they have no StateManager assigned, and returning them as associated with a particular PM.
Parameters:
  om - Object Manager managing this object
Parameters:
  pc - The persistable object from the cache
Parameters:
  id - Id to assign to the persistable object
Parameters:
  loaded - The list of loaded fields (when put in the cache)



newStateManagerForDetached
public static StateManager newStateManagerForDetached(ObjectManager om, Object pc, Object id, Object version)(Code)
Constructor for creating SM instances to manage persistable objects in detached state.
Parameters:
  om - ObjectManager
Parameters:
  pc - the detached object
Parameters:
  id - the JDO identity of the object.
Parameters:
  version - the detached version
since:
   1.1



newStateManagerForEmbedded
public static StateManager newStateManagerForEmbedded(ObjectManager om, Object pc, boolean copyPc)(Code)
Constructs a state manager to manage a persistable instance that will be EMBEDDED/SERIALISED into another persistable object. The instance will not be assigned an identity in the process since it is a SCO.
Parameters:
  om - The object manager controlling this state manager.
Parameters:
  pc - The persistable to manage (see copyPc also)
Parameters:
  copyPc - Whether the SM should manage a copy of the passed PC or that one



newStateManagerForHollow
public static StateManager newStateManagerForHollow(ObjectManager om, Class pcClass, Object id)(Code)
Constructs a state manager to manage a hollow instance having the given object ID. This constructor is used for creating new instances of existing persistent objects.
Parameters:
  om - the persistence manager controlling this state manager.
Parameters:
  pcClass - the class of the new instance to be created.
Parameters:
  id - the JDO identity of the object.



newStateManagerForHollowPopulated
public static StateManager newStateManagerForHollowPopulated(ObjectManager om, Class pcClass, Object id, FieldValues fv)(Code)
Constructs a state manager to manage a recently populated hollow instance having the given object ID and the given field values. This constructor is used for creating new instances of persistent objects obtained e.g. via a Query or backed by a view.
Parameters:
  om - the object manager controlling this state manager.
Parameters:
  pcClass - the class of the new instance to be created.
Parameters:
  id - the JDO identity of the object.
Parameters:
  fv - the initial field values of the object.



newStateManagerForHollowPopulatedAppId
public static StateManager newStateManagerForHollowPopulatedAppId(ObjectManager om, Class pcClass, FieldValues fv)(Code)
Constructs a state manager to manage a hollow (or pclean) instance having the given FieldValues. This constructor is used for creating new instances of existing persistent objects using application identity.
Parameters:
  om - the object manager controlling this state manager.
Parameters:
  pcClass - the class of the new instance to be created.
Parameters:
  fv - the initial field values of the object.



newStateManagerForHollowPreConstructed
public static StateManager newStateManagerForHollowPreConstructed(ObjectManager om, Object id, Object pc)(Code)
Constructs a state manager to manage a hollow instance having the given object ID. The instance is already supplied.
Parameters:
  om - the persistence manager controlling this state manager.
Parameters:
  id - the JDO identity of the object.
Parameters:
  pc - The object that is hollow that we are going to manage



newStateManagerForPNewToBeDeleted
public static StateManager newStateManagerForPNewToBeDeleted(ObjectManager om, Object pc)(Code)
Constructor for creating SM instances to manage persistable objects that are not persistent yet are about to be deleted. Consequently the initial lifecycle state will be P_NEW, but will soon move to P_NEW_DELETED.
Parameters:
  om - ObjectManager
Parameters:
  pc - the object being deleted from persistence
since:
   1.2



newStateManagerForPersistentClean
public static StateManager newStateManagerForPersistentClean(ObjectManager om, Object id, Object pc)(Code)
Constructs a state manager to manage the specified persistent instance having the given object ID.
Parameters:
  om - the persistence manager controlling this state manager.
Parameters:
  id - the JDO identity of the object.
Parameters:
  pc - The object that is persistent that we are going to manage



newStateManagerForPersistentNew
public static StateManager newStateManagerForPersistentNew(ObjectManager om, Object pc, FieldValues preInsertChanges)(Code)
Constructs a state manager to manage a transient instance that is becoming newly persistent. A new object ID for the instance is obtained from the store manager and the object is inserted in the data store. This constructor is used for assigning state managers to existing instances that are transitioning to a persistent state.
Parameters:
  om - the object manager controlling this state manager.
Parameters:
  pc - the instance being make persistent.
Parameters:
  preInsertChanges - Any changes to make before inserting



newStateManagerForTransactionalTransient
public static StateManager newStateManagerForTransactionalTransient(ObjectManager om, Object pc)(Code)
Constructs a state manager to manage a Transactional Transient instance. A new object ID for the instance is obtained from the store manager and the object is inserted in the data store. This constructor is used for assigning state managers to Transient instances that are transitioning to a transient clean state.
Parameters:
  om - the object manager controlling this state manager.
Parameters:
  pc - the instance being make persistent.



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.