| 
 | SRJRCFrames v0.1.296 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Converter
interface for property conversion between java world and persistence.
 Converters are requested from a ConverterFactory, with the
 (java-)property type as value type. The ConverterFactory is setup by
 ApplicationContext.
EntityUtils.fillEntity(de.schwarzrot.data.Entity,
      de.schwarzrot.data.access.support.EntityDescriptor,
      de.schwarzrot.data.access.DataAccessor,
      de.schwarzrot.data.access.support.EntityIntrospector)| Method Summary | |
|---|---|
|  Object | fromPersistence(Class<?> type,
                Object value)convert a value from persistence into a value of the java world. | 
|  Class<?> | getValueType()returns the type, this converter cares about | 
|  Object | toPersistence(Object value,
              int physicalSize)convert a value from java world into a value for persistence. | 
| Method Detail | 
|---|
Object fromPersistence(Class<?> type,
                       Object value)
type - the type of the property (target type)value - the value from persistence
Class<?> getValueType()
Class
Object toPersistence(Object value,
                     int physicalSize)
value - a property valuephysicalSize - size of physical datafield (i.e. database column)
| 
 | SRJRCFrames v0.1.296 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||