net.sf.gilead.core.store.stateless
Class StatelessProxyStore

java.lang.Object
  extended by net.sf.gilead.core.store.stateless.StatelessProxyStore
All Implemented Interfaces:
IProxyStore

public class StatelessProxyStore
extends java.lang.Object
implements IProxyStore

Stateless proxy store. The proxy informations is stored on the pojo, by implementing the ILightEntity interface.

Author:
bruno.marchesson
See Also:
ILightEntity

Constructor Summary
StatelessProxyStore()
          Constructor
 
Method Summary
 void cleanUp()
          Clean up the proxy store after a complete serialization process
protected  java.lang.String convertMap(java.util.Map<java.lang.String,java.io.Serializable> map)
          Convert Map to Map
protected  java.util.Map<java.lang.String,java.io.Serializable> convertToSerializable(java.lang.String serialized)
          Convert Map to Map
 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
 IProxySerialization getProxySerializer()
           
protected  SerializationThread getSerializationThread()
           
 boolean getUseSerializationThread()
           
 void removeProxyInformations(java.lang.Object pojo, java.lang.String property)
          Remove the proxy informations from the property of the argument object.
 void setProxySerializer(IProxySerialization serializer)
           
 void setUseSerializationThread(boolean serializationThread)
           
 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
 

Constructor Detail

StatelessProxyStore

public StatelessProxyStore()
Constructor

Method Detail

getProxySerializer

public IProxySerialization getProxySerializer()
Returns:
the proxy serializer

setProxySerializer

public void setProxySerializer(IProxySerialization serializer)
Parameters:
serializer - the serializer to set

getUseSerializationThread

public boolean getUseSerializationThread()
Returns:
the _useSerializationThread

setUseSerializationThread

public void setUseSerializationThread(boolean serializationThread)
Parameters:
serializationThread - the _useSerializationThread to set

storeProxyInformations

public void storeProxyInformations(java.lang.Object cloneBean,
                                   java.lang.Object persistentBean,
                                   java.lang.String property,
                                   java.util.Map<java.lang.String,java.io.Serializable> proxyInformations)
Description copied from interface: IProxyStore
Store the argument proxy informations.

Specified by:
storeProxyInformations in interface IProxyStore
Parameters:
cloneBean - the cloned, target bean
persistentBean - the persistent, source bean
property - the proxy property name
proxyInformations - the associated proxy informations

removeProxyInformations

public void removeProxyInformations(java.lang.Object pojo,
                                    java.lang.String property)
Description copied from interface: IProxyStore
Remove the proxy informations from the property of the argument object.

Specified by:
removeProxyInformations in interface IProxyStore
property - the proxy property name

getProxyInformations

public java.util.Map<java.lang.String,java.io.Serializable> getProxyInformations(java.lang.Object pojo,
                                                                                 java.lang.String property)
Description copied from interface: IProxyStore
Get the proxy informations for the argument pojo and properties

Specified by:
getProxyInformations in interface IProxyStore
Parameters:
pojo - the root pojo
property - the proxy property name
Returns:
the proxy informations if they exists, null otherwise

cleanUp

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

Specified by:
cleanUp in interface IProxyStore

convertMap

protected java.lang.String convertMap(java.util.Map<java.lang.String,java.io.Serializable> map)
Convert Map to Map


convertToSerializable

protected java.util.Map<java.lang.String,java.io.Serializable> convertToSerializable(java.lang.String serialized)
Convert Map to Map


getSerializationThread

protected SerializationThread getSerializationThread()
Returns:
the serialization thread.