net.sf.hibernate4gwt.core.store
Interface IPojoStore

All Known Implementing Classes:
HttpSessionPojoStore, InMemoryPojoStore, StatelessPojoStore

public interface IPojoStore

Handler for POJO storage and recovery

Author:
bruno.marchesson

Method Summary
 void afterRestore()
          Extension point called after restore (and merge)
 void beforeRestore()
          Extension point called before restore (and merge)
 IPersistenceUtil getPersistenceUtil()
           
 boolean isStateless()
          Indicates if the store is stateless or stateful
 void remove(java.lang.Object object)
          Remove the argument object
 java.lang.Object restore(java.lang.Object clone, java.lang.Class<?> hibernateClass)
          Restore an object from its clone and class
 void setPersistenceUtil(IPersistenceUtil persistenceUtil)
           
 void store(java.lang.Object object)
          Store the argument object
 

Method Detail

getPersistenceUtil

IPersistenceUtil getPersistenceUtil()
Returns:
the associated persistence util class

setPersistenceUtil

void setPersistenceUtil(IPersistenceUtil persistenceUtil)
Parameters:
persistenceUtil - the persistence Util instance to set

isStateless

boolean isStateless()
Indicates if the store is stateless or stateful

Returns:
true if the store is stateless, false otherwise

store

void store(java.lang.Object object)
Store the argument object


remove

void remove(java.lang.Object object)
Remove the argument object


restore

java.lang.Object restore(java.lang.Object clone,
                         java.lang.Class<?> hibernateClass)
Restore an object from its clone and class

Parameters:
clone - the clone or DTO from GWT
hibernateClass - the searched hibernate class
Returns:
the Hibernate POJO

beforeRestore

void beforeRestore()
Extension point called before restore (and merge)


afterRestore

void afterRestore()
Extension point called after restore (and merge)