|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.vamsas.client.Vobject
Base class for all Vamsas objects extracted from an IClientDocument. An Vobject maybe registered or unregistered.
Field Summary | |
protected boolean |
__added_since_last_read
true if Vobject appeared in the document after the last access by this vamsas library instance |
protected int |
__last_hash
memory of the last doHash() value computed for the Vobject |
protected boolean |
__stored_in_document
true if Vobject was stored in a vamsas Document or has been retrieved from it |
protected boolean |
__updated_since_last_read
true if Vobject was updated since the vamsas library last read a Vobj with the same VorbaId from a document. |
protected boolean |
__visited
|
protected IVorbaIdFactory |
__vorba
the source of unique VorbaIds. |
protected boolean |
registerable
set by testInstanceForIdField() if Vobject should have a VorbaId |
protected Vobject |
V_parent
reference to containing object for this Vobject. |
protected VorbaId |
vorbaId
unique id for all vamsas objects allows unambiguous referencing to any Vobject in the vamsas document |
Constructor Summary | |
protected |
Vobject()
|
Method Summary | |
protected int |
__callHash()
calls the castor-generated hashCode() method |
protected void |
__ensure_instance_ids()
ensure's internal id field corresponds to vorbaId and cascade through all fields referring to an instance of Vobject calling the same method on them. |
protected void |
__ensure_instance_ids(boolean visited)
|
protected java.lang.String |
__getInstanceIdField()
|
protected long |
__getLHash()
get the LhashValue for this object |
protected void |
__setFinalHash(long checksum)
compute the final LhashValue as a difference between checksum and the current base |
protected void |
__setInitHash(long checksum)
set the base LhashValue for this object |
protected boolean |
doHash()
calculate a hash for the Vobject with all housekeeping fields at standard values. |
protected void |
finalize()
|
long |
get__last_hash()
__last_hash is the hash value computed when the Vobject was last checked against a IClientDocument generated by the Vobject's parent IClient instance. |
Vobject |
getV_parent()
|
VorbaId |
getVorbaId()
Method to get fixed reference for the Vobject in the vamsas document. |
int |
hashCode()
Override Object.hashCode with base value for castor generated object hashcodes. |
boolean |
is__stored_in_document()
|
boolean |
isNewInDocument()
|
boolean |
isRegisterable()
|
boolean |
isRegistered()
|
boolean |
isUpdated()
|
protected boolean |
merge(Vobject laterCopy)
TODO: combine two versions of the same collection Vobject to resolve asynchronous updates to the same vamsas Vobject Merges two vamsas objects, one of which is a later version of the earlier (ie they have the same vorbaId but one is a later version recently read from the vamsasDocument collection. |
protected void |
set__added_since_last_read(boolean __added_since_last_read)
|
protected void |
set__stored_in_document(boolean __stored_in_document)
for use by Vorba agent to reflect state of vamsas Vobject to client application. |
protected void |
set__updated_since_last_read(boolean __updated_since_last_read)
Set internal flag to indicate this object was updated since the last document read |
protected void |
setInstanceIdField()
update the Vobject instance's _id field, based on the contents of the VorbaId. |
protected void |
setRegisterable(boolean registerable)
Called by __testInstanceForidField and the post-unmarshalling handler to indicate if Vobject will have a vorbaId. |
protected void |
setV_parent(Vobject V_parent)
|
protected void |
setVorbaId(VorbaId newid)
used by the IClient implementation to generate unique Id based on client applications current namespace. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean __stored_in_document
protected boolean __updated_since_last_read
protected boolean __added_since_last_read
protected int __last_hash
doHash()
protected boolean registerable
protected boolean __visited
protected Vobject V_parent
protected VorbaId vorbaId
protected IVorbaIdFactory __vorba
Constructor Detail |
protected Vobject()
Method Detail |
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public int hashCode()
protected void setInstanceIdField()
protected java.lang.String __getInstanceIdField()
protected int __callHash()
protected boolean doHash()
protected boolean merge(Vobject laterCopy)
public boolean isRegistered()
public VorbaId getVorbaId()
protected void setVorbaId(VorbaId newid)
public boolean is__stored_in_document()
public boolean isUpdated()
public boolean isNewInDocument()
protected void set__updated_since_last_read(boolean __updated_since_last_read)
__updated_since_last_read
- the __updated_since_last_read to setprotected void set__stored_in_document(boolean __stored_in_document)
__stored_in_document
- true if Vobject has been marshalled into current document.protected void set__added_since_last_read(boolean __added_since_last_read)
__added_since_last_read
- the __added_since_last_read to setpublic long get__last_hash()
public boolean isRegisterable()
protected void setRegisterable(boolean registerable)
registerable
- protected void __ensure_instance_ids()
protected void __ensure_instance_ids(boolean visited)
public Vobject getV_parent()
protected void setV_parent(Vobject V_parent)
protected void __setInitHash(long checksum)
checksum
- protected void __setFinalHash(long checksum)
checksum
- protected long __getLHash()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |