| 
 | SRJRCFrames v0.1.296 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.schwarzrot.data.support.EntityConverter
public class EntityConverter
| Constructor Summary | |
|---|---|
| EntityConverter() | |
| Method Summary | |
|---|---|
|  Object | fromPersistence(Class<?> type,
                Object value)convert a value from persistence into a value of the java world. | 
| protected  EntityHolder | getEntityCache() | 
| protected  Entity | getEntityForID(Class<? extends Entity> type,
               long id) | 
|  Class<?> | getValueType()returns the type, this converter cares about | 
|  Object | toPersistence(Object value,
              int notUsed)convert a value from java world into a value for persistence. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public EntityConverter()
| Method Detail | 
|---|
public Object fromPersistence(Class<?> type,
                              Object value)
Converter
fromPersistence in interface Convertertype - the type of the property (target type)value - the value from persistence
public Class<?> getValueType()
Converter
getValueType in interface ConverterClass
public Object toPersistence(Object value,
                            int notUsed)
Converter
toPersistence in interface Convertervalue - a property valuenotUsed - size of physical datafield (i.e. database column)
protected EntityHolder getEntityCache()
protected Entity getEntityForID(Class<? extends Entity> type,
                                long id)
| 
 | SRJRCFrames v0.1.296 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||