org.openxava.converters
Class ArrayBytesPhotoConverter
java.lang.Object
org.openxava.converters.ArrayBytesPhotoConverter
- All Implemented Interfaces:
- java.io.Serializable, IConverter
public class ArrayBytesPhotoConverter
- extends java.lang.Object
- implements IConverter
A bytes array (byte []) that it's stored in DB as
a object of type org.openxava.util.Photo.
Util for save photos in hypersonic, that it allows neither byte,
nor Blob, but Object.
- Author:
- Javier Paniza
- See Also:
- Serialized Form
|
Method Summary |
java.lang.Object |
toDB(java.lang.Object o)
|
java.lang.Object |
toJava(java.lang.Object o)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayBytesPhotoConverter
public ArrayBytesPhotoConverter()
toDB
public java.lang.Object toDB(java.lang.Object o)
throws ConversionException
- Specified by:
toDB in interface IConverter
- Throws:
ConversionException
toJava
public java.lang.Object toJava(java.lang.Object o)
throws ConversionException
- Specified by:
toJava in interface IConverter
- Throws:
ConversionException