K
- the type of the key arguments of the comparisonT
- the type of the instance that is stored/read from the database columnpublic static interface DatabaseStorage.SearchableColumnConvertor<K,T> extends DatabaseStorage.ColumnConvertor<T>
DatabaseStorage.ColumnConvertor
that allows a direct searching
by the column value in the database. This usually means that there is
a unique index on that column.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertKeyToColumnValue(K key)
Returns a column value that can be used to search inside the database.
|
boolean |
isColumnCompatible(IndexComparator<?,? super T> indexComparator)
Returns true if the instance created by this convertor is compatible
with the given index comparator.
|
convertFromColumnValue, convertToColumnValue, isConvertFromColumnUsed, isConvertToColumnUsed
boolean isColumnCompatible(IndexComparator<?,? super T> indexComparator)
indexComparator
- the index comparator that is checked for compatibilityjava.lang.Object convertKeyToColumnValue(K key)
key
- the key from which to create a database value