public class LongVarcharColumnMapping extends AbstractColumnMapping
column, mapping, storeMgr
Constructor and Description |
---|
LongVarcharColumnMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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)
Obtains a value from
resultSet
at position specified by exprIndex . |
boolean |
isStringBased()
Accessor for whether the mapping is string-based.
|
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)
Sets a
value into ps
at position specified by paramIndex . |
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, useDefaultWhenNull
public LongVarcharColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping
- Java type mappingstoreMgr
- Store Managercol
- Column to be mappedpublic boolean isStringBased()
isStringBased
in interface ColumnMapping
isStringBased
in class AbstractColumnMapping
public int getJDBCType()
AbstractColumnMapping
getJDBCType
in class AbstractColumnMapping
public void setString(PreparedStatement ps, int param, String value)
ColumnMapping
value
into ps
at position specified by paramIndex
.setString
in interface ColumnMapping
setString
in class AbstractColumnMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic String getString(ResultSet rs, int param)
ColumnMapping
resultSet
at position specified by exprIndex
.getString
in interface ColumnMapping
getString
in class AbstractColumnMapping
rs
- ResultSetparam
- the position of the value in the resultpublic void setObject(PreparedStatement ps, int param, Object value)
ColumnMapping
value
into ps
at position specified by paramIndex
.setObject
in interface ColumnMapping
setObject
in class AbstractColumnMapping
ps
- PreparedStatementparam
- the position of the value in the statementvalue
- the valuepublic Object getObject(ResultSet rs, int param)
ColumnMapping
resultSet
at position specified by exprIndex
.getObject
in interface ColumnMapping
getObject
in class AbstractColumnMapping
rs
- ResultSetparam
- the position of the value in the resultCopyright © 2020. All rights reserved.