|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.gilead.core.store.stateful.AbstractStatefulProxyStore
public abstract class AbstractStatefulProxyStore
Abstract class for stateful proxy store.
Field Summary | |
---|---|
protected IPersistenceUtil |
_persistenceUtil
The associated persistence util |
Constructor Summary | |
---|---|
AbstractStatefulProxyStore()
|
Method Summary | |
---|---|
void |
cleanUp()
Clean up the proxy store after a complete serialization process |
protected java.lang.String |
computeKey(java.lang.Object pojo,
java.io.Serializable id,
java.lang.String property)
Compute the hashmap key |
protected java.lang.String |
computeKey(java.lang.Object pojo,
java.lang.String property)
Compute the hashmap key |
protected abstract void |
delete(java.lang.String key)
Delete the key from the underlying storage |
protected abstract java.util.Map<java.lang.String,java.io.Serializable> |
get(java.lang.String key)
Get the proxy informations associated with the key |
IPersistenceUtil |
getPersistenceUtil()
|
java.util.Map<java.lang.String,java.io.Serializable> |
getProxyInformations(java.lang.Object pojo,
java.lang.String property)
Get the proxy informations for the argument pojo and properties |
void |
removeProxyInformations(java.lang.Object pojo,
java.lang.String property)
Remove the proxy informations from the property of the argument object. |
void |
setPersistenceUtil(IPersistenceUtil persistenceUtil)
|
protected abstract void |
store(java.lang.String key,
java.util.Map<java.lang.String,java.io.Serializable> proxyInformation)
Store the value in the map. |
void |
storeProxyInformations(java.lang.Object cloneBean,
java.lang.Object persistentBean,
java.lang.String property,
java.util.Map<java.lang.String,java.io.Serializable> proxyInformations)
Store the argument proxy informations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IPersistenceUtil _persistenceUtil
Constructor Detail |
---|
public AbstractStatefulProxyStore()
Method Detail |
---|
public IPersistenceUtil getPersistenceUtil()
public void setPersistenceUtil(IPersistenceUtil persistenceUtil)
persistenceUtil
- the persistence Util to setpublic void storeProxyInformations(java.lang.Object cloneBean, java.lang.Object persistentBean, java.lang.String property, java.util.Map<java.lang.String,java.io.Serializable> proxyInformations)
IProxyStore
storeProxyInformations
in interface IProxyStore
cloneBean
- the cloned, target beanpersistentBean
- the persistent, source beanproperty
- the proxy property nameproxyInformations
- the associated proxy informationspublic java.util.Map<java.lang.String,java.io.Serializable> getProxyInformations(java.lang.Object pojo, java.lang.String property)
IProxyStore
getProxyInformations
in interface IProxyStore
pojo
- the root pojoproperty
- the proxy property name
public void removeProxyInformations(java.lang.Object pojo, java.lang.String property)
IProxyStore
removeProxyInformations
in interface IProxyStore
property
- the proxy property namepublic void cleanUp()
cleanUp
in interface IProxyStore
protected abstract void store(java.lang.String key, java.util.Map<java.lang.String,java.io.Serializable> proxyInformation)
protected abstract java.util.Map<java.lang.String,java.io.Serializable> get(java.lang.String key)
protected abstract void delete(java.lang.String key)
key
- protected java.lang.String computeKey(java.lang.Object pojo, java.io.Serializable id, java.lang.String property)
pojo
- property
-
protected java.lang.String computeKey(java.lang.Object pojo, java.lang.String property)
pojo
- property
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |