Package cz.o2.proxima.direct.jdbc
Interface Converter<T>
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
RowAsJsonConverter
public interface Converter<T> extends java.io.Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.List<KeyValue<?>>
asKeyValues(EntityDescriptor entityDescriptor, java.util.List<AttributeDescriptor<?>> attributes, long stamp, java.sql.ResultSet result)
Convert single row ofresult
toKeyValues
.java.lang.String
getKeyFromResult(java.sql.ResultSet result)
default long
getTimestampFromResult(java.sql.ResultSet result)
default byte[]
getValueBytes(java.sql.ResultSet result, AttributeDescriptor<T> attributeDescriptor)
default void
setup()
-
-
-
Method Detail
-
setup
default void setup()
-
getKeyFromResult
java.lang.String getKeyFromResult(java.sql.ResultSet result)
-
getTimestampFromResult
default long getTimestampFromResult(java.sql.ResultSet result)
-
asKeyValues
default java.util.List<KeyValue<?>> asKeyValues(EntityDescriptor entityDescriptor, java.util.List<AttributeDescriptor<?>> attributes, long stamp, java.sql.ResultSet result)
- Parameters:
entityDescriptor
- entity descriprotattributes
- the attributes to search the result forstamp
- timestampresult
- result to convert single line from- Returns:
- converted KeyValues.
-
getValueBytes
default byte[] getValueBytes(java.sql.ResultSet result, AttributeDescriptor<T> attributeDescriptor)
-
-