Class BigIntColumnMapping
java.lang.Object
org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
org.datanucleus.store.rdbms.mapping.column.BigIntColumnMapping
- All Implemented Interfaces:
ColumnMapping
Mapping of a Big Integer column.
-
Field Summary
Fields inherited from class AbstractColumnMapping
column, mapping, storeMgr -
Constructor Summary
ConstructorsConstructorDescriptionBigIntColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintObtains a value fromresultSetat position specified byexprIndex.intMethod to return the java.sql.Types type that this relates to.longObtains a value fromresultSetat position specified byexprIndex.Method to retrieve a Big int from a ResultSet.Obtains a value fromresultSetat position specified byexprIndex.private voidvoidsetInt(PreparedStatement ps, int param, int value) Sets avalueintopsat position specified byparamIndex.voidsetLong(PreparedStatement ps, int param, long value) Sets avalueintopsat position specified byparamIndex.voidsetObject(PreparedStatement ps, int param, Object value) Setter for a parameter in a PreparedStatementvoidsetString(PreparedStatement ps, int exprIndex, String value) Sets avalueintopsat position specified byparamIndex.Methods inherited from class AbstractColumnMapping
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getJavaTypeMapping, getShort, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setShort, useDefaultWhenNull
-
Constructor Details
-
BigIntColumnMapping
Constructor.- Parameters:
mapping- Java type mappingstoreMgr- Store Managercol- Column
-
-
Method Details
-
initialize
private void initialize() -
getJDBCType
public int getJDBCType()Description copied from class:AbstractColumnMappingMethod to return the java.sql.Types type that this relates to.- Specified by:
getJDBCTypein classAbstractColumnMapping- Returns:
- The JDBC "type"
-
setInt
Description copied from interface:ColumnMappingSets avalueintopsat position specified byparamIndex.- Specified by:
setIntin interfaceColumnMapping- Overrides:
setIntin classAbstractColumnMapping- Parameters:
ps- PreparedStatementparam- the position of the value in the statementvalue- the value
-
getInt
Description copied from interface:ColumnMappingObtains a value fromresultSetat position specified byexprIndex.- Specified by:
getIntin interfaceColumnMapping- Overrides:
getIntin classAbstractColumnMapping- Parameters:
rs- ResultSetparam- the position of the value in the result- Returns:
- the value
-
setLong
Description copied from interface:ColumnMappingSets avalueintopsat position specified byparamIndex.- Specified by:
setLongin interfaceColumnMapping- Overrides:
setLongin classAbstractColumnMapping- Parameters:
ps- PreparedStatementparam- the position of the value in the statementvalue- the value
-
getLong
Description copied from interface:ColumnMappingObtains a value fromresultSetat position specified byexprIndex.- Specified by:
getLongin interfaceColumnMapping- Overrides:
getLongin classAbstractColumnMapping- Parameters:
rs- ResultSetparam- the position of the value in the result- Returns:
- the value
-
setString
Description copied from interface:ColumnMappingSets avalueintopsat position specified byparamIndex.- Specified by:
setStringin interfaceColumnMapping- Overrides:
setStringin classAbstractColumnMapping- Parameters:
ps- PreparedStatementexprIndex- the position of the value in the statementvalue- the value
-
getString
Description copied from interface:ColumnMappingObtains a value fromresultSetat position specified byexprIndex.- Specified by:
getStringin interfaceColumnMapping- Overrides:
getStringin classAbstractColumnMapping- Parameters:
resultSet- ResultSetexprIndex- the position of the value in the result- Returns:
- the value
-
setObject
Setter for a parameter in a PreparedStatement- Specified by:
setObjectin interfaceColumnMapping- Overrides:
setObjectin classAbstractColumnMapping- Parameters:
ps- The PreparedStatementparam- The parameter number to setvalue- The value to set it to.
-
getObject
Method to retrieve a Big int from a ResultSet.- Specified by:
getObjectin interfaceColumnMapping- Overrides:
getObjectin classAbstractColumnMapping- Parameters:
rs- ResultSetparam- The Parameter number in the result set- Returns:
- The BIGINT object
-