|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the instance that is stored/read from the database columnpublic static interface DatabaseStorage.ColumnConvertor<T>
Provides a conversion between database column data and object instances.
Method Summary | |
---|---|
T |
convertFromColumnValue(T value,
java.lang.Object column)
Returns an instance of object from the database column value. |
java.lang.Object |
convertToColumnValue(T instance)
Returns a value that can be stored in a database column for the given instance. |
boolean |
isColumnCompatible(IndexComparator<?,?> indexComparator)
Returns true if the instance created by this convertor is compatible with the given index comparator. |
Method Detail |
---|
java.lang.Object convertToColumnValue(T instance) throws BucketStorageException
instance
- the object instance from which to create a database value
BucketStorageException
- if the value cannot be convertedT convertFromColumnValue(T value, java.lang.Object column) throws BucketStorageException
value
, which can
be either replaced by a new value, modified by this method or left intact.
value
- the instance created by previous column convertorscolumn
- the value of the column to convert
BucketStorageException
- if the value cannot be convertedboolean isColumnCompatible(IndexComparator<?,?> indexComparator)
indexComparator
- the index comparator that is checked for compatibility
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |