Java Doc for LifeCycleState.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.LifeCycleState

All known Subclasses:   org.jpox.jdo.state.DetachedDirty,  org.jpox.jdo.state.TransientClean,  org.jpox.jdo.state.PersistentNontransactionalDirty,  org.jpox.jdo.state.TransientDirty,  org.jpox.jdo.state.PersistentNewDeleted,  org.jpox.jdo.state.PersistentClean,  org.jpox.jdo.state.PersistentDeleted,  org.jpox.jdo.state.PersistentNontransactional,  org.jpox.jdo.state.Hollow,  org.jpox.jdo.state.PersistentNew,  org.jpox.jdo.state.PersistentDirty,  org.jpox.jdo.state.DetachedClean,
LifeCycleState
abstract public class LifeCycleState (Code)
Base Class representing the life cycle state. Implemented for individual states.
version:
   $Revision: 1.26 $


Field Summary
final public static  intDETACHED_CLEAN
    
final public static  intDETACHED_DIRTY
    
final public static  intHOLLOW
    
final public static  intILLEGAL_STATE
    
final protected static  LocaliserLOCALISER
    
final public static  intP_CLEAN
    
final public static  intP_DELETED
    
final public static  intP_DIRTY
    
final public static  intP_NEW
    
final public static  intP_NEW_DELETED
    
final public static  intP_NONTRANS
    
final public static  intP_NONTRANS_DIRTY
    
final public static  intTOTAL
    
final public static  intTRANSIENT
    
final public static  intT_CLEAN
    
final public static  intT_DIRTY
    
protected  booleanisDeleted
    
protected  booleanisDirty
    
protected  booleanisNew
    
protected  booleanisPersistent
    
protected  booleanisTransactional
    
protected  intstateType
    


Method Summary
final protected  LifeCycleStatechangeState(StateManager sm, int newStateType)
     Utility to change state to a new state.
final protected  LifeCycleStatechangeTransientState(StateManager sm, int newStateType)
     Utility to change state to a new state.
final public  booleanisDeleted()
     Return whether the object is deleted. Whether the object is deleted.
final public  booleanisDirty()
     Return whether the object is dirty, ie has been changed (created, updated, deleted) in this Tx. Whether the object is dirty.
final public  booleanisNew()
     Return whether the object was newly created. Whether the object is new.
final public  booleanisPersistent()
     Return whether the object is persistent. Whether the object is persistent.
final public  booleanisTransactional()
     Return whether the object is transactional. Whether the object is transactional.
final public  intstateType()
    
abstract public  StringtoString()
     Method to return a string version of this object.
public  LifeCycleStatetransitionAttach(StateManager sm)
     Method to transition to persistent-clean.
Parameters:
  sm - StateManager.
public  LifeCycleStatetransitionBegin(StateManager sm, org.jpox.Transaction tx)
     Method to transition to transaction begin state.
Parameters:
  sm - StateManager.
Parameters:
  tx - Transaction.
public  LifeCycleStatetransitionCommit(StateManager sm, org.jpox.Transaction tx)
     Method to transition to commit state.
Parameters:
  sm - StateManager.
Parameters:
  tx - the Transaction been committed.
public  LifeCycleStatetransitionDeletePersistent(StateManager sm)
     Method to transition to delete persistent state.
Parameters:
  sm - StateManager.
public  LifeCycleStatetransitionDetach(StateManager sm)
     Method to transition to detached-clean.
Parameters:
  sm - StateManager.
public  LifeCycleStatetransitionEvict(StateManager sm)
     Method to transition to evict state.
Parameters:
  sm - StateManager.
public  LifeCycleStatetransitionMakeNontransactional(StateManager sm)
     Method to transition to nontransactional state.
Parameters:
  sm - StateManager.
public  LifeCycleStatetransitionMakePersistent(StateManager sm)
     Method to transition to persistent state.
Parameters:
  sm - StateManager.
public  LifeCycleStatetransitionMakeTransactional(StateManager sm)
     Method to transition to transactional state.
Parameters:
  sm - StateManager.
public  LifeCycleStatetransitionMakeTransient(StateManager sm, boolean useFetchPlan, boolean detachAllOnCommit)
     Method to transition to transient state.
public  LifeCycleStatetransitionReadField(StateManager sm, boolean isLoaded)
     Method to transition to read-field state.
public  LifeCycleStatetransitionRefresh(StateManager sm)
     Method to transition to refresh state.
Parameters:
  sm - StateManager.
public  LifeCycleStatetransitionRetrieve(StateManager sm, boolean fgOnly)
     Method to transition to retrieve state.
public  LifeCycleStatetransitionRetrieve(StateManager sm, FetchPlan fetchPlan)
     Method to transition to retrieve state.
public  LifeCycleStatetransitionRollback(StateManager sm, org.jpox.Transaction tx)
     Method to transition to rollback state.
Parameters:
  sm - StateManager.
Parameters:
  tx - Transaction.
public  LifeCycleStatetransitionSerialize(StateManager sm)
     Method to transition when serialised.
public  LifeCycleStatetransitionWriteField(StateManager sm)
     Method to transition to write-field state.
Parameters:
  sm - StateManager.

Field Detail
DETACHED_CLEAN
final public static int DETACHED_CLEAN(Code)
Detached-Clean *



DETACHED_DIRTY
final public static int DETACHED_DIRTY(Code)
Detached-Dirty *



HOLLOW
final public static int HOLLOW(Code)
Hollow *



ILLEGAL_STATE
final public static int ILLEGAL_STATE(Code)
illegal state *



LOCALISER
final protected static Localiser LOCALISER(Code)



P_CLEAN
final public static int P_CLEAN(Code)
Persistent-Clean *



P_DELETED
final public static int P_DELETED(Code)
Persistent-Deleted *



P_DIRTY
final public static int P_DIRTY(Code)
Persistent-Dirty *



P_NEW
final public static int P_NEW(Code)
Persistent-New *



P_NEW_DELETED
final public static int P_NEW_DELETED(Code)
Persistent-New-Deleted *



P_NONTRANS
final public static int P_NONTRANS(Code)
Persistent-NonTransactional *



P_NONTRANS_DIRTY
final public static int P_NONTRANS_DIRTY(Code)
Persistent-NonTransactionalDirty *



TOTAL
final public static int TOTAL(Code)
total number of states *



TRANSIENT
final public static int TRANSIENT(Code)
transient *



T_CLEAN
final public static int T_CLEAN(Code)
Transaction-Clean *



T_DIRTY
final public static int T_DIRTY(Code)
Transaction-Dirty *



isDeleted
protected boolean isDeleted(Code)



isDirty
protected boolean isDirty(Code)



isNew
protected boolean isNew(Code)



isPersistent
protected boolean isPersistent(Code)



isTransactional
protected boolean isTransactional(Code)



stateType
protected int stateType(Code)





Method Detail
changeState
final protected LifeCycleState changeState(StateManager sm, int newStateType)(Code)
Utility to change state to a new state.
Parameters:
  sm - The state manager.
Parameters:
  newStateType - The new state new LifeCycle state.



changeTransientState
final protected LifeCycleState changeTransientState(StateManager sm, int newStateType)(Code)
Utility to change state to a new state.
Parameters:
  sm - The state manager.
Parameters:
  newStateType - The new state new LifeCycle state.



isDeleted
final public boolean isDeleted()(Code)
Return whether the object is deleted. Whether the object is deleted.



isDirty
final public boolean isDirty()(Code)
Return whether the object is dirty, ie has been changed (created, updated, deleted) in this Tx. Whether the object is dirty.



isNew
final public boolean isNew()(Code)
Return whether the object was newly created. Whether the object is new.



isPersistent
final public boolean isPersistent()(Code)
Return whether the object is persistent. Whether the object is persistent.



isTransactional
final public boolean isTransactional()(Code)
Return whether the object is transactional. Whether the object is transactional.



stateType
final public int stateType()(Code)
Returns the type of the life cycle state the type of this life cycle state



toString
abstract public String toString()(Code)
Method to return a string version of this object. String version of the object.



transitionAttach
public LifeCycleState transitionAttach(StateManager sm)(Code)
Method to transition to persistent-clean.
Parameters:
  sm - StateManager. new LifeCycle state.



transitionBegin
public LifeCycleState transitionBegin(StateManager sm, org.jpox.Transaction tx)(Code)
Method to transition to transaction begin state.
Parameters:
  sm - StateManager.
Parameters:
  tx - Transaction. new LifeCycle state.



transitionCommit
public LifeCycleState transitionCommit(StateManager sm, org.jpox.Transaction tx)(Code)
Method to transition to commit state.
Parameters:
  sm - StateManager.
Parameters:
  tx - the Transaction been committed. new LifeCycle state.



transitionDeletePersistent
public LifeCycleState transitionDeletePersistent(StateManager sm)(Code)
Method to transition to delete persistent state.
Parameters:
  sm - StateManager. new LifeCycle state.



transitionDetach
public LifeCycleState transitionDetach(StateManager sm)(Code)
Method to transition to detached-clean.
Parameters:
  sm - StateManager. new LifeCycle state.



transitionEvict
public LifeCycleState transitionEvict(StateManager sm)(Code)
Method to transition to evict state.
Parameters:
  sm - StateManager. new LifeCycle state.



transitionMakeNontransactional
public LifeCycleState transitionMakeNontransactional(StateManager sm)(Code)
Method to transition to nontransactional state.
Parameters:
  sm - StateManager. new LifeCycle state.



transitionMakePersistent
public LifeCycleState transitionMakePersistent(StateManager sm)(Code)
Method to transition to persistent state.
Parameters:
  sm - StateManager. new LifeCycle state.



transitionMakeTransactional
public LifeCycleState transitionMakeTransactional(StateManager sm)(Code)
Method to transition to transactional state.
Parameters:
  sm - StateManager. new LifeCycle state.



transitionMakeTransient
public LifeCycleState transitionMakeTransient(StateManager sm, boolean useFetchPlan, boolean detachAllOnCommit)(Code)
Method to transition to transient state.
Parameters:
  sm - StateManager.
Parameters:
  useFetchPlan - to make transient the fields in the fetch plan new LifeCycle state.



transitionReadField
public LifeCycleState transitionReadField(StateManager sm, boolean isLoaded)(Code)
Method to transition to read-field state.
Parameters:
  sm - StateManager.
Parameters:
  isLoaded - if the field was previously loaded new LifeCycle state.



transitionRefresh
public LifeCycleState transitionRefresh(StateManager sm)(Code)
Method to transition to refresh state.
Parameters:
  sm - StateManager. new LifeCycle state.



transitionRetrieve
public LifeCycleState transitionRetrieve(StateManager sm, boolean fgOnly)(Code)
Method to transition to retrieve state.
Parameters:
  sm - StateManager.
Parameters:
  fgOnly - only retrieve the current fetch group fields new LifeCycle state.



transitionRetrieve
public LifeCycleState transitionRetrieve(StateManager sm, FetchPlan fetchPlan)(Code)
Method to transition to retrieve state.
Parameters:
  sm - StateManager.
Parameters:
  fetchPlan - the fetch plan to load fields new LifeCycle state.



transitionRollback
public LifeCycleState transitionRollback(StateManager sm, org.jpox.Transaction tx)(Code)
Method to transition to rollback state.
Parameters:
  sm - StateManager.
Parameters:
  tx - Transaction. new LifeCycle state.



transitionSerialize
public LifeCycleState transitionSerialize(StateManager sm)(Code)
Method to transition when serialised.
Parameters:
  sm - State Manager The new LifeCycle state



transitionWriteField
public LifeCycleState transitionWriteField(StateManager sm)(Code)
Method to transition to write-field state.
Parameters:
  sm - StateManager. new LifeCycle state.



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.