R
- class type for a row objectpublic interface ColumnTranslator<R>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColumnName()
Gets the SQL column name.
|
java.lang.reflect.Field |
getField()
Gets the Java field that participates in translation.
|
boolean |
isIdentity()
Gets the identity status.
|
boolean |
isReadOnly()
Gets the readonly status.
|
void |
read(java.sql.ResultSet resultSet,
int columnIndex,
R row)
Reads column value from result set and sets in row object.
|
void |
write(java.sql.PreparedStatement preparedStatement,
int parameterIndex,
R row)
Gets column value from row and sets as parameter in prepared statement.
|
java.lang.reflect.Field getField()
java.lang.String getColumnName()
boolean isIdentity()
boolean isReadOnly()
void read(java.sql.ResultSet resultSet, int columnIndex, R row) throws java.lang.Exception
resultSet
- read column from this result setcolumnIndex
- read value at this column index from result setrow
- set value in this rowjava.lang.Exception
- if errorvoid write(java.sql.PreparedStatement preparedStatement, int parameterIndex, R row) throws java.lang.Exception
preparedStatement
- set column value as parameter in this statementparameterIndex
- set parameter at this indexrow
- get value from this rowjava.lang.Exception
- if error