net.sf.gilead.core.store
Interface IProxyStore

All Known Implementing Classes:
AbstractStatefulProxyStore, HttpSessionProxyStore, InMemoryProxyStore, StatelessProxyStore

public interface IProxyStore

Handler for proxy informations storage and recovery

Author:
bruno.marchesson

Method Summary
 void cleanUp()
          Clean up the proxy store after a complete serialization process
 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 object, java.lang.String property)
          Remove the proxy informations from the property of the argument object.
 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.
 

Method Detail

storeProxyInformations

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.

Parameters:
cloneBean - the cloned, target bean
persistentBean - the persistent, source bean
property - the proxy property name
proxyInformations - the associated proxy informations

removeProxyInformations

void removeProxyInformations(java.lang.Object object,
                             java.lang.String property)
Remove the proxy informations from the property of the argument object.

Parameters:
pojo - the root pojo
property - the proxy property name

getProxyInformations

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

Parameters:
pojo - the root pojo
property - the proxy property name
Returns:
the proxy informations if they exists, null otherwise

cleanUp

void cleanUp()
Clean up the proxy store after a complete serialization process