net.sf.hibernate4gwt.core.store.stateless
Class StatelessPojoStore

java.lang.Object
  extended by net.sf.hibernate4gwt.core.store.stateless.StatelessPojoStore
All Implemented Interfaces:
IPojoStore

public class StatelessPojoStore
extends java.lang.Object
implements IPojoStore

Stateless Pojo Handler

Author:
bruno.marchesson

Field Summary
protected  IPersistenceUtil _persistenceUtil
          Persistence util
 
Constructor Summary
StatelessPojoStore()
          Constructor
 
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<?> persistentClass)
          Restore an object from its clone and class
 void setPersistenceUtil(IPersistenceUtil util)
           
 void store(java.lang.Object object)
          Store the argument object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_persistenceUtil

protected IPersistenceUtil _persistenceUtil
Persistence util

Constructor Detail

StatelessPojoStore

public StatelessPojoStore()
Constructor

Method Detail

getPersistenceUtil

public IPersistenceUtil getPersistenceUtil()
Specified by:
getPersistenceUtil in interface IPojoStore
Returns:
the persistence Util class

setPersistenceUtil

public void setPersistenceUtil(IPersistenceUtil util)
Specified by:
setPersistenceUtil in interface IPojoStore
Parameters:
util - the persistence Util to set

isStateless

public boolean isStateless()
Description copied from interface: IPojoStore
Indicates if the store is stateless or stateful

Specified by:
isStateless in interface IPojoStore
Returns:
true if the store is stateless, false otherwise

store

public void store(java.lang.Object object)
Description copied from interface: IPojoStore
Store the argument object

Specified by:
store in interface IPojoStore

remove

public void remove(java.lang.Object object)
Description copied from interface: IPojoStore
Remove the argument object

Specified by:
remove in interface IPojoStore

restore

public java.lang.Object restore(java.lang.Object clone,
                                java.lang.Class<?> persistentClass)
Description copied from interface: IPojoStore
Restore an object from its clone and class

Specified by:
restore in interface IPojoStore
Parameters:
clone - the clone or DTO from GWT
persistentClass - the searched hibernate class
Returns:
the Hibernate POJO

afterRestore

public void afterRestore()
Description copied from interface: IPojoStore
Extension point called after restore (and merge)

Specified by:
afterRestore in interface IPojoStore

beforeRestore

public void beforeRestore()
Description copied from interface: IPojoStore
Extension point called before restore (and merge)

Specified by:
beforeRestore in interface IPojoStore