public class BooleanRDBMSMapping extends AbstractDatastoreMapping
column, mapping, storeMgr
Constructor and Description |
---|
BooleanRDBMSMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(ResultSet rs,
int param)
Obtains a value from
resultSet
at position specified by exprIndex . |
Object |
getObject(ResultSet rs,
int param)
Obtains a value from
resultSet
at position specified by exprIndex . |
String |
getString(ResultSet rs,
int param)
Accessor for the value for a boolean field stored as a String datastore type.
|
SQLTypeInfo |
getTypeInfo()
Accessor for the (SQL) type info for this datastore type.
|
boolean |
isBooleanBased()
Accessor for whether the mapping is boolean-based.
|
void |
setBoolean(PreparedStatement ps,
int param,
boolean value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setObject(PreparedStatement ps,
int param,
Object value)
Sets a
value into ps
at position specified by paramIndex . |
void |
setString(PreparedStatement ps,
int param,
String value)
Setter for booleans stored as String datastore types.
|
equals, failureMessage, failureMessage, failureMessage, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort
public BooleanRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping
- Java type mappingstoreMgr
- Store Managercol
- column to be mappedpublic boolean isBooleanBased()
isBooleanBased
in interface DatastoreMapping
isBooleanBased
in class AbstractDatastoreMapping
public SQLTypeInfo getTypeInfo()
AbstractDatastoreMapping
getTypeInfo
in class AbstractDatastoreMapping
public void setBoolean(PreparedStatement ps, int param, boolean value)
DatastoreMapping
value
into ps
at position specified by paramIndex
.setBoolean
in interface DatastoreMapping
setBoolean
in class AbstractDatastoreMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic boolean getBoolean(ResultSet rs, int param)
DatastoreMapping
resultSet
at position specified by exprIndex
.getBoolean
in interface DatastoreMapping
getBoolean
in class AbstractDatastoreMapping
rs
- ResultSetparam
- the position of the value in the resultpublic void setString(PreparedStatement ps, int param, String value)
setString
in interface DatastoreMapping
setString
in class AbstractDatastoreMapping
ps
- PreparedStatementparam
- Number of the fieldvalue
- Value of the booleanpublic String getString(ResultSet rs, int param)
getString
in interface DatastoreMapping
getString
in class AbstractDatastoreMapping
rs
- ResultSetparam
- number of the parameter.public void setObject(PreparedStatement ps, int param, Object value)
DatastoreMapping
value
into ps
at position specified by paramIndex
.setObject
in interface DatastoreMapping
setObject
in class AbstractDatastoreMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic Object getObject(ResultSet rs, int param)
DatastoreMapping
resultSet
at position specified by exprIndex
.getObject
in interface DatastoreMapping
getObject
in class AbstractDatastoreMapping
rs
- ResultSetparam
- the position of the value in the resultCopyright © 2015. All rights reserved.