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


org.objectweb.speedo.mim.api.StateItf

All known Subclasses:   org.objectweb.speedo.mim.lib.AbstractStateImpl,
StateItf
public interface StateItf extends PAccessor,org.objectweb.perseus.persistence.api.State,Serializable(Code)
This interface a state of an user instance.
author:
   S.Chassande-Barrioz




Method Summary
 voidattachCopy(POManagerItf pm, Map map, StateItf detached)
     This method is used during the attach operation.
 booleancheckVersion(StateItf sa)
     check the validity of the version of sa compared to the persistent object this.
 voiddeletePersistent(POManagerItf pm)
     Deletes persistent all inner elements of the persistent instance.
 voiddetachCopy(POManagerItf pm, Map map, StateItf clone, Collection fgHints)
     This method is used during the detach operation.
 voidforceDetachedDirty()
    
 bytegetDetachedStatus()
    
 PersistentObjectItfgetSpeedoPO()
    
 longgetVersion()
    
 booleanhasBeenFlush()
     indicates if the object has been flushed on the support in a writing before the end of the working set (commit | rollback | close).
 voidindexFieldModified(int cacheId, boolean rebind)
     The field uses in user cache, has been modified.
Parameters:
  cacheId - is the cache identifier.
 booleanisToMerge()
     indicates if the StateItf has to be merge with the reference state at commit time.
 voidloadFields(POManagerItf pm, long[] fields)
     Askes the loading of the some fields identified by the long array.
Parameters:
  pm - is the po manager to use to load references
Parameters:
  fields - is an array of long.
 voidmakePersistent(POManagerItf pm)
     Makes persistent all inner elements of the persistent instance.
 voidmakePersistentOnAttach(POManagerItf pm, Map map)
     makes persistent on attach, taking into account the map representing the attch context. It enables to avoid cycles.
 voidmakeToMerge(Object thinLock)
     Mark the current state with the flag 'toMerge'.
 org.objectweb.perseus.persistence.api.Statemerge(org.objectweb.perseus.persistence.api.State oldState)
     This action updates the old state with the change (delta) done in the transaction on this state.
 voidprepareWrite()
    
 voidrefresh(POManagerItf pm, Map map, Collection fgHints)
     This method is used during the refresh operation.
 voidrestoreDetachedNone()
    
 voidretrieve(POManagerItf pm, Map map, Collection fgHints)
     This method is used during the retrieve operation.
 voidsetDetachedStatus(byte newValue)
    
 voidsetFlushed(boolean val)
     Assignates a boolean value to indicate if the object has been flushed on the support in a writing before the end of the working set (commit | rollback | close).
 voidsetSpeedoPO(PersistentObjectItf sp)
     Assignes the PersistentObjectItf attached to this state representation.
 voidspeedoChangeStatus(byte action)
    
 voidspeedoChangeVersion()
     change the version of this only if needed The version is computed by this method A call to changeVersion can have no effect.
 bytespeedoGetStatus()
    
 voidspeedoSetStatus(byte newValue)
    
 voidunSwizzle()
    
 voidworkingSetClosed()
     The context has been closed (ex: transaction end).



Method Detail
attachCopy
void attachCopy(POManagerItf pm, Map map, StateItf detached)(Code)
This method is used during the attach operation. A call to this method copy the field of the cloned state into the the current state. When a field references a persistent object, according to the fetch plan, the referenced can be attached too.
Parameters:
  pm - is the po manager used during the attach operation
Parameters:
  map - is the map of the atttached object. The use of this map permitsto support cycle in the object graph.
Parameters:
  detached - is the detached state used to update the current state



checkVersion
boolean checkVersion(StateItf sa)(Code)
check the validity of the version of sa compared to the persistent object this.



deletePersistent
void deletePersistent(POManagerItf pm)(Code)
Deletes persistent all inner elements of the persistent instance. For a class, it means deleting persistent all objects referenced by a persistent field. For a genclass it means deleting persistent element of the genclass. This method is called when a deletePersistent is called on the persistent class (po) linked to this accessor.
Parameters:
  pm - is the po manager for making persistent inner element.



detachCopy
void detachCopy(POManagerItf pm, Map map, StateItf clone, Collection fgHints)(Code)
This method is used during the detach operation. A call to this method copy the field of the state into the the cloned state. When a field references a persistent object, according to the fetch plan, the referenced can be detached too.
Parameters:
  pm - is the po manager used during the detach operation
Parameters:
  map - is the map of the detached object. The use of this map permitsto support cycle in the object graph.
Parameters:
  clone - is a clone of the current state
Parameters:
  fgHints - represents the fetch plan.



forceDetachedDirty
void forceDetachedDirty()(Code)
Force the detached status to DETACHED_DIRTY and all the xxxLoaded to true



getDetachedStatus
byte getDetachedStatus()(Code)
Gets the current status of this detached object the current state in the life cycle



getSpeedoPO
PersistentObjectItf getSpeedoPO()(Code)
The PersistentObjectItf attached to this state representation.



getVersion
long getVersion()(Code)
Return the version of the object as a long



hasBeenFlush
boolean hasBeenFlush()(Code)
indicates if the object has been flushed on the support in a writing before the end of the working set (commit | rollback | close).



indexFieldModified
void indexFieldModified(int cacheId, boolean rebind)(Code)
The field uses in user cache, has been modified.
Parameters:
  cacheId - is the cache identifier. The value Integer.MAX_VALUEmeans that all user cache must be updated.
Parameters:
  rebind - if true, the speedoAcessor is rebound



isToMerge
boolean isToMerge()(Code)
indicates if the StateItf has to be merge with the reference state at commit time.



loadFields
void loadFields(POManagerItf pm, long[] fields)(Code)
Askes the loading of the some fields identified by the long array.
Parameters:
  pm - is the po manager to use to load references
Parameters:
  fields - is an array of long. Each long is a bit mask indicatingfields to load. As a long is stored over 64 bits, each long of the arraycan represent only 64 persistent fields. If the class has 70 persistentfield, the parameter could be a long array size is 2. This parametercan be null if no field loading is required.



makePersistent
void makePersistent(POManagerItf pm)(Code)
Makes persistent all inner elements of the persistent instance. For a class, it means making persistent all objects referenced by a persistent field. For a genclass it means making persistent element of the genclass. This method is called when a makePersistent is called on the persistent class (PO) linked to this accessor.
Parameters:
  pm - is the po manager for making persistent inner element.



makePersistentOnAttach
void makePersistentOnAttach(POManagerItf pm, Map map)(Code)
makes persistent on attach, taking into account the map representing the attch context. It enables to avoid cycles.
Parameters:
  pm - is the po manager for making persistent inner element.
Parameters:
  map - is the context of the attachment process.



makeToMerge
void makeToMerge(Object thinLock)(Code)
Mark the current state with the flag 'toMerge'. This status means at commit time this state has to be merge with the referenceState (cache). Since this method call and until the transaction end, the implementation could register the change for the merge.
Parameters:
  thinLock - is an object representing the thin lock



merge
org.objectweb.perseus.persistence.api.State merge(org.objectweb.perseus.persistence.api.State oldState)(Code)
This action updates the old state with the change (delta) done in the transaction on this state.
Parameters:
  oldState - is the state which has to be updated the updated state.



prepareWrite
void prepareWrite()(Code)
Prepare to write (relations consistency management)



refresh
void refresh(POManagerItf pm, Map map, Collection fgHints)(Code)
This method is used during the refresh operation. A call to this method refreshes the fields of the current state. When a field references a persistent object, according to the fetch plan, the referenced can be refreshed too.
Parameters:
  pm - is the po manager used during the refresh operation
Parameters:
  map - is the map of the refreshed object. The use of this map permitsto support cycle in the object graph.
Parameters:
  fgHints - represents the fetch plan.



restoreDetachedNone
void restoreDetachedNone()(Code)
Restore the detached status to DETACHED_NONE and all the xxxLoaded to false



retrieve
void retrieve(POManagerItf pm, Map map, Collection fgHints)(Code)
This method is used during the retrieve operation. A call to this method retrieves the fields of the current state. When a field references a persistent object, according to the fetch plan, the referenced can be retrieved too.
Parameters:
  pm - is the po manager used during the retrieve operation
Parameters:
  map - is the map of the retrieved object. The use of this map permitsto support cycle in the object graph.
Parameters:
  fgHints - represents the fetch plan.



setDetachedStatus
void setDetachedStatus(byte newValue)(Code)
Forces the new value of the detached status
Parameters:
  newValue - the new status of this object



setFlushed
void setFlushed(boolean val)(Code)
Assignates a boolean value to indicate if the object has been flushed on the support in a writing before the end of the working set (commit | rollback | close).
Parameters:
  val - is the boolean which must be assigned.



setSpeedoPO
void setSpeedoPO(PersistentObjectItf sp)(Code)
Assignes the PersistentObjectItf attached to this state representation.



speedoChangeStatus
void speedoChangeStatus(byte action)(Code)
Changes the status of this object
See Also:   org.objectweb.speedo.mim.api.LifeCycle
Parameters:
  action - the action that may change the status



speedoChangeVersion
void speedoChangeVersion()(Code)
change the version of this only if needed The version is computed by this method A call to changeVersion can have no effect.



speedoGetStatus
byte speedoGetStatus()(Code)
Gets the current status of this object
See Also:   org.objectweb.speedo.mim.api.LifeCycle the current state in the life cycle



speedoSetStatus
void speedoSetStatus(byte newValue)(Code)
Forces the new value of the status
See Also:   org.objectweb.speedo.mim.api.LifeCycle
Parameters:
  newValue - the new status of this object



unSwizzle
void unSwizzle()(Code)



workingSetClosed
void workingSetClosed()(Code)
The context has been closed (ex: transaction end).



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