Class BitColumnMapping
java.lang.Object
org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
org.datanucleus.store.rdbms.mapping.column.BooleanColumnMapping
org.datanucleus.store.rdbms.mapping.column.BitColumnMapping
- All Implemented Interfaces:
ColumnMapping
Mapping of a BIT column.
-
Field Summary
Fields inherited from class AbstractColumnMapping
column, mapping, storeMgr -
Constructor Summary
ConstructorsConstructorDescriptionBitColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintMethod to return the java.sql.Types type that this relates to.booleanAccessor for whether the mapping is bit-based.Methods inherited from class BooleanColumnMapping
getBoolean, getObject, getString, isBooleanBased, setBoolean, setObject, setStringMethods inherited from class AbstractColumnMapping
equals, failureMessage, failureMessage, failureMessage, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isDecimalBased, isIntegerBased, isNullable, isStringBased, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, useDefaultWhenNull
-
Constructor Details
-
BitColumnMapping
Constructor.- Parameters:
mapping- Java type mappingstoreMgr- Store Managercol- Column
-
-
Method Details
-
isBitBased
public boolean isBitBased()Accessor for whether the mapping is bit-based.- Specified by:
isBitBasedin interfaceColumnMapping- Overrides:
isBitBasedin classAbstractColumnMapping- Returns:
- Whether the mapping is bit based
-
getJDBCType
public int getJDBCType()Description copied from class:AbstractColumnMappingMethod to return the java.sql.Types type that this relates to.- Overrides:
getJDBCTypein classBooleanColumnMapping- Returns:
- The JDBC "type"
-