|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.broker.PersistenceBroker
This is an abstract class which represents what's common to all
brokers (object relational, relational, flat file, etc.) for support
of persistent objects - their materialization and dematerialization.
Constructor Summary | |
PersistenceBroker()
|
Method Summary | |
java.lang.String |
addPath(java.lang.String file)
Returns the passed file name with the current path (to where persistent objects are kept) prepended. |
abstract Handle |
dematerialize(Handle oldHandle,
java.lang.Object obj)
Dematerializes the updated object and associate it with the returned handle |
abstract Handle |
dematerialize(java.lang.Object obj)
Dematerializes the object and associate it with the returned handle |
java.lang.String |
getCurrentLocationOfBrokeredStorage()
Returns the current high-level information about where brokered (persistent) objects are kept. |
Handle |
handleOf(Handle oldHandle,
java.lang.Object obj)
Saves in persistent storage the updated object passed |
Handle |
handleOf(java.lang.Object obj)
Saves in persistent storage the object passed |
java.lang.Object |
inCache(Handle handle)
Returns from cache the object associated with the designated handle |
abstract java.lang.Object |
materializeWith(Handle handle)
Materializes the object associated with the designated handle |
java.lang.Object |
objectWith(Handle handle)
Returns the object associated with the passed handle |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public PersistenceBroker()
Method Detail |
public final java.lang.String getCurrentLocationOfBrokeredStorage()
public java.lang.String addPath(java.lang.String file)
file
- the file namepublic java.lang.Object objectWith(Handle handle)
handle
- The info need to materialize a persistent objectpublic Handle handleOf(java.lang.Object obj)
obj
- The object to savepublic Handle handleOf(Handle oldHandle, java.lang.Object obj)
oldHandle
- The handle of the object already savedobj
- The updated object to savepublic java.lang.Object inCache(Handle handle)
handle
- The info needed to materialize a persistent objectpublic abstract java.lang.Object materializeWith(Handle handle)
handle
- The info needed to materialize a persistent objectpublic abstract Handle dematerialize(java.lang.Object obj)
obj
- object to dematerialize.public abstract Handle dematerialize(Handle oldHandle, java.lang.Object obj)
oldHandle
- Handle of the object before updateobj
- updated object to dematerialize.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |