| 
 | 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.FileConverter
public class FileConverter
converts files into persistence representation and back from persistence. Files in persistence are always represented by *nix-paths, whereas the applications representation may vary depending on the operating system.
| Field Summary | |
|---|---|
| protected static SysInfo | sysInfo | 
| Constructor Summary | |
|---|---|
| FileConverter() | |
| 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 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 | 
| Field Detail | 
|---|
protected static SysInfo sysInfo
| Constructor Detail | 
|---|
public FileConverter()
| 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)
| 
 | SRJRCFrames v0.1.296 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||