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 org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
column, mapping, storeMgr
-
Constructor Summary
ConstructorsConstructorDescriptionBitColumnMapping
(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Method to return the java.sql.Types type that this relates to.boolean
Accessor for whether the mapping is bit-based.Methods inherited from class org.datanucleus.store.rdbms.mapping.column.BooleanColumnMapping
getBoolean, getObject, getString, isBooleanBased, setBoolean, setObject, setString
Methods inherited from class org.datanucleus.store.rdbms.mapping.column.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:
isBitBased
in interfaceColumnMapping
- Overrides:
isBitBased
in classAbstractColumnMapping
- Returns:
- Whether the mapping is bit based
-
getJDBCType
public int getJDBCType()Description copied from class:AbstractColumnMapping
Method to return the java.sql.Types type that this relates to.- Overrides:
getJDBCType
in classBooleanColumnMapping
- Returns:
- The JDBC "type"
-