public abstract class AbstractLargeBinaryColumnMapping extends AbstractColumnMapping
column, mapping, storeMgr
Constructor and Description |
---|
AbstractLargeBinaryColumnMapping(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.
|
protected Object |
getObjectForBytes(byte[] bytes,
int param) |
String |
getString(ResultSet resultSet,
int exprIndex)
Accessor for String value when serialised.
|
protected void |
initialize()
Initialisation method, initialising the type info.
|
void |
setObject(PreparedStatement ps,
int param,
Object value)
Method to store a field into a "large varbinary" column.
|
void |
setString(PreparedStatement ps,
int exprIndex,
String value)
Cater for serialisation of Strings.
|
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getJDBCType, getLong, getShort, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, useDefaultWhenNull
public AbstractLargeBinaryColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping
- Java type mappingstoreMgr
- Store Managercol
- Columnprotected void initialize()
public void setObject(PreparedStatement ps, int param, Object value)
setObject
in interface ColumnMapping
setObject
in class AbstractColumnMapping
ps
- The PreparedStatementparam
- Parameter position in the statementvalue
- The value to storeprotected Object getObjectForBytes(byte[] bytes, int param)
public Object getObject(ResultSet rs, int param)
getObject
in interface ColumnMapping
getObject
in class AbstractColumnMapping
rs
- The ResultSetparam
- The parameter positionpublic void setString(PreparedStatement ps, int exprIndex, String value)
setString
in interface ColumnMapping
setString
in class AbstractColumnMapping
ps
- PreparedStatementexprIndex
- param indexesvalue
- The value of the Stringpublic String getString(ResultSet resultSet, int exprIndex)
getString
in interface ColumnMapping
getString
in class AbstractColumnMapping
resultSet
- ResultSetexprIndex
- param indexesCopyright © 2020. All rights reserved.