public class BlobRDBMSMapping extends AbstractLargeBinaryRDBMSMapping
column, mapping, storeMgr
Constructor and Description |
---|
BlobRDBMSMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getObject(ResultSet rs,
int param)
Method to retrieve the object from the large binary column.
|
String |
getString(ResultSet rs,
int param)
Accessor for String value when serialised.
|
SQLTypeInfo |
getTypeInfo()
Accessor for the RDBMS BLOB type being represented.
|
void |
setObject(PreparedStatement ps,
int param,
Object value)
Method to store a field into a "large varbinary" column.
|
void |
setString(PreparedStatement ps,
int param,
String value)
Cater for serialisation of Strings.
|
getObjectForBytes, initialize
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort
public BlobRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping
- Java type mappingstoreMgr
- Store Managercol
- Columnpublic SQLTypeInfo getTypeInfo()
getTypeInfo
in class AbstractDatastoreMapping
public Object getObject(ResultSet rs, int param)
AbstractLargeBinaryRDBMSMapping
getObject
in interface DatastoreMapping
getObject
in class AbstractLargeBinaryRDBMSMapping
rs
- The ResultSetparam
- The parameter positionpublic void setObject(PreparedStatement ps, int param, Object value)
AbstractLargeBinaryRDBMSMapping
setObject
in interface DatastoreMapping
setObject
in class AbstractLargeBinaryRDBMSMapping
ps
- The PreparedStatementparam
- Parameter position in the statementvalue
- The value to storepublic void setString(PreparedStatement ps, int param, String value)
AbstractLargeBinaryRDBMSMapping
setString
in interface DatastoreMapping
setString
in class AbstractLargeBinaryRDBMSMapping
ps
- PreparedStatementparam
- param indexesvalue
- The value of the Stringpublic String getString(ResultSet rs, int param)
AbstractLargeBinaryRDBMSMapping
getString
in interface DatastoreMapping
getString
in class AbstractLargeBinaryRDBMSMapping
rs
- ResultSetparam
- param indexesCopyright © 2015. All rights reserved.