org.jpox.store.rdbms.mapping
Class IntegerRDBMSMapping
java.lang.Object
org.jpox.store.rdbms.mapping.RDBMSMapping
org.jpox.store.rdbms.mapping.ColumnMapping
org.jpox.store.rdbms.mapping.IntegerRDBMSMapping
- All Implemented Interfaces:
- org.jpox.store.mapped.mapping.DatastoreMapping
public class IntegerRDBMSMapping
- extends ColumnMapping
Mapping of a INTEGER RDBMS type.
- Version:
- $Revision: 1.22 $
|
Constructor Summary |
|
IntegerRDBMSMapping(org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.MappedStoreManager storeMgr,
org.jpox.store.mapped.DatastoreField field)
Constructor. |
protected |
IntegerRDBMSMapping(org.jpox.store.mapped.MappedStoreManager storeMgr,
org.jpox.store.mapped.mapping.JavaTypeMapping mapping)
|
|
Method Summary |
char |
getChar(java.lang.Object rs,
int param)
|
int |
getInt(java.lang.Object rs,
int param)
|
long |
getLong(java.lang.Object rs,
int param)
|
java.lang.Object |
getObject(java.lang.Object rs,
int param)
|
TypeInfo |
getTypeInfo()
Returns the TypeInfo (JDBC SQL type) for columns. |
boolean |
isIntegerBased()
Accessor for whether the mapping is integer-based. |
void |
setChar(java.lang.Object ps,
int param,
char value)
|
void |
setInt(java.lang.Object ps,
int param,
int value)
|
void |
setLong(java.lang.Object ps,
int param,
long value)
|
void |
setObject(java.lang.Object ps,
int param,
java.lang.Object value)
|
| Methods inherited from class org.jpox.store.rdbms.mapping.ColumnMapping |
equals, getColumn, getDatastoreField, getInsertionInputParameter, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, isBitBased, isBooleanBased, isDecimalBased, isNullable, isStringBased |
| Methods inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping |
failureMessage, getBoolean, getByte, getDatabaseAdapter, getDouble, getFloat, getJavaTypeMapping, getShort, getString, insertValuesOnInsert, setBoolean, setByte, setDouble, setFloat, setShort, setString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
IntegerRDBMSMapping
protected IntegerRDBMSMapping(org.jpox.store.mapped.MappedStoreManager storeMgr,
org.jpox.store.mapped.mapping.JavaTypeMapping mapping)
- Parameters:
storeMgr - Store Managermapping - The java type mapping
IntegerRDBMSMapping
public IntegerRDBMSMapping(org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.MappedStoreManager storeMgr,
org.jpox.store.mapped.DatastoreField field)
- Constructor.
- Parameters:
mapping - Java type mappingstoreMgr - Store Managerfield - Field to be mapped
isIntegerBased
public boolean isIntegerBased()
- Accessor for whether the mapping is integer-based.
- Specified by:
isIntegerBased in interface org.jpox.store.mapped.mapping.DatastoreMapping- Overrides:
isIntegerBased in class ColumnMapping
- Returns:
- Whether the mapping is integer based
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
- Specified by:
getTypeInfo in class ColumnMapping
- Returns:
- The TypeInfo
setChar
public void setChar(java.lang.Object ps,
int param,
char value)
- Specified by:
setChar in interface org.jpox.store.mapped.mapping.DatastoreMapping- Overrides:
setChar in class RDBMSMapping
getChar
public char getChar(java.lang.Object rs,
int param)
- Specified by:
getChar in interface org.jpox.store.mapped.mapping.DatastoreMapping- Overrides:
getChar in class RDBMSMapping
setInt
public void setInt(java.lang.Object ps,
int param,
int value)
- Specified by:
setInt in interface org.jpox.store.mapped.mapping.DatastoreMapping- Overrides:
setInt in class RDBMSMapping
getInt
public int getInt(java.lang.Object rs,
int param)
- Specified by:
getInt in interface org.jpox.store.mapped.mapping.DatastoreMapping- Overrides:
getInt in class RDBMSMapping
setLong
public void setLong(java.lang.Object ps,
int param,
long value)
- Specified by:
setLong in interface org.jpox.store.mapped.mapping.DatastoreMapping- Overrides:
setLong in class RDBMSMapping
getLong
public long getLong(java.lang.Object rs,
int param)
- Specified by:
getLong in interface org.jpox.store.mapped.mapping.DatastoreMapping- Overrides:
getLong in class RDBMSMapping
setObject
public void setObject(java.lang.Object ps,
int param,
java.lang.Object value)
- Specified by:
setObject in interface org.jpox.store.mapped.mapping.DatastoreMapping- Overrides:
setObject in class RDBMSMapping
getObject
public java.lang.Object getObject(java.lang.Object rs,
int param)
- Specified by:
getObject in interface org.jpox.store.mapped.mapping.DatastoreMapping- Overrides:
getObject in class RDBMSMapping
Copyright © -2008 . All Rights Reserved.