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


java.lang.Object
   com.versant.core.ejb.StateManagerImp

StateManagerImp
public class StateManagerImp implements VersantStateManager(Code)
StateManager used for ejb3


Field Summary
public  ClassMetaDatacmd
    
 OIDoid
    
 PersistenceCapablepc
    
 Statestate
    

Constructor Summary
public  StateManagerImp(EMProxy em, ModelMetaData modelMetaData)
    

Method Summary
public  voiddetachOnCommit(VersantDetachedStateManager dsm)
     Called on commit to detach the pc.
public  voidfillNewAppPKField(int fieldNo)
    
public  voidfirePostStore(LifecycleListenerManager listeners)
    
public  voidflush()
    
public  booleangetBooleanField(PersistenceCapable persistenceCapable, int i, boolean b)
    
public  bytegetByteField(PersistenceCapable persistenceCapable, int i, byte b)
    
public  chargetCharField(PersistenceCapable persistenceCapable, int i, char c)
    
public  doublegetDoubleField(PersistenceCapable persistenceCapable, int i, double v)
    
public  floatgetFloatField(PersistenceCapable persistenceCapable, int i, float v)
    
 FieldMetaDatagetFmd(int absFieldNo)
    
public  intgetIntField(PersistenceCapable persistenceCapable, int i, int i1)
    
public  OIDgetInternalOID(PersistenceCapable pc)
    
public  PCStateMangetInternalSM(PersistenceCapable pc)
    
public  longgetLongField(PersistenceCapable persistenceCapable, int i, long l)
    
public  OIDgetOID()
    
public  ObjectgetObjectById(Object oid, boolean b)
    
public  ObjectgetObjectField(PersistenceCapable persistenceCapable, int i, Object o)
    
public  ObjectgetObjectId(PersistenceCapable persistenceCapable)
    
public  ObjectgetOptimisticLockingValue()
    
public  PersistenceCapablegetPersistenceCapable()
    
public  PersistenceManagergetPersistenceManager()
    
public  PersistenceManagergetPersistenceManager(PersistenceCapable persistenceCapable)
    
public static  OIDgetRealOIDIfAppId(ClassMetaData cmd, NewObjectOID newOID, State state)
     Create the real oid for this instance if possible.
public  shortgetShortField(PersistenceCapable persistenceCapable, int i, short i1)
    
public  StringgetStringField(PersistenceCapable persistenceCapable, int i, String s)
    
public  ObjectgetTransactionalObjectId(PersistenceCapable persistenceCapable)
    
public  booleanisDeleted(PersistenceCapable persistenceCapable)
    
public  booleanisDirty()
     If this sm must be flushed to the store.
public  booleanisDirty(PersistenceCapable persistenceCapable)
    
public  booleanisLoaded(PersistenceCapable persistenceCapable, int i)
    
public  booleanisNew(PersistenceCapable persistenceCapable)
    
public  booleanisPersistent(PersistenceCapable persistenceCapable)
    
public  booleanisRemoved()
    
public  booleanisTransactional(PersistenceCapable persistenceCapable)
    
public  voidmakeDirty(PersistenceCapable persistenceCapable, int managedFieldNo)
    
public  voidmakeDirty(PersistenceCapable persistenceCapable, String s)
    
public  voidmanage(OID oidVal, State stateVal, LocalCache cache)
     Manage an existing instance.
public  voidmanageNew(PersistenceCapable pc, LocalCache cache, int newOidVal)
     Accepts a LifeCycleStatus.NEW entity and manage it.
public  voidmanageReferences()
     Manage all the references as per spec.
public  StateManagerImpmergeReferences(com.versant.core.ejb.common.EntrySet mergeSet)
    
public  voidpersistReferences(com.versant.core.ejb.common.EntrySet mergeSet)
    
public  voidpostStore(StatesReturned sr, boolean flush)
     Do post commit updated.
public  voidpreSerialize(PersistenceCapable persistenceCapable)
    
public  voidprepareCommitOrFlush(boolean commit, DeletePacket toDelete, StatesToStore toStore)
     This is called on all transactional objects so that they can prepare for the commit or flush.
public  voidprovidedBooleanField(PersistenceCapable persistenceCapable, int i, boolean val)
    
public  voidprovidedByteField(PersistenceCapable persistenceCapable, int i, byte val)
    
public  voidprovidedCharField(PersistenceCapable persistenceCapable, int i, char val)
    
public  voidprovidedDoubleField(PersistenceCapable persistenceCapable, int i, double val)
    
public  voidprovidedFloatField(PersistenceCapable persistenceCapable, int i, float val)
    
public  voidprovidedIntField(PersistenceCapable persistenceCapable, int i, int val)
    
public  voidprovidedLongField(PersistenceCapable persistenceCapable, int i, long val)
    
public  voidprovidedObjectField(PersistenceCapable persistenceCapable, int i, Object val)
    
public  voidprovidedShortField(PersistenceCapable persistenceCapable, int i, short val)
    
public  voidprovidedStringField(PersistenceCapable persistenceCapable, int i, String val)
    
public  voidremove()
    
public  booleanreplacingBooleanField(PersistenceCapable persistenceCapable, int i)
    
public  bytereplacingByteField(PersistenceCapable persistenceCapable, int i)
    
public  charreplacingCharField(PersistenceCapable persistenceCapable, int i)
    
public  doublereplacingDoubleField(PersistenceCapable persistenceCapable, int i)
    
public  bytereplacingFlags(PersistenceCapable persistenceCapable)
    
public  floatreplacingFloatField(PersistenceCapable persistenceCapable, int i)
    
public  intreplacingIntField(PersistenceCapable persistenceCapable, int i)
    
public  longreplacingLongField(PersistenceCapable persistenceCapable, int i)
    
public  ObjectreplacingObjectField(PersistenceCapable persistenceCapable, int i)
    
public  shortreplacingShortField(PersistenceCapable persistenceCapable, int i)
    
public  StateManagerreplacingStateManager(PersistenceCapable persistenceCapable, StateManager stateManager)
    
public  StringreplacingStringField(PersistenceCapable persistenceCapable, int i)
    
public  voidsetBooleanField(PersistenceCapable persistenceCapable, int i, boolean currentVal, boolean newVal)
    
public  voidsetByteField(PersistenceCapable persistenceCapable, int i, byte currentVal, byte newVal)
    
public  voidsetCharField(PersistenceCapable persistenceCapable, int i, char currentVal, char newVal)
    
public  voidsetDoubleField(PersistenceCapable persistenceCapable, int i, double currentVal, double newVal)
    
public  voidsetFloatField(PersistenceCapable persistenceCapable, int i, float currentVal, float newVal)
    
public  voidsetIntField(PersistenceCapable persistenceCapable, int i, int currentVal, int newVal)
    
public  voidsetLongField(PersistenceCapable persistenceCapable, int i, long currentVal, long newVal)
    
public  voidsetObjectField(PersistenceCapable persistenceCapable, int i, Object currentVal, Object newVal)
    
public  voidsetShortField(PersistenceCapable persistenceCapable, int i, short currentVal, short newVal)
    
public  voidsetStringField(PersistenceCapable persistenceCapable, int i, String currentVal, String newVal)
    
public  voidupdateAutoFields(State autoS)
     Update the state with autoset fields returned from the store operation.
public  voidupdateState(State state)
    

Field Detail
cmd
public ClassMetaData cmd(Code)



oid
OID oid(Code)



pc
PersistenceCapable pc(Code)



state
State state(Code)




Constructor Detail
StateManagerImp
public StateManagerImp(EMProxy em, ModelMetaData modelMetaData)(Code)




Method Detail
detachOnCommit
public void detachOnCommit(VersantDetachedStateManager dsm)(Code)
Called on commit to detach the pc.
Parameters:
  dsm -



fillNewAppPKField
public void fillNewAppPKField(int fieldNo)(Code)



firePostStore
public void firePostStore(LifecycleListenerManager listeners)(Code)



flush
public void flush()(Code)



getBooleanField
public boolean getBooleanField(PersistenceCapable persistenceCapable, int i, boolean b)(Code)



getByteField
public byte getByteField(PersistenceCapable persistenceCapable, int i, byte b)(Code)



getCharField
public char getCharField(PersistenceCapable persistenceCapable, int i, char c)(Code)



getDoubleField
public double getDoubleField(PersistenceCapable persistenceCapable, int i, double v)(Code)



getFloatField
public float getFloatField(PersistenceCapable persistenceCapable, int i, float v)(Code)



getFmd
FieldMetaData getFmd(int absFieldNo)(Code)



getIntField
public int getIntField(PersistenceCapable persistenceCapable, int i, int i1)(Code)



getInternalOID
public OID getInternalOID(PersistenceCapable pc)(Code)



getInternalSM
public PCStateMan getInternalSM(PersistenceCapable pc)(Code)



getLongField
public long getLongField(PersistenceCapable persistenceCapable, int i, long l)(Code)



getOID
public OID getOID()(Code)



getObjectById
public Object getObjectById(Object oid, boolean b)(Code)



getObjectField
public Object getObjectField(PersistenceCapable persistenceCapable, int i, Object o)(Code)



getObjectId
public Object getObjectId(PersistenceCapable persistenceCapable)(Code)



getOptimisticLockingValue
public Object getOptimisticLockingValue()(Code)



getPersistenceCapable
public PersistenceCapable getPersistenceCapable()(Code)



getPersistenceManager
public PersistenceManager getPersistenceManager()(Code)



getPersistenceManager
public PersistenceManager getPersistenceManager(PersistenceCapable persistenceCapable)(Code)



getRealOIDIfAppId
public static OID getRealOIDIfAppId(ClassMetaData cmd, NewObjectOID newOID, State state)(Code)
Create the real oid for this instance if possible. This is done by looking at



getShortField
public short getShortField(PersistenceCapable persistenceCapable, int i, short i1)(Code)



getStringField
public String getStringField(PersistenceCapable persistenceCapable, int i, String s)(Code)



getTransactionalObjectId
public Object getTransactionalObjectId(PersistenceCapable persistenceCapable)(Code)



isDeleted
public boolean isDeleted(PersistenceCapable persistenceCapable)(Code)



isDirty
public boolean isDirty()(Code)
If this sm must be flushed to the store.



isDirty
public boolean isDirty(PersistenceCapable persistenceCapable)(Code)



isLoaded
public boolean isLoaded(PersistenceCapable persistenceCapable, int i)(Code)



isNew
public boolean isNew(PersistenceCapable persistenceCapable)(Code)



isPersistent
public boolean isPersistent(PersistenceCapable persistenceCapable)(Code)



isRemoved
public boolean isRemoved()(Code)
If this instance is marked for removal/Deletion



isTransactional
public boolean isTransactional(PersistenceCapable persistenceCapable)(Code)



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



makeDirty
public void makeDirty(PersistenceCapable persistenceCapable, String s)(Code)



manage
public void manage(OID oidVal, State stateVal, LocalCache cache)(Code)
Manage an existing instance.
Parameters:
  oidVal -
Parameters:
  stateVal -



manageNew
public void manageNew(PersistenceCapable pc, LocalCache cache, int newOidVal)(Code)
Accepts a LifeCycleStatus.NEW entity and manage it.
Parameters:
  pc -



manageReferences
public void manageReferences()(Code)
Manage all the references as per spec. Should look at the annotations and decide on which references to follow.



mergeReferences
public StateManagerImp mergeReferences(com.versant.core.ejb.common.EntrySet mergeSet)(Code)



persistReferences
public void persistReferences(com.versant.core.ejb.common.EntrySet mergeSet)(Code)



postStore
public void postStore(StatesReturned sr, boolean flush)(Code)
Do post commit updated.



preSerialize
public void preSerialize(PersistenceCapable persistenceCapable)(Code)



prepareCommitOrFlush
public void prepareCommitOrFlush(boolean commit, DeletePacket toDelete, StatesToStore toStore)(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 persistenceCapable, int i, boolean val)(Code)



providedByteField
public void providedByteField(PersistenceCapable persistenceCapable, int i, byte val)(Code)



providedCharField
public void providedCharField(PersistenceCapable persistenceCapable, int i, char val)(Code)



providedDoubleField
public void providedDoubleField(PersistenceCapable persistenceCapable, int i, double val)(Code)



providedFloatField
public void providedFloatField(PersistenceCapable persistenceCapable, int i, float val)(Code)



providedIntField
public void providedIntField(PersistenceCapable persistenceCapable, int i, int val)(Code)



providedLongField
public void providedLongField(PersistenceCapable persistenceCapable, int i, long val)(Code)



providedObjectField
public void providedObjectField(PersistenceCapable persistenceCapable, int i, Object val)(Code)



providedShortField
public void providedShortField(PersistenceCapable persistenceCapable, int i, short val)(Code)



providedStringField
public void providedStringField(PersistenceCapable persistenceCapable, int i, String val)(Code)



remove
public void remove()(Code)
Mark this entity as removed



replacingBooleanField
public boolean replacingBooleanField(PersistenceCapable persistenceCapable, int i)(Code)



replacingByteField
public byte replacingByteField(PersistenceCapable persistenceCapable, int i)(Code)



replacingCharField
public char replacingCharField(PersistenceCapable persistenceCapable, int i)(Code)



replacingDoubleField
public double replacingDoubleField(PersistenceCapable persistenceCapable, int i)(Code)



replacingFlags
public byte replacingFlags(PersistenceCapable persistenceCapable)(Code)



replacingFloatField
public float replacingFloatField(PersistenceCapable persistenceCapable, int i)(Code)



replacingIntField
public int replacingIntField(PersistenceCapable persistenceCapable, int i)(Code)



replacingLongField
public long replacingLongField(PersistenceCapable persistenceCapable, int i)(Code)



replacingObjectField
public Object replacingObjectField(PersistenceCapable persistenceCapable, int i)(Code)



replacingShortField
public short replacingShortField(PersistenceCapable persistenceCapable, int i)(Code)



replacingStateManager
public StateManager replacingStateManager(PersistenceCapable persistenceCapable, StateManager stateManager)(Code)



replacingStringField
public String replacingStringField(PersistenceCapable persistenceCapable, int i)(Code)



setBooleanField
public void setBooleanField(PersistenceCapable persistenceCapable, int i, boolean currentVal, boolean newVal)(Code)



setByteField
public void setByteField(PersistenceCapable persistenceCapable, int i, byte currentVal, byte newVal)(Code)



setCharField
public void setCharField(PersistenceCapable persistenceCapable, int i, char currentVal, char newVal)(Code)



setDoubleField
public void setDoubleField(PersistenceCapable persistenceCapable, int i, double currentVal, double newVal)(Code)



setFloatField
public void setFloatField(PersistenceCapable persistenceCapable, int i, float currentVal, float newVal)(Code)



setIntField
public void setIntField(PersistenceCapable persistenceCapable, int i, int currentVal, int newVal)(Code)



setLongField
public void setLongField(PersistenceCapable persistenceCapable, int i, long currentVal, long newVal)(Code)



setObjectField
public void setObjectField(PersistenceCapable persistenceCapable, int i, Object currentVal, Object newVal)(Code)



setShortField
public void setShortField(PersistenceCapable persistenceCapable, int i, short currentVal, short newVal)(Code)



setStringField
public void setStringField(PersistenceCapable persistenceCapable, int i, String currentVal, String newVal)(Code)



updateAutoFields
public void updateAutoFields(State autoS)(Code)
Update the state with autoset fields returned from the store operation.



updateState
public void updateState(State state)(Code)



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.