public interface ColumnMapping
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
byte |
getByte(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
char |
getChar(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
Column |
getColumn()
Accessor for the column that this represents.
|
double |
getDouble(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
float |
getFloat(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
String |
getInsertionInputParameter()
Accessor for the string to put in any retrieval datastore statement for this field.
|
int |
getInt(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
JavaTypeMapping |
getJavaTypeMapping()
The mapping for the java type that this column mapping is used by.
|
long |
getLong(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
Object |
getObject(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
short |
getShort(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
String |
getString(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
String |
getUpdateInputParameter()
Accessor for the string to put in any update datastore statements for this field.
|
boolean |
insertValuesOnInsert()
Accessor for whether this mapping requires values inserting on an INSERT.
|
boolean |
isBitBased()
Accessor for whether the mapping is bit-based.
|
boolean |
isBooleanBased()
Accessor for whether the mapping is boolean-based.
|
boolean |
isDecimalBased()
Accessor for whether the mapping is decimal-based.
|
boolean |
isIntegerBased()
Accessor for whether the mapping is integer-based.
|
boolean |
isNullable()
Whether the column is nullable.
|
boolean |
isStringBased()
Accessor for whether the mapping is string-based.
|
void |
setBoolean(PreparedStatement ps,
int paramIndex,
boolean value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setByte(PreparedStatement ps,
int paramIndex,
byte value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setChar(PreparedStatement ps,
int paramIndex,
char value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setDouble(PreparedStatement ps,
int paramIndex,
double value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setFloat(PreparedStatement ps,
int paramIndex,
float value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setInt(PreparedStatement ps,
int paramIndex,
int value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setLong(PreparedStatement ps,
int paramIndex,
long value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setObject(PreparedStatement ps,
int paramIndex,
Object value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setShort(PreparedStatement ps,
int paramIndex,
short value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setString(PreparedStatement ps,
int paramIndex,
String value)
Sets a
value into ps
at position specified by paramIndex . |
boolean isNullable()
Column getColumn()
JavaTypeMapping getJavaTypeMapping()
boolean insertValuesOnInsert()
String getInsertionInputParameter()
String getUpdateInputParameter()
boolean isDecimalBased()
boolean isIntegerBased()
boolean isStringBased()
boolean isBitBased()
boolean isBooleanBased()
void setBoolean(PreparedStatement ps, int paramIndex, boolean value)
value
into ps
at position specified by paramIndex
.ps
- PreparedStatementparamIndex
- the position of the value in the statementvalue
- the valuevoid setChar(PreparedStatement ps, int paramIndex, char value)
value
into ps
at position specified by paramIndex
.ps
- PreparedStatementparamIndex
- the position of the value in the statementvalue
- the valuevoid setByte(PreparedStatement ps, int paramIndex, byte value)
value
into ps
at position specified by paramIndex
.ps
- PreparedStatementparamIndex
- the position of the value in the statementvalue
- the valuevoid setShort(PreparedStatement ps, int paramIndex, short value)
value
into ps
at position specified by paramIndex
.ps
- PreparedStatementparamIndex
- the position of the value in the statementvalue
- the valuevoid setInt(PreparedStatement ps, int paramIndex, int value)
value
into ps
at position specified by paramIndex
.ps
- PreparedStatementparamIndex
- the position of the value in the statementvalue
- the valuevoid setLong(PreparedStatement ps, int paramIndex, long value)
value
into ps
at position specified by paramIndex
.ps
- PreparedStatementparamIndex
- the position of the value in the statementvalue
- the valuevoid setFloat(PreparedStatement ps, int paramIndex, float value)
value
into ps
at position specified by paramIndex
.ps
- PreparedStatementparamIndex
- the position of the value in the statementvalue
- the valuevoid setDouble(PreparedStatement ps, int paramIndex, double value)
value
into ps
at position specified by paramIndex
.ps
- PreparedStatementparamIndex
- the position of the value in the statementvalue
- the valuevoid setString(PreparedStatement ps, int paramIndex, String value)
value
into ps
at position specified by paramIndex
.ps
- PreparedStatementparamIndex
- the position of the value in the statementvalue
- the valuevoid setObject(PreparedStatement ps, int paramIndex, Object value)
value
into ps
at position specified by paramIndex
.ps
- PreparedStatementparamIndex
- the position of the value in the statementvalue
- the valueboolean getBoolean(ResultSet resultSet, int exprIndex)
resultSet
at position specified by exprIndex
.resultSet
- ResultSetexprIndex
- the position of the value in the resultchar getChar(ResultSet resultSet, int exprIndex)
resultSet
at position specified by exprIndex
.resultSet
- ResultSetexprIndex
- the position of the value in the resultbyte getByte(ResultSet resultSet, int exprIndex)
resultSet
at position specified by exprIndex
.resultSet
- ResultSetexprIndex
- the position of the value in the resultshort getShort(ResultSet resultSet, int exprIndex)
resultSet
at position specified by exprIndex
.resultSet
- ResultSetexprIndex
- the position of the value in the resultint getInt(ResultSet resultSet, int exprIndex)
resultSet
at position specified by exprIndex
.resultSet
- ResultSetexprIndex
- the position of the value in the resultlong getLong(ResultSet resultSet, int exprIndex)
resultSet
at position specified by exprIndex
.resultSet
- ResultSetexprIndex
- the position of the value in the resultfloat getFloat(ResultSet resultSet, int exprIndex)
resultSet
at position specified by exprIndex
.resultSet
- ResultSetexprIndex
- the position of the value in the resultdouble getDouble(ResultSet resultSet, int exprIndex)
resultSet
at position specified by exprIndex
.resultSet
- ResultSetexprIndex
- the position of the value in the resultString getString(ResultSet resultSet, int exprIndex)
resultSet
at position specified by exprIndex
.resultSet
- ResultSetexprIndex
- the position of the value in the resultCopyright © 2020. All rights reserved.