|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.spif.StoreChain | +--net.sf.spif.ejb.StoreSessionClient
A store chain element session bean for chaining together
store chains on multiple vms. To use, just add this
to the client vm's store chain and deploy StoreSessionBean
This will forward all store requests to the session bean, which in turn will forward them to the servers store.
Field Summary |
Fields inherited from class net.sf.spif.StoreChain |
chained |
Constructor Summary | |
StoreSessionClient()
|
Method Summary | |
java.lang.Object |
get(Id id,
boolean writable)
Returns an object from the store. |
Id |
put(Id id,
java.lang.Object object)
Puts an object in the store. |
boolean |
remove(Id id)
Removes an object. |
Methods inherited from class net.sf.spif.StoreChain |
clear, equals, getChained, getChained, getChained, hashCode, setChained |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StoreSessionClient()
Method Detail |
public Id put(Id id, java.lang.Object object)
StoreChain
Puts an object in the store. The objects may be new, or previously acquired by getting writeable. It is an error to attempt to put an existing object not previously acquired by getting writeable.
This default implementation just forwards to the chained. for (optional) use by subclasses.
put
in class StoreChain
id
- the id of the object to put. May be nullobject
- the object to put. May be null
public java.lang.Object get(Id id, boolean writable)
StoreChain
Returns an object from the store.
This default implementation just forwards to the chained. for (optional) use by subclasses.
get
in class StoreChain
id
- the id of the object to return
public boolean remove(Id id)
StoreChain
Removes an object. Does nothign if the object does not exist.
This default implementation just forwards to the chained. for (optional) use by subclasses.
remove
in class StoreChain
id
- the id of the object to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |