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. |
int |
getJDBCType()
Method to return the java.sql.Types type that this relates to.
|
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.
|
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, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setByte, setChar, setDouble, setFloat, setInt, setLong, setShortpublic BooleanRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping - Java type mappingstoreMgr - Store Managercol - column to be mappedpublic boolean isBooleanBased()
isBooleanBased in interface DatastoreMappingisBooleanBased in class AbstractDatastoreMappingpublic int getJDBCType()
AbstractDatastoreMappinggetJDBCType in class AbstractDatastoreMappingpublic void setBoolean(PreparedStatement ps, int param, boolean value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setBoolean in interface DatastoreMappingsetBoolean in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic boolean getBoolean(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getBoolean in interface DatastoreMappinggetBoolean in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultpublic void setString(PreparedStatement ps, int param, String value)
setString in interface DatastoreMappingsetString in class AbstractDatastoreMappingps - PreparedStatementparam - Number of the fieldvalue - Value of the booleanpublic String getString(ResultSet rs, int param)
getString in interface DatastoreMappinggetString in class AbstractDatastoreMappingrs - ResultSetparam - number of the parameter.public void setObject(PreparedStatement ps, int param, Object value)
DatastoreMappingvalue into ps
at position specified by paramIndex.setObject in interface DatastoreMappingsetObject in class AbstractDatastoreMappingps - PreparedStatementparam - the position of the value in the statementvalue - the valuepublic Object getObject(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getObject in interface DatastoreMappinggetObject in class AbstractDatastoreMappingrs - ResultSetparam - the position of the value in the resultCopyright © 2017. All rights reserved.