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


java.lang.Object
   com.versant.core.common.State
      com.versant.core.common.GenericState

All known Subclasses:   com.versant.core.jdbc.JdbcGenericState,
GenericState
public class GenericState extends State (Code)
This is a State implementation suitable for use with any PC class. It is intended for use during development when the State class generating code is broken. The meta data OID factory method can just return these for all PC classes. Performance is not important for this class as it will not be used in a production release.


Field Summary
public static  booleanRUNNING_JDBC_TESTS
     The JDBC tests set this flag to disable the checkFilled calls on getString etc.
protected  intclassIndex
     The index of the persistant class.
protected transient  ClassMetaDatacmd
    
protected  Object[]data
     This holds the data for all of the persistent fields and any extra data required for a particular store.
protected  booleandirty
     A global indication if this state has any dirty fields.
protected transient  boolean[]dirtyFields
     Keeps track of dirty fields.
protected  boolean[]filled
     Each field or extra store value that has a valid entry in data has a flag set here.
protected transient  boolean[]resolvedForClient
     Keeps tracks of which fields have been resolved for client side usage.

Constructor Summary
public  GenericState()
    
public  GenericState(ClassMetaData cmd)
    

Method Summary
public  voidaddOneToManyInverseFieldsForL2Evict(VersantPersistenceManagerImp pm)
     Add the values of any non-null reference fields used as back or inverse fields for unmanaged one-to-many collections for eviction from the L2 cache on commit.
public  voidaddRefs(VersantPersistenceManagerImp pm, PCStateMan pcStateMan)
    
final protected  voidcheckCmd()
    
public  booleancheckKeyFields(OID oid)
    
public  voidclear()
    
public  voidclearApplicationIdentityFields()
     Clear any application identity fields from this State.
public  voidclearCollectionFields()
    
public  voidclearDirtyFields()
     Mark all dirty fields as clean and not filled and not resolved.
public  voidclearFilledFlags()
    
public  voidclearNonAutoSetFields()
    
public  voidclearNonFilled(State state)
    
public  voidclearSCOFields()
    
final public  voidclearTransactionNonPersistentFields()
    
public  intcompareToPass1(State state)
     Return 0 if state has the same field numbers as us, less than 0 we are less than it or greater than 0 if we are greater than it.
public  booleancontainFields(int[] stateFieldNos)
    
public  booleancontainFieldsAbs(int[] absFieldNos)
    
public  booleancontainsApplicationIdentityFields()
     Does this State contain all of the application identity fields for its class? This returns false if the class does not use application identity.
public  booleancontainsFetchGroup(FetchGroup fetchGroup)
    
public  booleancontainsField(int stateFieldNo)
    
public  booleancontainsFieldAbs(int absFieldNo)
    
public  booleancontainsPass1Fields()
    
public  booleancontainsPass2Fields()
    
public  booleancontainsValidAppIdFields()
    
public  voidcopyFields(OID oid)
     Populate the primary key fields from the OID.
public  voidcopyFieldsForOptimisticLocking(State state, VersantPersistenceManagerImp sm)
     This is to copy the fields that is filled in on the supplied state to the current state.
public  voidcopyKeyFields(OID oid)
     Populate the OID from this state.
public  voidcopyKeyFieldsUpdate(OID oid)
     Populate the OID from this state.
public  voidcopyOptimisticLockingField(State state)
     This copies all the fakeFields from one the supplied state.
public  booleanequals(Object obj)
    
public  voidfillForRead(State dest, VersantPersistenceManagerImp pm)
    
public  booleanfillToStoreState(State stateToStore, PersistenceContext pm, VersantStateManager sm)
    

This return a deep clone of this state instance with only fields that must be sent to the server to persist changes to this instance filled in.

public  voidfindDirectEdges(OIDGraph graph, IntArray edges)
     Add the graph indexes of all OIDs that we have direct references to (e.g.
public  booleangetBooleanField(int stateFieldNo)
    
public  booleangetBooleanFieldAbs(int field)
    
public  bytegetByteField(int stateFieldNo)
    
public  bytegetByteFieldAbs(int field)
    
public  chargetCharField(int stateFieldNo)
    
public  chargetCharFieldAbs(int field)
    
public  intgetClassIndex()
     Return the index of our PC class in the meta data.
public  ClassMetaDatagetClassMetaData(ModelMetaData jmd)
     Get the meta data for our class.
public  ClassMetaDatagetClassMetaData()
    
public  StategetCopy()
    
public  doublegetDoubleField(int stateFieldNo)
    
public  doublegetDoubleFieldAbs(int field)
    
public  intgetFieldNos(int[] stateFieldNoBuf)
     Put the stateField numbers of all fields we have into stateFieldNoBuf.
public  floatgetFloatField(int stateFieldNo)
    
public  floatgetFloatFieldAbs(int field)
    
public  intgetIntField(int stateFieldNo)
    
public  intgetIntFieldAbs(int field)
    
public  ObjectgetInternalObjectField(int stateFieldNo)
    
public  ObjectgetInternalObjectFieldAbs(int field)
    
public  longgetLongField(int stateFieldNo)
    
public  longgetLongFieldAbs(int field)
    
public  longgetLongFieldInternal(int stateFieldNo)
    
public  ObjectgetObjectField(int stateFieldNo, PersistenceCapable owningPC, PersistenceContext pm, OID oid)
    
public  ObjectgetObjectFieldAbs(int absFieldNo, PersistenceCapable owningPC, PersistenceContext sm, OID oid)
    
public  ObjectgetOptimisticLockingValue()
     The value of the version field on the pc.
public  intgetPass1FieldNos(int[] stateFieldNoBuf)
     Put the stateField numbers of all pass 1 fields we have into stateFieldNoBuf.
public  intgetPass1FieldRefFieldNosWithNewOids(int[] stateFieldNoBuf)
    
public  intgetPass2FieldNos(int[] stateFieldNoBuf)
     Put the stateField numbers of all pass 2 fields we have into stateFieldNoBuf.
public  shortgetShortField(int stateFieldNo)
    
public  shortgetShortFieldAbs(int field)
    
public  StringgetStringField(int stateFieldNo)
    
public  StringgetStringFieldAbs(int field)
    
public  StringgetVersion()
    
public  booleanhasSameFields(State state)
    
public  booleanisDirty()
    
public  booleanisDirty(int absFieldNo)
    
public  booleanisEmpty()
    
public  booleanisFieldNullorZero(int stateFieldNo)
    
public  booleanisHollow()
    
public  booleanisNull(int stateFieldNo)
    
public  booleanisResolvedForClient(int stateFieldNo)
    
public  voidmakeClean()
    
public  voidmakeDirty(int stateFieldNo)
    
public  voidmakeDirtyAbs(int absFieldNo)
    
public  StatenewInstance()
    
public  voidreadExternal(OIDObjectInput is)
    
public static  ObjectreadSimple(int type, DataInput is)
    
public  booleanreplaceNewObjectOIDs(int[] fieldNos, int fieldNosLength)
     Replace any NewObjectOID's in fields in fieldNos in this state with their realOID's.
public  intreplaceSCOFields(PersistenceCapable owner, VersantPersistenceManagerImp sm, int[] absFields)
     This will replace all fields that should be a SCO field with it's SCO implementation.
public  voidretrieve(VersantPersistenceManagerImp sm)
    
public  voidsetBooleanField(int field, boolean newValue)
    
public  voidsetBooleanFieldAbs(int field, boolean newValue)
    
public  voidsetByteField(int field, byte newValue)
    
public  voidsetByteFieldAbs(int absFieldNo, byte newValue)
    
public  voidsetCharField(int stateFieldNo, char newValue)
    
public  voidsetCharFieldAbs(int absFieldNo, char newValue)
    
public  voidsetClassMetaData(ClassMetaData cmd)
    
public  voidsetDoubleField(int field, double newValue)
    
public  voidsetDoubleFieldAbs(int field, double newValue)
    
public  voidsetFilled(int stateFieldNo)
    
public  voidsetFloatField(int field, float newValue)
    
public  voidsetFloatFieldAbs(int field, float newValue)
    
public  voidsetIntField(int field, int newValue)
    
public  voidsetIntFieldAbs(int absFieldNo, int newValue)
    
public  voidsetInternalBooleanField(int field, boolean newValue)
    
public  voidsetInternalBooleanFieldAbs(int field, boolean newValue)
    
public  voidsetInternalByteField(int field, byte newValue)
    
public  voidsetInternalByteFieldAbs(int field, byte newValue)
    
public  voidsetInternalCharField(int field, char newValue)
    
public  voidsetInternalCharFieldAbs(int field, char newValue)
    
public  voidsetInternalDoubleField(int field, double newValue)
    
public  voidsetInternalDoubleFieldAbs(int field, double newValue)
    
public  voidsetInternalFloatField(int field, float newValue)
    
public  voidsetInternalFloatFieldAbs(int field, float newValue)
    
public  voidsetInternalIntField(int field, int newValue)
    
public  voidsetInternalIntFieldAbs(int field, int newValue)
    
public  voidsetInternalLongField(int field, long newValue)
    
public  voidsetInternalLongFieldAbs(int field, long newValue)
    
public  voidsetInternalObjectField(int field, Object newValue)
    
public  voidsetInternalObjectFieldAbs(int field, Object newValue)
    
public  voidsetInternalShortField(int field, short newValue)
    
public  voidsetInternalShortFieldAbs(int field, short newValue)
    
public  voidsetInternalStringField(int field, String newValue)
    
public  voidsetInternalStringFieldAbs(int field, String newValue)
    
public  voidsetLongField(int field, long newValue)
    
public  voidsetLongFieldAbs(int field, long newValue)
    
public  voidsetObjectField(int field, Object newValue)
    
public  voidsetObjectFieldAbs(int field, Object newValue)
    
public  voidsetObjectFieldUnresolved(int field, Object newValue)
    
public  voidsetObjectFieldUnresolvedAbs(int field, Object newValue)
    
public  voidsetShortField(int field, short newValue)
    
public  voidsetShortFieldAbs(int field, short newValue)
    
public  voidsetStringField(int field, String newValue)
    
public  voidsetStringFieldAbs(int field, String newValue)
    
public  StringtoString()
    
public  voidunmanageSCOFields()
    
public  voidupdateAutoSetFieldsCreated(Date now)
     Update all autoset fields that must be set on commit of a new JDO instance.
public  voidupdateAutoSetFieldsModified(Date now, State oldState)
     Update all autoset fields that must be set on commit of modifications to an existing JDO instance.
public  voidupdateFrom(State state)
    
public  voidupdateNonFilled(State state)
    
public  voidvalidateForCache()
    
public  voidwriteExternal(OIDObjectOutput os)
    

Field Detail
RUNNING_JDBC_TESTS
public static boolean RUNNING_JDBC_TESTS(Code)
The JDBC tests set this flag to disable the checkFilled calls on getString etc.



classIndex
protected int classIndex(Code)
The index of the persistant class.



cmd
protected transient ClassMetaData cmd(Code)



data
protected Object[] data(Code)
This holds the data for all of the persistent fields and any extra data required for a particular store. The persistent fields are stored first in fieldNo order (i.e. alphabetically) followed by the store defined values (if any).



dirty
protected boolean dirty(Code)
A global indication if this state has any dirty fields.



dirtyFields
protected transient boolean[] dirtyFields(Code)
Keeps track of dirty fields. This is the result of all setXXX methods. The setInternalXXX method does not change the status to dirty. This is only used on the client side.



filled
protected boolean[] filled(Code)
Each field or extra store value that has a valid entry in data has a flag set here.



resolvedForClient
protected transient boolean[] resolvedForClient(Code)
Keeps tracks of which fields have been resolved for client side usage. eg ensure that an oid field is resolved to the actual PersistantCapable instance.




Constructor Detail
GenericState
public GenericState()(Code)



GenericState
public GenericState(ClassMetaData cmd)(Code)




Method Detail
addOneToManyInverseFieldsForL2Evict
public void addOneToManyInverseFieldsForL2Evict(VersantPersistenceManagerImp pm)(Code)
Add the values of any non-null reference fields used as back or inverse fields for unmanaged one-to-many collections for eviction from the L2 cache on commit. Note that the filled status of the field is not checked. This method is called only for newly managed instances so all fields will be filled.



addRefs
public void addRefs(VersantPersistenceManagerImp pm, PCStateMan pcStateMan)(Code)

Parameters:
  pm -
Parameters:
  pcStateMan -



checkCmd
final protected void checkCmd()(Code)



checkKeyFields
public boolean checkKeyFields(OID oid)(Code)



clear
public void clear()(Code)



clearApplicationIdentityFields
public void clearApplicationIdentityFields()(Code)
Clear any application identity fields from this State. This is a NOP if the class does not use application identity.



clearCollectionFields
public void clearCollectionFields()(Code)



clearDirtyFields
public void clearDirtyFields()(Code)
Mark all dirty fields as clean and not filled and not resolved.

filled &= ~dirty resolved &= ~dirty dirty = 0




clearFilledFlags
public void clearFilledFlags()(Code)



clearNonAutoSetFields
public void clearNonAutoSetFields()(Code)



clearNonFilled
public void clearNonFilled(State state)(Code)



clearSCOFields
public void clearSCOFields()(Code)



clearTransactionNonPersistentFields
final public void clearTransactionNonPersistentFields()(Code)



compareToPass1
public int compareToPass1(State state)(Code)
Return 0 if state has the same field numbers as us, less than 0 we are less than it or greater than 0 if we are greater than it. The definition of less than and greater than is up to the state implementation but must be detirministic. For fields that are stored using Oracle style LOBs then the nullness of the value must also be considered in the comparison i.e. states with field x null and not null respectively are different.
Parameters:
  state - State to compare to (will be for same class)



containFields
public boolean containFields(int[] stateFieldNos)(Code)



containFieldsAbs
public boolean containFieldsAbs(int[] absFieldNos)(Code)



containsApplicationIdentityFields
public boolean containsApplicationIdentityFields()(Code)
Does this State contain all of the application identity fields for its class? This returns false if the class does not use application identity.



containsFetchGroup
public boolean containsFetchGroup(FetchGroup fetchGroup)(Code)



containsField
public boolean containsField(int stateFieldNo)(Code)



containsFieldAbs
public boolean containsFieldAbs(int absFieldNo)(Code)



containsPass1Fields
public boolean containsPass1Fields()(Code)
Do we contain any pass 1 fields?
See Also:   FieldMetaData.secondaryField
See Also:   ClassMetaData.pass2Fields



containsPass2Fields
public boolean containsPass2Fields()(Code)
Do we contain any pass 2 fields?
See Also:   FieldMetaData.secondaryField
See Also:   ClassMetaData.pass2Fields



containsValidAppIdFields
public boolean containsValidAppIdFields()(Code)



copyFields
public void copyFields(OID oid)(Code)
Populate the primary key fields from the OID. This is only called for PC classes that are using application identity.



copyFieldsForOptimisticLocking
public void copyFieldsForOptimisticLocking(State state, VersantPersistenceManagerImp sm)(Code)
This is to copy the fields that is filled in on the supplied state to the current state. The objective behind it is to keep a copy of the date to compare against the db at the time of commit. The only field types of interest is java.util.Date and Reference fields.
Parameters:
  state -
Parameters:
  sm -



copyKeyFields
public void copyKeyFields(OID oid)(Code)
Populate the OID from this state. This is called for classes using application identity when a new object is persisted. It will not be called otherwise.



copyKeyFieldsUpdate
public void copyKeyFieldsUpdate(OID oid)(Code)
Populate the OID from this state. This is called for classes using application identity when a primary key field of an existing object is updated. It will not be called otherwise. Note that if the primary key consists of multiple fields then those that have not changed may not be in state.



copyOptimisticLockingField
public void copyOptimisticLockingField(State state)(Code)
This copies all the fakeFields from one the supplied state.
Parameters:
  state -



equals
public boolean equals(Object obj)(Code)



fillForRead
public void fillForRead(State dest, VersantPersistenceManagerImp pm)(Code)



fillToStoreState
public boolean fillToStoreState(State stateToStore, PersistenceContext pm, VersantStateManager sm)(Code)

This return a deep clone of this state instance with only fields that must be sent to the server to persist changes to this instance filled in. For JdbcDataStore this will include only the dirty fields. For VdsDataStore this includes all fields so the whole DataStoreObject can be written.

All 'First Class Objects' will be resolved to an OID and 'Second Class Objects' will be resolved to some serializable/storable format that represents the state of the field.

True if some fields were written to stateToStore and false ifnot (i.e. we have no dirty fields)



findDirectEdges
public void findDirectEdges(OIDGraph graph, IntArray edges)(Code)
Add the graph indexes of all OIDs that we have direct references to (e.g. foreign keys) to edges. This is called as part of the graph sorting process.
See Also:   com.versant.core.server.PersistGraph.sort



getBooleanField
public boolean getBooleanField(int stateFieldNo)(Code)



getBooleanFieldAbs
public boolean getBooleanFieldAbs(int field)(Code)



getByteField
public byte getByteField(int stateFieldNo)(Code)



getByteFieldAbs
public byte getByteFieldAbs(int field)(Code)



getCharField
public char getCharField(int stateFieldNo)(Code)



getCharFieldAbs
public char getCharFieldAbs(int field)(Code)



getClassIndex
public int getClassIndex()(Code)
Return the index of our PC class in the meta data. Do not use this to get the meta data for our class. Call getClassMetaData instead.
See Also:   ModelMetaData.classes
See Also:   GenericState.getClassMetaData



getClassMetaData
public ClassMetaData getClassMetaData(ModelMetaData jmd)(Code)
Get the meta data for our class.
Parameters:
  jmd - The meta data we belong to



getClassMetaData
public ClassMetaData getClassMetaData()(Code)



getCopy
public State getCopy()(Code)



getDoubleField
public double getDoubleField(int stateFieldNo)(Code)



getDoubleFieldAbs
public double getDoubleFieldAbs(int field)(Code)



getFieldNos
public int getFieldNos(int[] stateFieldNoBuf)(Code)
Put the stateField numbers of all fields we have into stateFieldNoBuf. The number of field numbers stored is returned.



getFloatField
public float getFloatField(int stateFieldNo)(Code)



getFloatFieldAbs
public float getFloatFieldAbs(int field)(Code)



getIntField
public int getIntField(int stateFieldNo)(Code)



getIntFieldAbs
public int getIntFieldAbs(int field)(Code)



getInternalObjectField
public Object getInternalObjectField(int stateFieldNo)(Code)



getInternalObjectFieldAbs
public Object getInternalObjectFieldAbs(int field)(Code)



getLongField
public long getLongField(int stateFieldNo)(Code)



getLongFieldAbs
public long getLongFieldAbs(int field)(Code)



getLongFieldInternal
public long getLongFieldInternal(int stateFieldNo)(Code)



getObjectField
public Object getObjectField(int stateFieldNo, PersistenceCapable owningPC, PersistenceContext pm, OID oid)(Code)



getObjectFieldAbs
public Object getObjectFieldAbs(int absFieldNo, PersistenceCapable owningPC, PersistenceContext sm, OID oid)(Code)



getOptimisticLockingValue
public Object getOptimisticLockingValue()(Code)
The value of the version field on the pc. This will return null if there are no version fields.



getPass1FieldNos
public int getPass1FieldNos(int[] stateFieldNoBuf)(Code)
Put the stateField numbers of all pass 1 fields we have into stateFieldNoBuf. The number of field numbers stored is returned.
See Also:   FieldMetaData.secondaryField
See Also:   ClassMetaData.pass2Fields



getPass1FieldRefFieldNosWithNewOids
public int getPass1FieldRefFieldNosWithNewOids(int[] stateFieldNoBuf)(Code)



getPass2FieldNos
public int getPass2FieldNos(int[] stateFieldNoBuf)(Code)
Put the stateField numbers of all pass 2 fields we have into stateFieldNoBuf. The number of field numbers stored is returned.
See Also:   FieldMetaData.secondaryField
See Also:   ClassMetaData.pass2Fields



getShortField
public short getShortField(int stateFieldNo)(Code)



getShortFieldAbs
public short getShortFieldAbs(int field)(Code)



getStringField
public String getStringField(int stateFieldNo)(Code)



getStringFieldAbs
public String getStringFieldAbs(int field)(Code)



getVersion
public String getVersion()(Code)



hasSameFields
public boolean hasSameFields(State state)(Code)
Does this State contain exactly the same fields as the supplied State?
Parameters:
  state - State to compare to (will be for same class)



isDirty
public boolean isDirty()(Code)



isDirty
public boolean isDirty(int absFieldNo)(Code)



isEmpty
public boolean isEmpty()(Code)



isFieldNullorZero
public boolean isFieldNullorZero(int stateFieldNo)(Code)



isHollow
public boolean isHollow()(Code)



isNull
public boolean isNull(int stateFieldNo)(Code)
Is the supplied stateFieldNo null?



isResolvedForClient
public boolean isResolvedForClient(int stateFieldNo)(Code)



makeClean
public void makeClean()(Code)



makeDirty
public void makeDirty(int stateFieldNo)(Code)



makeDirtyAbs
public void makeDirtyAbs(int absFieldNo)(Code)



newInstance
public State newInstance()(Code)
Return a new State instance new State instance



readExternal
public void readExternal(OIDObjectInput is) throws ClassNotFoundException, IOException(Code)



readSimple
public static Object readSimple(int type, DataInput is) throws IOException(Code)



replaceNewObjectOIDs
public boolean replaceNewObjectOIDs(int[] fieldNos, int fieldNosLength)(Code)
Replace any NewObjectOID's in fields in fieldNos in this state with their realOID's. Entries in fieldNos that are less than 0 should be skipped. Note that skipped entries will never be for fields that could hold OIDs.



replaceSCOFields
public int replaceSCOFields(PersistenceCapable owner, VersantPersistenceManagerImp sm, int[] absFields)(Code)
This will replace all fields that should be a SCO field with it's SCO implementation.



retrieve
public void retrieve(VersantPersistenceManagerImp sm)(Code)



setBooleanField
public void setBooleanField(int field, boolean newValue)(Code)



setBooleanFieldAbs
public void setBooleanFieldAbs(int field, boolean newValue)(Code)



setByteField
public void setByteField(int field, byte newValue)(Code)



setByteFieldAbs
public void setByteFieldAbs(int absFieldNo, byte newValue)(Code)



setCharField
public void setCharField(int stateFieldNo, char newValue)(Code)



setCharFieldAbs
public void setCharFieldAbs(int absFieldNo, char newValue)(Code)



setClassMetaData
public void setClassMetaData(ClassMetaData cmd)(Code)



setDoubleField
public void setDoubleField(int field, double newValue)(Code)



setDoubleFieldAbs
public void setDoubleFieldAbs(int field, double newValue)(Code)



setFilled
public void setFilled(int stateFieldNo)(Code)



setFloatField
public void setFloatField(int field, float newValue)(Code)



setFloatFieldAbs
public void setFloatFieldAbs(int field, float newValue)(Code)



setIntField
public void setIntField(int field, int newValue)(Code)



setIntFieldAbs
public void setIntFieldAbs(int absFieldNo, int newValue)(Code)



setInternalBooleanField
public void setInternalBooleanField(int field, boolean newValue)(Code)



setInternalBooleanFieldAbs
public void setInternalBooleanFieldAbs(int field, boolean newValue)(Code)



setInternalByteField
public void setInternalByteField(int field, byte newValue)(Code)



setInternalByteFieldAbs
public void setInternalByteFieldAbs(int field, byte newValue)(Code)



setInternalCharField
public void setInternalCharField(int field, char newValue)(Code)



setInternalCharFieldAbs
public void setInternalCharFieldAbs(int field, char newValue)(Code)



setInternalDoubleField
public void setInternalDoubleField(int field, double newValue)(Code)



setInternalDoubleFieldAbs
public void setInternalDoubleFieldAbs(int field, double newValue)(Code)



setInternalFloatField
public void setInternalFloatField(int field, float newValue)(Code)



setInternalFloatFieldAbs
public void setInternalFloatFieldAbs(int field, float newValue)(Code)



setInternalIntField
public void setInternalIntField(int field, int newValue)(Code)



setInternalIntFieldAbs
public void setInternalIntFieldAbs(int field, int newValue)(Code)



setInternalLongField
public void setInternalLongField(int field, long newValue)(Code)



setInternalLongFieldAbs
public void setInternalLongFieldAbs(int field, long newValue)(Code)



setInternalObjectField
public void setInternalObjectField(int field, Object newValue)(Code)



setInternalObjectFieldAbs
public void setInternalObjectFieldAbs(int field, Object newValue)(Code)



setInternalShortField
public void setInternalShortField(int field, short newValue)(Code)



setInternalShortFieldAbs
public void setInternalShortFieldAbs(int field, short newValue)(Code)



setInternalStringField
public void setInternalStringField(int field, String newValue)(Code)



setInternalStringFieldAbs
public void setInternalStringFieldAbs(int field, String newValue)(Code)



setLongField
public void setLongField(int field, long newValue)(Code)



setLongFieldAbs
public void setLongFieldAbs(int field, long newValue)(Code)



setObjectField
public void setObjectField(int field, Object newValue)(Code)



setObjectFieldAbs
public void setObjectFieldAbs(int field, Object newValue)(Code)



setObjectFieldUnresolved
public void setObjectFieldUnresolved(int field, Object newValue)(Code)



setObjectFieldUnresolvedAbs
public void setObjectFieldUnresolvedAbs(int field, Object newValue)(Code)



setShortField
public void setShortField(int field, short newValue)(Code)



setShortFieldAbs
public void setShortFieldAbs(int field, short newValue)(Code)



setStringField
public void setStringField(int field, String newValue)(Code)



setStringFieldAbs
public void setStringFieldAbs(int field, String newValue)(Code)



toString
public String toString()(Code)



unmanageSCOFields
public void unmanageSCOFields()(Code)



updateAutoSetFieldsCreated
public void updateAutoSetFieldsCreated(Date now)(Code)
Update all autoset fields that must be set on commit of a new JDO instance.
See Also:   FieldMetaData.autoSet



updateAutoSetFieldsModified
public void updateAutoSetFieldsModified(Date now, State oldState)(Code)
Update all autoset fields that must be set on commit of modifications to an existing JDO instance.
Parameters:
  oldState - The pre-modification state of the instance.
See Also:   FieldMetaData.autoSet



updateFrom
public void updateFrom(State state)(Code)



updateNonFilled
public void updateNonFilled(State state)(Code)



validateForCache
public void validateForCache()(Code)



writeExternal
public void writeExternal(OIDObjectOutput os) throws IOException(Code)



Methods inherited from com.versant.core.common.State
public void addFetchGroupStatesToDCS(FetchGroup fg, DetachStateContainer dcs, VersantPersistenceManagerImp pm, OID oid, ClassMetaData cmd)(Code)(Java Doc)
abstract public void addOneToManyInverseFieldsForL2Evict(VersantPersistenceManagerImp pm)(Code)(Java Doc)
abstract public void addRefs(VersantPersistenceManagerImp sm, PCStateMan pcStateMan)(Code)(Java Doc)
abstract public boolean checkKeyFields(OID oid)(Code)(Java Doc)
abstract public void clear()(Code)(Java Doc)
abstract public void clearApplicationIdentityFields()(Code)(Java Doc)
abstract public void clearCollectionFields()(Code)(Java Doc)
abstract public void clearDirtyFields()(Code)(Java Doc)
abstract public void clearFilledFlags()(Code)(Java Doc)
abstract public void clearNonAutoSetFields()(Code)(Java Doc)
abstract public void clearNonFilled(State state)(Code)(Java Doc)
abstract public void clearSCOFields()(Code)(Java Doc)
abstract public void clearTransactionNonPersistentFields()(Code)(Java Doc)
abstract public int compareToPass1(State state)(Code)(Java Doc)
abstract public boolean containFields(int[] stateFieldNos)(Code)(Java Doc)
abstract public boolean containFieldsAbs(int[] absFieldNos)(Code)(Java Doc)
abstract public boolean containsApplicationIdentityFields()(Code)(Java Doc)
abstract public boolean containsFetchGroup(FetchGroup fetchGroup)(Code)(Java Doc)
abstract public boolean containsField(int stateFieldNo)(Code)(Java Doc)
abstract public boolean containsFieldAbs(int absFieldNo)(Code)(Java Doc)
abstract public boolean containsPass1Fields()(Code)(Java Doc)
abstract public boolean containsPass2Fields()(Code)(Java Doc)
abstract public boolean containsValidAppIdFields()(Code)(Java Doc)
abstract public void copyFields(OID oid)(Code)(Java Doc)
abstract public void copyFieldsForOptimisticLocking(State state, VersantPersistenceManagerImp sm)(Code)(Java Doc)
abstract public void copyKeyFields(OID oid)(Code)(Java Doc)
abstract public void copyKeyFieldsUpdate(OID oid)(Code)(Java Doc)
abstract public void copyOptimisticLockingField(State state)(Code)(Java Doc)
abstract public void fillForRead(State dest, VersantPersistenceManagerImp sm)(Code)(Java Doc)
abstract public boolean fillToStoreState(State stateToStore, PersistenceContext sm, VersantStateManager pcStateMan)(Code)(Java Doc)
abstract public void findDirectEdges(OIDGraph graph, IntArray edges)(Code)(Java Doc)
protected void findDirectEdges(OIDGraph graph, ClassMetaData cmd, int fieldNo, State state, IntArray edges)(Code)(Java Doc)
abstract public boolean getBooleanField(int stateFieldNo)(Code)(Java Doc)
abstract public boolean getBooleanFieldAbs(int absFieldNo)(Code)(Java Doc)
abstract public byte getByteField(int stateFieldNo)(Code)(Java Doc)
abstract public byte getByteFieldAbs(int absFieldNo)(Code)(Java Doc)
abstract public char getCharField(int stateFieldNo)(Code)(Java Doc)
abstract public char getCharFieldAbs(int absFieldNo)(Code)(Java Doc)
abstract public int getClassIndex()(Code)(Java Doc)
abstract public ClassMetaData getClassMetaData(ModelMetaData jmd)(Code)(Java Doc)
abstract public ClassMetaData getClassMetaData()(Code)(Java Doc)
abstract public State getCopy()(Code)(Java Doc)
abstract public double getDoubleField(int stateFieldNo)(Code)(Java Doc)
abstract public double getDoubleFieldAbs(int absFieldNo)(Code)(Java Doc)
abstract public int getFieldNos(int[] buf)(Code)(Java Doc)
abstract public float getFloatField(int stateFieldNo)(Code)(Java Doc)
abstract public float getFloatFieldAbs(int absFieldNo)(Code)(Java Doc)
abstract public int getIntField(int stateFieldNo)(Code)(Java Doc)
abstract public int getIntFieldAbs(int absFieldNo)(Code)(Java Doc)
abstract public Object getInternalObjectField(int field)(Code)(Java Doc)
abstract public Object getInternalObjectFieldAbs(int field)(Code)(Java Doc)
abstract public long getLongField(int stateFieldNo)(Code)(Java Doc)
abstract public long getLongFieldAbs(int absFieldNo)(Code)(Java Doc)
abstract public long getLongFieldInternal(int stateFieldNo)(Code)(Java Doc)
abstract public Object getObjectField(int stateFieldNo, PersistenceCapable owningPC, PersistenceContext pm, OID oid)(Code)(Java Doc)
abstract public Object getObjectFieldAbs(int absFieldNo, PersistenceCapable owningPC, PersistenceContext pm, OID oid)(Code)(Java Doc)
abstract public Object getOptimisticLockingValue()(Code)(Java Doc)
abstract public int getPass1FieldNos(int[] buf)(Code)(Java Doc)
abstract public int getPass1FieldRefFieldNosWithNewOids(int[] stateFieldNoBuf)(Code)(Java Doc)
abstract public int getPass2FieldNos(int[] buf)(Code)(Java Doc)
abstract public short getShortField(int stateFieldNo)(Code)(Java Doc)
abstract public short getShortFieldAbs(int absFieldNo)(Code)(Java Doc)
abstract public String getStringField(int stateFieldNo)(Code)(Java Doc)
abstract public String getStringFieldAbs(int absFieldNo)(Code)(Java Doc)
abstract public String getVersion()(Code)(Java Doc)
abstract public boolean hasSameFields(State state)(Code)(Java Doc)
public boolean isCacheble()(Code)(Java Doc)
abstract public boolean isDirty()(Code)(Java Doc)
abstract public boolean isDirty(int fieldNo)(Code)(Java Doc)
abstract public boolean isEmpty()(Code)(Java Doc)
abstract public boolean isFieldNullorZero(int stateFieldNo)(Code)(Java Doc)
abstract public boolean isHollow()(Code)(Java Doc)
abstract public boolean isNull(int stateFieldNo)(Code)(Java Doc)
abstract public boolean isResolvedForClient(int stateFieldNo)(Code)(Java Doc)
abstract public void makeClean()(Code)(Java Doc)
abstract public void makeDirtyAbs(int fieldNo)(Code)(Java Doc)
abstract public State newInstance()(Code)(Java Doc)
abstract public void readExternal(OIDObjectInput is) throws IOException, ClassNotFoundException(Code)(Java Doc)
abstract public boolean replaceNewObjectOIDs(int[] fieldNos, int fieldNosLength)(Code)(Java Doc)
abstract public int replaceSCOFields(PersistenceCapable owner, VersantPersistenceManagerImp sm, int[] absFieldNos)(Code)(Java Doc)
public Object resolveArrayOIDs(Object[] oids, PersistenceContext sm, Class type)(Code)(Java Doc)
public Object resolveArrayValues(Object vals, PersistenceContext pm)(Code)(Java Doc)
abstract public void retrieve(VersantPersistenceManagerImp sm)(Code)(Java Doc)
abstract public void setBooleanField(int stateFieldNo, boolean newValue)(Code)(Java Doc)
abstract public void setBooleanFieldAbs(int absFieldNo, boolean newValue)(Code)(Java Doc)
abstract public void setByteField(int stateFieldNo, byte newValue)(Code)(Java Doc)
abstract public void setByteFieldAbs(int absFieldNo, byte newValue)(Code)(Java Doc)
abstract public void setCharField(int stateFieldNo, char newValue)(Code)(Java Doc)
abstract public void setCharFieldAbs(int absFieldNo, char newValue)(Code)(Java Doc)
abstract public void setClassMetaData(ClassMetaData cmd)(Code)(Java Doc)
abstract public void setDoubleField(int stateFieldNo, double newValue)(Code)(Java Doc)
abstract public void setDoubleFieldAbs(int absFieldNo, double newValue)(Code)(Java Doc)
abstract public void setFilled(int stateFieldNo)(Code)(Java Doc)
abstract public void setFloatField(int stateFieldNo, float newValue)(Code)(Java Doc)
abstract public void setFloatFieldAbs(int absFieldNo, float newValue)(Code)(Java Doc)
abstract public void setIntField(int stateFieldNo, int newValue)(Code)(Java Doc)
abstract public void setIntFieldAbs(int absFieldNo, int newValue)(Code)(Java Doc)
abstract public void setInternalBooleanField(int field, boolean newValue)(Code)(Java Doc)
abstract public void setInternalBooleanFieldAbs(int field, boolean newValue)(Code)(Java Doc)
abstract public void setInternalByteField(int field, byte newValue)(Code)(Java Doc)
abstract public void setInternalByteFieldAbs(int field, byte newValue)(Code)(Java Doc)
abstract public void setInternalCharField(int field, char newValue)(Code)(Java Doc)
abstract public void setInternalCharFieldAbs(int field, char newValue)(Code)(Java Doc)
abstract public void setInternalDoubleField(int field, double newValue)(Code)(Java Doc)
abstract public void setInternalDoubleFieldAbs(int field, double newValue)(Code)(Java Doc)
abstract public void setInternalFloatField(int field, float newValue)(Code)(Java Doc)
abstract public void setInternalFloatFieldAbs(int field, float newValue)(Code)(Java Doc)
abstract public void setInternalIntField(int field, int newValue)(Code)(Java Doc)
abstract public void setInternalIntFieldAbs(int field, int newValue)(Code)(Java Doc)
abstract public void setInternalLongField(int field, long newValue)(Code)(Java Doc)
abstract public void setInternalLongFieldAbs(int field, long newValue)(Code)(Java Doc)
abstract public void setInternalObjectField(int field, Object newValue)(Code)(Java Doc)
abstract public void setInternalObjectFieldAbs(int field, Object newValue)(Code)(Java Doc)
abstract public void setInternalShortField(int field, short newValue)(Code)(Java Doc)
abstract public void setInternalShortFieldAbs(int field, short newValue)(Code)(Java Doc)
abstract public void setInternalStringField(int field, String newValue)(Code)(Java Doc)
abstract public void setInternalStringFieldAbs(int field, String newValue)(Code)(Java Doc)
abstract public void setLongField(int stateFieldNo, long newValue)(Code)(Java Doc)
abstract public void setLongFieldAbs(int absFieldNo, long newValue)(Code)(Java Doc)
abstract public void setObjectField(int stateFieldNo, Object newValue)(Code)(Java Doc)
abstract public void setObjectFieldAbs(int absFieldNo, Object newValue)(Code)(Java Doc)
abstract public void setObjectFieldUnresolved(int field, Object newValue)(Code)(Java Doc)
abstract public void setObjectFieldUnresolvedAbs(int field, Object newValue)(Code)(Java Doc)
abstract public void setShortField(int stateFieldNo, short newValue)(Code)(Java Doc)
abstract public void setShortFieldAbs(int absFieldNo, short newValue)(Code)(Java Doc)
abstract public void setStringField(int stateFieldNo, String newValue)(Code)(Java Doc)
abstract public void setStringFieldAbs(int absFieldNo, String newValue)(Code)(Java Doc)
abstract public void unmanageSCOFields()(Code)(Java Doc)
abstract public void updateAutoSetFieldsCreated(Date now)(Code)(Java Doc)
abstract public void updateAutoSetFieldsModified(Date now, State oldState)(Code)(Java Doc)
abstract public void updateFrom(State state)(Code)(Java Doc)
abstract public void updateNonFilled(State state)(Code)(Java Doc)
public void validateForCache()(Code)(Java Doc)
abstract public void writeExternal(OIDObjectOutput os) throws IOException(Code)(Java Doc)

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.