@FunctionalInterface
public interface PropertyReader
| Modifier and Type | Method and Description |
|---|---|
default int |
propertySize()
Get the size (number of columns in the result-set) required by this property.
|
int |
readProperty(java.sql.ResultSet rs,
int rsOffset,
java.lang.Object[] data,
int propIndex)
Reads data from one or more positions from the
ResultSet, eventually converting it
to a proper type and storing the result directly to the Record's data structure. |
int readProperty(java.sql.ResultSet rs,
int rsOffset,
java.lang.Object[] data,
int propIndex)
throws java.sql.SQLException
ResultSet, eventually converting it
to a proper type and storing the result directly to the Record's data structure.rs - The ResultSet to read from.rsOffset - The index/position in current row of rs to start reading.data - The destination. Ie. the record's data field member.propIndex - The destination offset. Ie. the property index.java.sql.SQLException - when an error is encountered while setting the value.default int propertySize()