public class CharRDBMSMapping extends AbstractDatastoreMapping
column, mapping, storeMgr
Constructor and Description |
---|
CharRDBMSMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(ResultSet rs,
int param)
Method to extract a boolean from the ResultSet at the specified position
|
char |
getChar(ResultSet rs,
int param)
Method to extract a character from the ResultSet at the specified position
|
SimpleDateFormat |
getJavaUtilDateFormat()
Get a Format object to handle java.util.Date.
|
int |
getJDBCType()
Method to return the java.sql.Types type that this relates to.
|
Object |
getObject(ResultSet rs,
int param)
Method to extract an object from the ResultSet at the specified position
|
String |
getString(ResultSet rs,
int param)
Method to extract a String from the ResultSet at the specified position
|
protected void |
initialize()
Method to initialise the column mapping.
|
boolean |
isStringBased()
Accessor for whether the mapping is string-based.
|
void |
setBoolean(PreparedStatement ps,
int param,
boolean value)
Method to set a boolean at the specified position in the JDBC PreparedStatement.
|
void |
setChar(PreparedStatement ps,
int param,
char value)
Method to set a character at the specified position in the JDBC PreparedStatement.
|
void |
setObject(PreparedStatement ps,
int param,
Object value)
Method to set an object at the specified position in the JDBC PreparedStatement.
|
void |
setString(PreparedStatement ps,
int param,
String value)
Method to set a String at the specified position in the JDBC PreparedStatement.
|
equals, failureMessage, failureMessage, failureMessage, getByte, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, setByte, setDouble, setFloat, setInt, setLong, setShort
public CharRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping
- Java type mappingstoreMgr
- Store Managercol
- column to be mappedprotected void initialize()
public boolean isStringBased()
isStringBased
in interface DatastoreMapping
isStringBased
in class AbstractDatastoreMapping
public int getJDBCType()
AbstractDatastoreMapping
getJDBCType
in class AbstractDatastoreMapping
public void setChar(PreparedStatement ps, int param, char value)
setChar
in interface DatastoreMapping
setChar
in class AbstractDatastoreMapping
ps
- The PreparedStatementparam
- Parameter positionvalue
- The value to setpublic char getChar(ResultSet rs, int param)
getChar
in interface DatastoreMapping
getChar
in class AbstractDatastoreMapping
rs
- The Result Setparam
- The parameter positionpublic void setString(PreparedStatement ps, int param, String value)
setString
in interface DatastoreMapping
setString
in class AbstractDatastoreMapping
ps
- The PreparedStatementparam
- Parameter positionvalue
- The value to setpublic String getString(ResultSet rs, int param)
getString
in interface DatastoreMapping
getString
in class AbstractDatastoreMapping
rs
- The Result Setparam
- The parameter positionpublic void setBoolean(PreparedStatement ps, int param, boolean value)
setBoolean
in interface DatastoreMapping
setBoolean
in class AbstractDatastoreMapping
ps
- The PreparedStatementparam
- Parameter positionvalue
- The value to setpublic boolean getBoolean(ResultSet rs, int param)
getBoolean
in interface DatastoreMapping
getBoolean
in class AbstractDatastoreMapping
rs
- The Result Setparam
- The parameter positionpublic void setObject(PreparedStatement ps, int param, Object value)
setObject
in interface DatastoreMapping
setObject
in class AbstractDatastoreMapping
ps
- The PreparedStatementparam
- Parameter positionvalue
- The value to setpublic Object getObject(ResultSet rs, int param)
getObject
in interface DatastoreMapping
getObject
in class AbstractDatastoreMapping
rs
- The Result Setparam
- The parameter positionpublic SimpleDateFormat getJavaUtilDateFormat()
Copyright © 2017. All rights reserved.