Java Doc for PCStateMan.java in  » Testing » PolePosition-0.20 » com » versant » core » 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 » Testing » PolePosition 0.20 » com.versant.core.jdo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.versant.core.jdo.PCStateMan

PCStateMan
final public class PCStateMan implements VersantStateManager(Code)
JDO Genie State manager.


Field Summary
public  PMCacheEntrycacheEntry
     The wrapper for this instance in the managed cache.
public  booleandoChangeChecking
    
public  booleaninDirtyList
    
public  PCStateMannext
    
public  OIDoid
     The OID of the managed instance.
public  ClassMetaDataowner
     If this is not null then this is an embedded sm.
public  PersistenceCapablepc
     The PersistenceCapable instance that is managed.
public  PCStateManprev
    
final public  QueryStateWrapperqueryStateWrapper
    
public  Statestate
     The current values.
public  booleantoBeEvictedFlag
     A flag that is set if this instance is to be evicted at commit.

Constructor Summary
public  PCStateMan(LocalPMCache jdoManagedCache, ModelMetaData jmd, PMProxy perMan)
    

Method Summary
public  voidaddRefs()
     Make all PC instances referenced by us persistent.
public  voidaddToProcessList()
    
public  voidchangeToHollowState()
     The instance is not cleared of its values.
public  voidchangeToPNonTxForCommit(VersantPersistenceManagerImp rpm)
     This is called from commit and retainValues is set.
public  voidcheckModelConsistency()
     Check the model consistency of all of the fields in our State.
public  voidcollectReachable(String fetchGroup, Collection result)
    
public  voidcommit(VersantPersistenceManagerImp pm)
    
public  EmbeddedStateManagercreateEmbeddedSM(FieldMetaData fmd)
    
public  EmbeddedStateManagercreateEmbeddedSM(PersistenceCapable embeddedPC, FieldMetaData fmd)
    
public  voiddeleteImpForCommit()
     Helper method for commit to do work for deleting an instance.
public  voiddeletePersistent()
    
public  booleandoJDOPreStore(LifecycleListenerManager listeners)
     If the PC instance implements InstanceCallbacks and has not been deleted then call its jdoPreStore method and also invoke the store lifecycle callback if listeners is not null.
public  voiddump()
    
public  voidevict()
    
public  voidfillNewAppPKField(int fieldNo)
     This gets called from the enhanced pc instances.
public  voidfirePostStore(LifecycleListenerManager listeners)
    
public  voidflushCommit()
    
public  booleangetBooleanField(PersistenceCapable pc, int field, boolean currentValue)
    
public  booleangetBooleanFieldImp(PersistenceCapable pc, FieldMetaData fmd, boolean currentValue)
    
public  bytegetByteField(PersistenceCapable pc, int field, byte currentValue)
    
public  bytegetByteFieldImp(PersistenceCapable pc, FieldMetaData fmd, byte currentValue)
    
public  chargetCharField(PersistenceCapable pc, int field, char currentValue)
    
public  chargetCharFieldImp(PersistenceCapable pc, FieldMetaData fmd, char currentValue)
    
public  ClassMetaDatagetClassMetaData()
    
public  doublegetDoubleField(PersistenceCapable pc, int field, double currentValue)
    
public  doublegetDoubleFieldImp(PersistenceCapable pc, FieldMetaData fmd, double currentValue)
    
public  floatgetFloatField(PersistenceCapable pc, int field, float currentValue)
    
public  floatgetFloatFieldImp(PersistenceCapable pc, FieldMetaData fmd, float currentValue)
    
public  intgetIntField(PersistenceCapable pc, int field, int currentValue)
    
public  intgetIntFieldImp(PersistenceCapable pc, FieldMetaData fmd, int currentValue)
    
public  longgetLOID()
     Get the LOID of this instance.
public  longgetLongField(PersistenceCapable pc, int field, long currentValue)
    
public  longgetLongFieldImp(PersistenceCapable pc, FieldMetaData fmd, long currentValue)
    
public  OIDgetOID()
    
public  ObjectgetObjectField(PersistenceCapable pc, int field, Object currentValue)
    
public  ObjectgetObjectFieldImp(PersistenceCapable pc, FieldMetaData fmd, Object currentValue)
    
public  ObjectgetObjectId(PersistenceCapable pcParam)
    
public  ObjectgetOptimisticLockingValue()
    
public  PersistenceCapablegetPersistenceCapable()
    
public  PersistenceManagergetPersistenceManager(PersistenceCapable pc)
    
public  PMProxygetPmProxy()
    
public  OIDgetRealOID()
    
public  OIDgetRealOIDIfAppId()
    
public  shortgetShortField(PersistenceCapable pc, int field, short currentValue)
    
public  shortgetShortFieldImp(PersistenceCapable pc, FieldMetaData fmd, short currentValue)
    
public  StringgetStringField(PersistenceCapable pc, int field, String currentValue)
    
public  StringgetStringFieldImp(PersistenceCapable pc, FieldMetaData fmd, String currentValue)
    
public  ObjectgetTransactionalObjectId(PersistenceCapable pc)
    
final public  voidhandleException(Exception x)
    
public  voidinit(OID oid, ClassMetaData cmd, State aState, VersantPersistenceManagerImp rpm)
     This initialises the pcStateObject when it is being pushed in from the server as a by product of a query or navigation.
public  voidinit(VersantDetachable d, OID oid, VersantPersistenceManagerImp rpm)
    
public  voidinit(OID oid, VersantPersistenceManagerImp rpm)
     This is to create a hollow sm for a getObjectById with validate = false.
public  voidinit(PersistenceCapable pc, OID oid, boolean isTransactional)
     This is to init the sm for a new OID.
public  voidinitTransient(PersistenceCapable pc, OID oid)
     This will initialise for transient managed use.
public  booleanisDeleted(PersistenceCapable pc)
    
public  booleanisDirty()
    
public  booleanisDirty(PersistenceCapable pc)
    
public  booleanisHollow()
    
public  booleanisInDirtyList(PCStateMan head)
    
public  booleanisLoaded(PersistenceCapable pc, FieldMetaData fmd)
    
public  booleanisLoaded(PersistenceCapable pc, int field)
    
public  booleanisLoadedImp(int field)
    
public  booleanisLoadedInternal(PersistenceCapable pc, int field)
     This is the same as isLoaded but will not trigger any state transitions.
public  booleanisNew(PersistenceCapable pc)
    
public  booleanisPClean()
    
public  booleanisPDeleted()
    
public  booleanisPDirty()
    
public  booleanisPNew()
    
public  booleanisPNewDeleted()
    
public  booleanisPNonTx()
    
public  booleanisPersistent(PersistenceCapable pc)
    
public  booleanisPersistentNew()
    
public  booleanisTClean()
    
public  booleanisTDirty()
    
public  booleanisTransactional(PersistenceCapable pc)
    
public  booleanisTransientManaged()
     Check if the instance is in a managed transient state.
public  booleanisTx()
    
public  voidloadDFGIntoPC(VersantPersistenceManagerImp rpm)
     This will load all the dfg fields into the PC instance.
public  voidloadDfgFromHollow()
     This will load the defaulFetchGroup fields into the state and in the mananged instance.
public  voidloadFetchGroup(String name)
    
public  voidmakeDirty(PersistenceCapable pc, String fieldName)
    
public  voidmakeDirty(PersistenceCapable persistenceCapable, int fieldNo)
    
public  voidmakeNonTransactional()
    
public  voidmakeTransactional()
    
public  voidmakeTransient()
    
public  voidmakeTransientRecursive()
    
public  voidpreSerialize(PersistenceCapable pc)
     This will only load the fields for the pc instance.
public  voidprepareCommitOrFlush(boolean commit)
     This is called on all transactional objects so that they can prepare for the commit or flush.
public  voidprovidedBooleanField(PersistenceCapable pc, int field, boolean currentValue)
    
public  voidprovidedBooleanFieldImp(PersistenceCapable pc, FieldMetaData fmd, boolean currentValue)
    
public  voidprovidedByteField(PersistenceCapable pc, int field, byte currentValue)
    
public  voidprovidedByteFieldImp(PersistenceCapable pc, FieldMetaData fmd, byte currentValue)
    
public  voidprovidedCharField(PersistenceCapable pc, int field, char currentValue)
    
public  voidprovidedCharFieldImp(PersistenceCapable pc, FieldMetaData fmd, char currentValue)
    
public  voidprovidedDoubleField(PersistenceCapable pc, int field, double currentValue)
    
public  voidprovidedDoubleFieldImp(PersistenceCapable pc, FieldMetaData fmd, double currentValue)
    
public  voidprovidedFloatField(PersistenceCapable pc, int field, float currentValue)
    
public  voidprovidedFloatFieldImp(PersistenceCapable pc, FieldMetaData fmd, float currentValue)
    
public  voidprovidedIntField(PersistenceCapable pc, int field, int currentValue)
    
public  voidprovidedIntFieldImp(PersistenceCapable pc, FieldMetaData fmd, int currentValue)
    
public  voidprovidedLongField(PersistenceCapable pc, int field, long currentValue)
    
public  voidprovidedLongFieldImp(PersistenceCapable pc, FieldMetaData fmd, long currentValue)
    
public  voidprovidedObjectField(PersistenceCapable pc, int field, Object currentValue)
    
public  voidprovidedObjectFieldImp(PersistenceCapable pc, FieldMetaData fmd, Object currentValue)
    
public  voidprovidedShortField(PersistenceCapable pc, int field, short currentValue)
    
public  voidprovidedShortFieldImp(PersistenceCapable pc, FieldMetaData fmd, short currentValue)
    
public  voidprovidedStringField(PersistenceCapable pc, int field, String currentValue)
    
public  voidprovidedStringFieldImp(PersistenceCapable pc, FieldMetaData fmd, String currentValue)
    
public  booleanreadInTx(boolean strict)
    
public  voidrefresh()
     The idea behind refresh is to reload the already loaded data from the server.
public  booleanreplacingBooleanField(PersistenceCapable pc, int field)
    
public  booleanreplacingBooleanFieldImp(PersistenceCapable pc, FieldMetaData fmd)
    
public  bytereplacingByteField(PersistenceCapable pc, int field)
    
public  bytereplacingByteFieldImp(PersistenceCapable pc, FieldMetaData fmd)
    
public  charreplacingCharField(PersistenceCapable pc, int field)
    
public  charreplacingCharFieldImp(PersistenceCapable pc, FieldMetaData fmd)
    
public  doublereplacingDoubleField(PersistenceCapable pc, int field)
    
public  doublereplacingDoubleFieldImp(PersistenceCapable pc, FieldMetaData fmd)
    
public  bytereplacingFlags(PersistenceCapable pc)
    
public  floatreplacingFloatField(PersistenceCapable pc, int field)
    
public  floatreplacingFloatFieldImp(PersistenceCapable pc, FieldMetaData fmd)
    
public  intreplacingIntField(PersistenceCapable pc, int field)
    
public  intreplacingIntFieldImp(PersistenceCapable pc, FieldMetaData fmd)
    
public  longreplacingLongField(PersistenceCapable pc, int field)
    
public  longreplacingLongFieldImp(PersistenceCapable pc, FieldMetaData fmd)
    
public  ObjectreplacingObjectField(PersistenceCapable pc, int field)
    
public  ObjectreplacingObjectFieldImp(PersistenceCapable pc, FieldMetaData fmd)
    
public  shortreplacingShortField(PersistenceCapable pc, int field)
    
public  shortreplacingShortFieldImp(PersistenceCapable pc, FieldMetaData fmd)
    
public  StateManagerreplacingStateManager(PersistenceCapable pc, StateManager sm)
    
public  StringreplacingStringField(PersistenceCapable pc, int field)
    
public  StringreplacingStringFieldImp(PersistenceCapable pc, FieldMetaData fmd)
    
final public  voidresetLoadedFields()
    
public  voidretrieve(VersantPersistenceManagerImp rpm)
     This is an recursive operation.
public  voidrollback()
    
public  voidsetBeforeState(FieldMetaData fmd, boolean currentValue)
    
public  voidsetBooleanField(PersistenceCapable pc, int field, boolean currentValue, boolean newValue)
    
public  voidsetBooleanFieldImp(PersistenceCapable pc, FieldMetaData fmd, boolean currentValue, boolean newValue)
    
public  voidsetByteField(PersistenceCapable pc, int field, byte currentValue, byte newValue)
    
public  voidsetByteFieldImp(PersistenceCapable pc, FieldMetaData fmd, byte currentValue, byte newValue)
    
public  voidsetCharField(PersistenceCapable pc, int field, char currentValue, char newValue)
    
public  voidsetCharFieldImp(PersistenceCapable pc, FieldMetaData fmd, char currentValue, char newValue)
    
public  voidsetDoubleField(PersistenceCapable pc, int field, double currentValue, double newValue)
    
public  voidsetDoubleFieldImp(PersistenceCapable pc, FieldMetaData fmd, double currentValue, double newValue)
    
public  voidsetFakeMaster(int stateFieldNo, VersantStateManager master, boolean remove)
     This is called from managed SCO classes to ensure that the back reference of a newly added detail is updated property.
public  voidsetFloatField(PersistenceCapable pc, int field, float currentValue, float newValue)
    
public  voidsetFloatFieldImp(PersistenceCapable pc, FieldMetaData fmd, float currentValue, float newValue)
    
public  voidsetIntField(PersistenceCapable pc, int field, int currentValue, int newValue)
    
public  voidsetIntFieldImp(PersistenceCapable pc, FieldMetaData fmd, int currentValue, int newValue)
    
public  voidsetInterceptDfgFieldAccess(boolean on)
    
 voidsetLoadRequired()
     Utils method to reset the flag of the pc instance to indicate that fields must be reloaded.
final  voidsetLoaded(FieldMetaData fmd)
    
public  voidsetLongField(PersistenceCapable pc, int field, long currentValue, long newValue)
    
public  voidsetLongFieldImp(PersistenceCapable pc, FieldMetaData fmd, long currentValue, long newValue)
    
public  voidsetMaster(int field, Object newMaster, boolean removeFromCurrentMaster)
     This is called from managed SCO classes to ensure that the back reference of a newly added detail is updated property.
public  voidsetObjectField(PersistenceCapable pc, int field, Object currentValue, Object newValue)
    
public  voidsetObjectFieldImp(PersistenceCapable pc, FieldMetaData fmd, Object currentValue, Object newValue)
    
public  voidsetShortField(PersistenceCapable pc, int field, short currentValue, short newValue)
    
public  voidsetShortFieldImp(PersistenceCapable pc, FieldMetaData fmd, short currentValue, short newValue)
    
public  voidsetStringField(PersistenceCapable pc, int field, String currentValue, String newValue)
    
public  voidsetStringFieldImp(PersistenceCapable pc, FieldMetaData fmd, String currentValue, String newValue)
    
public  StringtoString()
    
public  voidupdateAutoFields(State autoS)
    
public  PCStateManupdateWith(State suppliedState, VersantPersistenceManagerImp pm, boolean overWrite)
     This is a new State that was received from the server via indirect means. This state must be updated with the supplied state.
final  voidupdated(VersantPersistenceManagerImp rpm, boolean addToProccessList)
     This will be called when ever the state has been updated as result of a query/navigation that brought extra info back for this state.

Field Detail
cacheEntry
public PMCacheEntry cacheEntry(Code)
The wrapper for this instance in the managed cache.



doChangeChecking
public boolean doChangeChecking(Code)



inDirtyList
public boolean inDirtyList(Code)



next
public PCStateMan next(Code)



oid
public OID oid(Code)
The OID of the managed instance.



owner
public ClassMetaData owner(Code)
If this is not null then this is an embedded sm.



pc
public PersistenceCapable pc(Code)
The PersistenceCapable instance that is managed.



prev
public PCStateMan prev(Code)



queryStateWrapper
final public QueryStateWrapper queryStateWrapper(Code)



state
public State state(Code)
The current values.



toBeEvictedFlag
public boolean toBeEvictedFlag(Code)
A flag that is set if this instance is to be evicted at commit.




Constructor Detail
PCStateMan
public PCStateMan(LocalPMCache jdoManagedCache, ModelMetaData jmd, PMProxy perMan)(Code)




Method Detail
addRefs
public void addRefs()(Code)
Make all PC instances referenced by us persistent. This is called by the PM on makePersistent and commit as part of the reachability search.




addToProcessList
public void addToProcessList()(Code)



changeToHollowState
public void changeToHollowState()(Code)
The instance is not cleared of its values. The loaded fields and the JDO_FLAGS is reset to force the pc to ask the sm for new values.



changeToPNonTxForCommit
public void changeToPNonTxForCommit(VersantPersistenceManagerImp rpm)(Code)
This is called from commit and retainValues is set. The state must be P-Non-Tx after this.



checkModelConsistency
public void checkModelConsistency()(Code)
Check the model consistency of all of the fields in our State. This currently only makes sure that bidirectional relationships have been properly completed but other checks may be added in future.



collectReachable
public void collectReachable(String fetchGroup, Collection result)(Code)



commit
public void commit(VersantPersistenceManagerImp pm)(Code)



createEmbeddedSM
public EmbeddedStateManager createEmbeddedSM(FieldMetaData fmd)(Code)



createEmbeddedSM
public EmbeddedStateManager createEmbeddedSM(PersistenceCapable embeddedPC, FieldMetaData fmd)(Code)



deleteImpForCommit
public void deleteImpForCommit()(Code)
Helper method for commit to do work for deleting an instance. This must remove all resources held by this instance.



deletePersistent
public void deletePersistent()(Code)



doJDOPreStore
public boolean doJDOPreStore(LifecycleListenerManager listeners)(Code)
If the PC instance implements InstanceCallbacks and has not been deleted then call its jdoPreStore method and also invoke the store lifecycle callback if listeners is not null. Returns true if jdoPreStore was called or there were store listeners.



dump
public void dump()(Code)



evict
public void evict()(Code)



fillNewAppPKField
public void fillNewAppPKField(int fieldNo)(Code)
This gets called from the enhanced pc instances. This is only for Application identity key fields. It gives us a chance to fill the field with a valid keygened value.



firePostStore
public void firePostStore(LifecycleListenerManager listeners)(Code)



flushCommit
public void flushCommit()(Code)



getBooleanField
public boolean getBooleanField(PersistenceCapable pc, int field, boolean currentValue)(Code)



getBooleanFieldImp
public boolean getBooleanFieldImp(PersistenceCapable pc, FieldMetaData fmd, boolean currentValue)(Code)



getByteField
public byte getByteField(PersistenceCapable pc, int field, byte currentValue)(Code)



getByteFieldImp
public byte getByteFieldImp(PersistenceCapable pc, FieldMetaData fmd, byte currentValue)(Code)



getCharField
public char getCharField(PersistenceCapable pc, int field, char currentValue)(Code)



getCharFieldImp
public char getCharFieldImp(PersistenceCapable pc, FieldMetaData fmd, char currentValue)(Code)



getClassMetaData
public ClassMetaData getClassMetaData()(Code)



getDoubleField
public double getDoubleField(PersistenceCapable pc, int field, double currentValue)(Code)



getDoubleFieldImp
public double getDoubleFieldImp(PersistenceCapable pc, FieldMetaData fmd, double currentValue)(Code)



getFloatField
public float getFloatField(PersistenceCapable pc, int field, float currentValue)(Code)



getFloatFieldImp
public float getFloatFieldImp(PersistenceCapable pc, FieldMetaData fmd, float currentValue)(Code)



getIntField
public int getIntField(PersistenceCapable pc, int field, int currentValue)(Code)



getIntFieldImp
public int getIntFieldImp(PersistenceCapable pc, FieldMetaData fmd, int currentValue)(Code)



getLOID
public long getLOID()(Code)
Get the LOID of this instance. This should only be called for classes stored in VDS. This will assign it real LOID if it does not already have one.



getLongField
public long getLongField(PersistenceCapable pc, int field, long currentValue)(Code)



getLongFieldImp
public long getLongFieldImp(PersistenceCapable pc, FieldMetaData fmd, long currentValue)(Code)



getOID
public OID getOID()(Code)



getObjectField
public Object getObjectField(PersistenceCapable pc, int field, Object currentValue)(Code)



getObjectFieldImp
public Object getObjectFieldImp(PersistenceCapable pc, FieldMetaData fmd, Object currentValue)(Code)



getObjectId
public Object getObjectId(PersistenceCapable pcParam)(Code)



getOptimisticLockingValue
public Object getOptimisticLockingValue()(Code)



getPersistenceCapable
public PersistenceCapable getPersistenceCapable()(Code)



getPersistenceManager
public PersistenceManager getPersistenceManager(PersistenceCapable pc)(Code)



getPmProxy
public PMProxy getPmProxy()(Code)



getRealOID
public OID getRealOID()(Code)
This is called from VersantOid if it need the



getRealOIDIfAppId
public OID getRealOIDIfAppId()(Code)
This will return a internal oid created from the state if - app id - keygen == null or state containsvalid pk fields



getShortField
public short getShortField(PersistenceCapable pc, int field, short currentValue)(Code)



getShortFieldImp
public short getShortFieldImp(PersistenceCapable pc, FieldMetaData fmd, short currentValue)(Code)



getStringField
public String getStringField(PersistenceCapable pc, int field, String currentValue)(Code)



getStringFieldImp
public String getStringFieldImp(PersistenceCapable pc, FieldMetaData fmd, String currentValue)(Code)



getTransactionalObjectId
public Object getTransactionalObjectId(PersistenceCapable pc)(Code)



handleException
final public void handleException(Exception x)(Code)



init
public void init(OID oid, ClassMetaData cmd, State aState, VersantPersistenceManagerImp rpm)(Code)
This initialises the pcStateObject when it is being pushed in from the server as a by product of a query or navigation.



init
public void init(VersantDetachable d, OID oid, VersantPersistenceManagerImp rpm)(Code)



init
public void init(OID oid, VersantPersistenceManagerImp rpm)(Code)
This is to create a hollow sm for a getObjectById with validate = false. Must the oid be resolved.
Parameters:
  oid -



init
public void init(PersistenceCapable pc, OID oid, boolean isTransactional)(Code)
This is to init the sm for a new OID. Therefore either an P-New instance or a transient instance.

TODO must test a transient instance that refs other instances. What must happen to them. Must they also propagate to transient.




initTransient
public void initTransient(PersistenceCapable pc, OID oid)(Code)
This will initialise for transient managed use.
Parameters:
  pc -
Parameters:
  oid -



isDeleted
public boolean isDeleted(PersistenceCapable pc)(Code)



isDirty
public boolean isDirty()(Code)



isDirty
public boolean isDirty(PersistenceCapable pc)(Code)



isHollow
public boolean isHollow()(Code)



isInDirtyList
public boolean isInDirtyList(PCStateMan head)(Code)



isLoaded
public boolean isLoaded(PersistenceCapable pc, FieldMetaData fmd)(Code)



isLoaded
public boolean isLoaded(PersistenceCapable pc, int field)(Code)



isLoadedImp
public boolean isLoadedImp(int field)(Code)



isLoadedInternal
public boolean isLoadedInternal(PersistenceCapable pc, int field)(Code)
This is the same as isLoaded but will not trigger any state transitions.



isNew
public boolean isNew(PersistenceCapable pc)(Code)



isPClean
public boolean isPClean()(Code)



isPDeleted
public boolean isPDeleted()(Code)



isPDirty
public boolean isPDirty()(Code)



isPNew
public boolean isPNew()(Code)



isPNewDeleted
public boolean isPNewDeleted()(Code)



isPNonTx
public boolean isPNonTx()(Code)



isPersistent
public boolean isPersistent(PersistenceCapable pc)(Code)



isPersistentNew
public boolean isPersistentNew()(Code)



isTClean
public boolean isTClean()(Code)



isTDirty
public boolean isTDirty()(Code)



isTransactional
public boolean isTransactional(PersistenceCapable pc)(Code)



isTransientManaged
public boolean isTransientManaged()(Code)
Check if the instance is in a managed transient state.



isTx
public boolean isTx()(Code)



loadDFGIntoPC
public void loadDFGIntoPC(VersantPersistenceManagerImp rpm)(Code)
This will load all the dfg fields into the PC instance.



loadDfgFromHollow
public void loadDfgFromHollow()(Code)
This will load the defaulFetchGroup fields into the state and in the mananged instance. This is only called to change from hollow.



loadFetchGroup
public void loadFetchGroup(String name)(Code)



makeDirty
public void makeDirty(PersistenceCapable pc, String fieldName)(Code)



makeDirty
public void makeDirty(PersistenceCapable persistenceCapable, int fieldNo)(Code)



makeNonTransactional
public void makeNonTransactional()(Code)



makeTransactional
public void makeTransactional()(Code)



makeTransient
public void makeTransient()(Code)



makeTransientRecursive
public void makeTransientRecursive()(Code)



preSerialize
public void preSerialize(PersistenceCapable pc)(Code)
This will only load the fields for the pc instance. It does not force aload and not any reachable pc instances.
Parameters:
  pc -



prepareCommitOrFlush
public void prepareCommitOrFlush(boolean commit)(Code)
This is called on all transactional objects so that they can prepare for the commit or flush. If the state was deleted it will call add itself to the list of instances to be deleted etc.



providedBooleanField
public void providedBooleanField(PersistenceCapable pc, int field, boolean currentValue)(Code)



providedBooleanFieldImp
public void providedBooleanFieldImp(PersistenceCapable pc, FieldMetaData fmd, boolean currentValue)(Code)



providedByteField
public void providedByteField(PersistenceCapable pc, int field, byte currentValue)(Code)



providedByteFieldImp
public void providedByteFieldImp(PersistenceCapable pc, FieldMetaData fmd, byte currentValue)(Code)



providedCharField
public void providedCharField(PersistenceCapable pc, int field, char currentValue)(Code)



providedCharFieldImp
public void providedCharFieldImp(PersistenceCapable pc, FieldMetaData fmd, char currentValue)(Code)



providedDoubleField
public void providedDoubleField(PersistenceCapable pc, int field, double currentValue)(Code)



providedDoubleFieldImp
public void providedDoubleFieldImp(PersistenceCapable pc, FieldMetaData fmd, double currentValue)(Code)



providedFloatField
public void providedFloatField(PersistenceCapable pc, int field, float currentValue)(Code)



providedFloatFieldImp
public void providedFloatFieldImp(PersistenceCapable pc, FieldMetaData fmd, float currentValue)(Code)



providedIntField
public void providedIntField(PersistenceCapable pc, int field, int currentValue)(Code)



providedIntFieldImp
public void providedIntFieldImp(PersistenceCapable pc, FieldMetaData fmd, int currentValue)(Code)



providedLongField
public void providedLongField(PersistenceCapable pc, int field, long currentValue)(Code)



providedLongFieldImp
public void providedLongFieldImp(PersistenceCapable pc, FieldMetaData fmd, long currentValue)(Code)



providedObjectField
public void providedObjectField(PersistenceCapable pc, int field, Object currentValue)(Code)



providedObjectFieldImp
public void providedObjectFieldImp(PersistenceCapable pc, FieldMetaData fmd, Object currentValue)(Code)



providedShortField
public void providedShortField(PersistenceCapable pc, int field, short currentValue)(Code)



providedShortFieldImp
public void providedShortFieldImp(PersistenceCapable pc, FieldMetaData fmd, short currentValue)(Code)



providedStringField
public void providedStringField(PersistenceCapable pc, int field, String currentValue)(Code)



providedStringFieldImp
public void providedStringFieldImp(PersistenceCapable pc, FieldMetaData fmd, String currentValue)(Code)



readInTx
public boolean readInTx(boolean strict)(Code)



refresh
public void refresh()(Code)
The idea behind refresh is to reload the already loaded data from the server. This is mostly needed for optismistic transactions to minimize the concurrent updates.

The only state change that occurs is for P-Dirty instances that change to P-Clean.

This call is a no-op for all new instances, because there is nothing to relaod from the server. Hollow instances are also an no-op because nothing has been fetched.

For all the rest this is a relead of the currently loaded fields.




replacingBooleanField
public boolean replacingBooleanField(PersistenceCapable pc, int field)(Code)



replacingBooleanFieldImp
public boolean replacingBooleanFieldImp(PersistenceCapable pc, FieldMetaData fmd)(Code)



replacingByteField
public byte replacingByteField(PersistenceCapable pc, int field)(Code)



replacingByteFieldImp
public byte replacingByteFieldImp(PersistenceCapable pc, FieldMetaData fmd)(Code)



replacingCharField
public char replacingCharField(PersistenceCapable pc, int field)(Code)



replacingCharFieldImp
public char replacingCharFieldImp(PersistenceCapable pc, FieldMetaData fmd)(Code)



replacingDoubleField
public double replacingDoubleField(PersistenceCapable pc, int field)(Code)



replacingDoubleFieldImp
public double replacingDoubleFieldImp(PersistenceCapable pc, FieldMetaData fmd)(Code)



replacingFlags
public byte replacingFlags(PersistenceCapable pc)(Code)



replacingFloatField
public float replacingFloatField(PersistenceCapable pc, int field)(Code)



replacingFloatFieldImp
public float replacingFloatFieldImp(PersistenceCapable pc, FieldMetaData fmd)(Code)



replacingIntField
public int replacingIntField(PersistenceCapable pc, int field)(Code)



replacingIntFieldImp
public int replacingIntFieldImp(PersistenceCapable pc, FieldMetaData fmd)(Code)



replacingLongField
public long replacingLongField(PersistenceCapable pc, int field)(Code)



replacingLongFieldImp
public long replacingLongFieldImp(PersistenceCapable pc, FieldMetaData fmd)(Code)



replacingObjectField
public Object replacingObjectField(PersistenceCapable pc, int field)(Code)



replacingObjectFieldImp
public Object replacingObjectFieldImp(PersistenceCapable pc, FieldMetaData fmd)(Code)



replacingShortField
public short replacingShortField(PersistenceCapable pc, int field)(Code)



replacingShortFieldImp
public short replacingShortFieldImp(PersistenceCapable pc, FieldMetaData fmd)(Code)



replacingStateManager
public StateManager replacingStateManager(PersistenceCapable pc, StateManager sm)(Code)



replacingStringField
public String replacingStringField(PersistenceCapable pc, int field)(Code)



replacingStringFieldImp
public String replacingStringFieldImp(PersistenceCapable pc, FieldMetaData fmd)(Code)



resetLoadedFields
final public void resetLoadedFields()(Code)



retrieve
public void retrieve(VersantPersistenceManagerImp rpm)(Code)
This is an recursive operation. It will retrieve everything that is reachable.



rollback
public void rollback()(Code)



setBeforeState
public void setBeforeState(FieldMetaData fmd, boolean currentValue)(Code)



setBooleanField
public void setBooleanField(PersistenceCapable pc, int field, boolean currentValue, boolean newValue)(Code)



setBooleanFieldImp
public void setBooleanFieldImp(PersistenceCapable pc, FieldMetaData fmd, boolean currentValue, boolean newValue)(Code)



setByteField
public void setByteField(PersistenceCapable pc, int field, byte currentValue, byte newValue)(Code)



setByteFieldImp
public void setByteFieldImp(PersistenceCapable pc, FieldMetaData fmd, byte currentValue, byte newValue)(Code)



setCharField
public void setCharField(PersistenceCapable pc, int field, char currentValue, char newValue)(Code)



setCharFieldImp
public void setCharFieldImp(PersistenceCapable pc, FieldMetaData fmd, char currentValue, char newValue)(Code)



setDoubleField
public void setDoubleField(PersistenceCapable pc, int field, double currentValue, double newValue)(Code)



setDoubleFieldImp
public void setDoubleFieldImp(PersistenceCapable pc, FieldMetaData fmd, double currentValue, double newValue)(Code)



setFakeMaster
public void setFakeMaster(int stateFieldNo, VersantStateManager master, boolean remove)(Code)
This is called from managed SCO classes to ensure that the back reference of a newly added detail is updated property. It is not possible to just call setObject in this case as this will result in an endless loop as setObject adds the detail to its master. If removeFromCurrentMaster is true then this instance is removed from its current master (if any and if different).



setFloatField
public void setFloatField(PersistenceCapable pc, int field, float currentValue, float newValue)(Code)



setFloatFieldImp
public void setFloatFieldImp(PersistenceCapable pc, FieldMetaData fmd, float currentValue, float newValue)(Code)



setIntField
public void setIntField(PersistenceCapable pc, int field, int currentValue, int newValue)(Code)



setIntFieldImp
public void setIntFieldImp(PersistenceCapable pc, FieldMetaData fmd, int currentValue, int newValue)(Code)



setInterceptDfgFieldAccess
public void setInterceptDfgFieldAccess(boolean on)(Code)



setLoadRequired
void setLoadRequired()(Code)
Utils method to reset the flag of the pc instance to indicate that fields must be reloaded.



setLoaded
final void setLoaded(FieldMetaData fmd)(Code)



setLongField
public void setLongField(PersistenceCapable pc, int field, long currentValue, long newValue)(Code)



setLongFieldImp
public void setLongFieldImp(PersistenceCapable pc, FieldMetaData fmd, long currentValue, long newValue)(Code)



setMaster
public void setMaster(int field, Object newMaster, boolean removeFromCurrentMaster)(Code)
This is called from managed SCO classes to ensure that the back reference of a newly added detail is updated property. It is not possible to just call setObject in this case as this will result in an endless loop as setObject adds the detail to its master. If removeFromCurrentMaster is true then this instance is removed from its current master (if any and if different).



setObjectField
public void setObjectField(PersistenceCapable pc, int field, Object currentValue, Object newValue)(Code)



setObjectFieldImp
public void setObjectFieldImp(PersistenceCapable pc, FieldMetaData fmd, Object currentValue, Object newValue)(Code)



setShortField
public void setShortField(PersistenceCapable pc, int field, short currentValue, short newValue)(Code)



setShortFieldImp
public void setShortFieldImp(PersistenceCapable pc, FieldMetaData fmd, short currentValue, short newValue)(Code)



setStringField
public void setStringField(PersistenceCapable pc, int field, String currentValue, String newValue)(Code)



setStringFieldImp
public void setStringFieldImp(PersistenceCapable pc, FieldMetaData fmd, String currentValue, String newValue)(Code)



toString
public String toString()(Code)



updateAutoFields
public void updateAutoFields(State autoS)(Code)



updateWith
public PCStateMan updateWith(State suppliedState, VersantPersistenceManagerImp pm, boolean overWrite)(Code)
This is a new State that was received from the server via indirect means. This state must be updated with the supplied state. Any state changes nec must also be done.
Parameters:
  suppliedState -



updated
final void updated(VersantPersistenceManagerImp rpm, boolean addToProccessList)(Code)
This will be called when ever the state has been updated as result of a query/navigation that brought extra info back for this state. This method will ensure that the proper state changes takes place.



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.