org.datanucleus.store.rdbms.mapping
Class BitRDBMSMapping

java.lang.Object
  extended by org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
      extended by org.datanucleus.store.rdbms.mapping.RDBMSMapping
          extended by org.datanucleus.store.rdbms.mapping.BooleanRDBMSMapping
              extended by org.datanucleus.store.rdbms.mapping.BitRDBMSMapping
All Implemented Interfaces:
org.datanucleus.store.mapped.mapping.DatastoreMapping

public class BitRDBMSMapping
extends BooleanRDBMSMapping

Mapping of a BIT RDBMS type.


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
column, LOCALISER_RDBMS, storeMgr
 
Fields inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
LOCALISER, mapping
 
Constructor Summary
  BitRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.DatastoreField field)
          Constructor.
protected BitRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
           
 
Method Summary
 SQLTypeInfo getTypeInfo()
          Accessor for the (SQL) type info for this datastore type.
 boolean isBitBased()
          Accessor for whether the mapping is bit-based.
 
Methods inherited from class org.datanucleus.store.rdbms.mapping.BooleanRDBMSMapping
getBoolean, getObject, getString, isBooleanBased, setBoolean, setObject, setString
 
Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping
equals, failureMessage, failureMessage, getDatabaseAdapter, getDatastoreField, getInsertionInputParameter, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isNullable
 
Methods inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
failureMessage, getByte, getChar, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, isDecimalBased, isIntegerBased, isStringBased, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitRDBMSMapping

protected BitRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                          org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Parameters:
storeMgr - Store Manager
mapping - The java mapping

BitRDBMSMapping

public BitRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
                       org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                       org.datanucleus.store.mapped.DatastoreField field)
Constructor.

Parameters:
mapping - Java type mapping
storeMgr - Store Manager
field - Field to be mapped
Method Detail

isBitBased

public boolean isBitBased()
Accessor for whether the mapping is bit-based.

Specified by:
isBitBased in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
isBitBased in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
Returns:
Whether the mapping is bit based

getTypeInfo

public SQLTypeInfo getTypeInfo()
Description copied from class: RDBMSMapping
Accessor for the (SQL) type info for this datastore type.

Overrides:
getTypeInfo in class BooleanRDBMSMapping
Returns:
The type info


Copyright © 2012. All Rights Reserved.