|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.vamsas.client.VorbaIdFactory
A VorbaIdFactory is constructed by an IClient instance. It guarantees that any new VorbaId objects are unique within the VAMSAS session.
Field Summary | |
protected java.util.Hashtable |
extanthashv
hash of VorbaIds to persisted hash values |
protected java.util.Hashtable |
extantids
hash of VorbaIds to Vobject. |
protected java.util.Vector |
newobj
list of Vobjects added since last Document read. |
Constructor Summary | |
VorbaIdFactory()
|
Method Summary | |
abstract ClientHandle |
getClientHandle()
|
abstract SessionHandle |
getSessionHandle()
|
abstract UserHandle |
getUserHandle()
|
abstract VorbaId |
makeVorbaId(Vobject vobject)
construct a new id appropriate for this client in the vamsas session. |
protected VorbaId |
newId(java.lang.String id)
internal method to access the protected VorbaId object constructor This shennanigan is to prevent casual generation of VorbaIds (which may destroy the integrity of a Vamsas Document!) |
protected abstract void |
setClient(ClientHandle appHandle)
|
protected void |
setNewIdHash(java.util.Hashtable idtable)
Called by VorbaXmlBinder so the record of newly unmarshalled Vobject Ids is accessible to the Document's VorbaIdFactory instance. |
protected abstract void |
setSession(SessionHandle sessionhandle)
TODO: decide if these are needed. |
protected abstract void |
setUser(UserHandle userHandle)
|
void |
updateHashValue(Vobject vobject)
called when an object is touched by the vamsas library prior to writing to record last hash for the object's VorbaId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Hashtable extantids
protected java.util.Hashtable extanthashv
protected java.util.Vector newobj
Constructor Detail |
public VorbaIdFactory()
Method Detail |
public abstract VorbaId makeVorbaId(Vobject vobject)
makeVorbaId
in interface IVorbaIdFactory
vobject
- TODO
protected VorbaId newId(java.lang.String id)
id
-
protected void setNewIdHash(java.util.Hashtable idtable)
idtable
- public void updateHashValue(Vobject vobject)
IVorbaIdFactory
updateHashValue
in interface IVorbaIdFactory
vobject
- protected abstract void setSession(SessionHandle sessionhandle)
public abstract SessionHandle getSessionHandle()
getSessionHandle
in interface IVorbaIdFactory
protected abstract void setClient(ClientHandle appHandle)
public abstract ClientHandle getClientHandle()
getClientHandle
in interface IVorbaIdFactory
protected abstract void setUser(UserHandle userHandle)
public abstract UserHandle getUserHandle()
getUserHandle
in interface IVorbaIdFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |