|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPojoToEntryConverter
An interface defining the functionality for a converter object, used implicitly (by the GigaSpacesTemplate) or explicitly (by the application developer) to convert Jini Entry objects to simple POJOs which do not implement any interface or extend any class, and the other way. This conversion is a part of the core capabilities of the GigaSpaces-Spring integration package, and is offered to alleviate migration between existing object stores/caches/ORMs to GigaSpaces without the hassle of changing all domain objects to implement the Entry interface, as the Jini specification dictates
Method Summary | |
---|---|
void |
clean()
Clean all the caching data from the converter |
IGSEntry |
toEntry(Object pojo)
Transform the supplied POJO(Plain Old Java Object) into an IGSEntry implementation, according to some specific policy/implementation. |
IGSEntry |
toEntry(Object pojo,
boolean isIgnoreGenerateAutoPK)
Need to be use only if the POJO has declaration of primary key and auto generator and don't want to generate the primary key. |
Object |
toPojo(Entry entry)
Transform the supplied Entry into aPOJO(Plain Old Java Object) according to some specific policy/implementation. |
Object |
toPojoFromIGSEntry(IGSEntry entry)
Transform the supplied IGSEntry into aPOJO(Plain Old Java Object) according to some specific policy/implementation. |
Method Detail |
---|
IGSEntry toEntry(Object pojo)
pojo
-
IGSEntry toEntry(Object pojo, boolean isIgnoreGenerateAutoPK)
pojo
- isIgnoreGenerateAutoPK
- boolean indicate the POJO has declaration of
primary key and auto generator and don't want to generate the
primary key.
Object toPojo(Entry entry)
entry
-
Object toPojoFromIGSEntry(IGSEntry entry)
entry
- the IGSEntry
void clean()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |