org.jpox.store.rdbms.mapping
Class BitRDBMSMapping
java.lang.Object
org.jpox.store.rdbms.mapping.RDBMSMapping
org.jpox.store.rdbms.mapping.ColumnMapping
org.jpox.store.rdbms.mapping.BooleanRDBMSMapping
org.jpox.store.rdbms.mapping.BitRDBMSMapping
- All Implemented Interfaces:
- DatastoreMapping
- public class BitRDBMSMapping
- extends BooleanRDBMSMapping
Mapping of a BIT RDBMS type.
- Version:
- $Revision: 1.5 $
Methods inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping |
failureMessage, getByte, getChar, getDatabaseAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
BitRDBMSMapping
protected BitRDBMSMapping(StoreManager storeMgr,
JavaTypeMapping mapping)
- Parameters:
storeMgr
- Store Managermapping
- The java mapping
BitRDBMSMapping
public BitRDBMSMapping(JavaTypeMapping mapping,
StoreManager storeMgr,
DatastoreField field)
- Constructor.
- Parameters:
mapping
- Java type mappingstoreMgr
- Store Managerfield
- Field to be mapped
getTypeInfo
public TypeInfo getTypeInfo()
- Description copied from class:
ColumnMapping
- Returns the TypeInfo (JDBC SQL type) for columns.
This method is capable of returning only one TypeInfo (SQL Type).
In that way, it seems adequate for using in 1 column Mapping or many
columns that share the same TypeInfo.
However adequate in most of uses, Mappings using two or more columns
should overwrite the initTypeInfo method to appropriate set differents
TypeInfo (SQL type) for all the columns
- Overrides:
getTypeInfo
in class BooleanRDBMSMapping
Copyright © -2007 . All Rights Reserved.