|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.hibernate4gwt.core.store.stateful.InMemoryPojoStore
public class InMemoryPojoStore
In Memory POJO Handler This class stores POJO in a simple hashmap TODO recursive add and remove of persistent beans !
Field Summary | |
---|---|
protected java.util.HashMap |
_map
The store hashmap |
protected IPersistenceUtil |
_persistenceUtil
The associated persistence util |
Constructor Summary | |
---|---|
InMemoryPojoStore()
|
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 dto,
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap _map
protected IPersistenceUtil _persistenceUtil
Constructor Detail |
---|
public InMemoryPojoStore()
Method Detail |
---|
public IPersistenceUtil getPersistenceUtil()
getPersistenceUtil
in interface IPojoStore
public void setPersistenceUtil(IPersistenceUtil persistenceUtil)
setPersistenceUtil
in interface IPojoStore
persistenceUtil
- the persistence Util to setpublic boolean isStateless()
IPojoStore
isStateless
in interface IPojoStore
public void remove(java.lang.Object object)
IPojoStore
remove
in interface IPojoStore
public java.lang.Object restore(java.lang.Object dto, java.lang.Class<?> hibernateClass)
IPojoStore
restore
in interface IPojoStore
dto
- the clone or DTO from GWThibernateClass
- the searched hibernate class
public void store(java.lang.Object object)
IPojoStore
store
in interface IPojoStore
public void afterRestore()
IPojoStore
afterRestore
in interface IPojoStore
public void beforeRestore()
IPojoStore
beforeRestore
in interface IPojoStore
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |