|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.rdbms.mapping.RDBMSMapping
org.jpox.store.rdbms.mapping.ColumnMapping
org.jpox.store.rdbms.mapping.SmallIntRDBMSMapping
public class SmallIntRDBMSMapping
Mapping of a SMALLINT RDBMS type.
| Field Summary |
|---|
| Fields inherited from class org.jpox.store.rdbms.mapping.ColumnMapping |
|---|
column |
| Fields inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping |
|---|
LOCALISER, LOCALISER_STORE, mapping, storeMgr |
| Constructor Summary | |
|---|---|
|
SmallIntRDBMSMapping(JavaTypeMapping mapping,
StoreManager storeMgr,
DatastoreField field)
Constructor. |
protected |
SmallIntRDBMSMapping(StoreManager storeMgr,
JavaTypeMapping mapping)
Constructor. |
| Method Summary | |
|---|---|
boolean |
getBoolean(java.lang.Object rs,
int param)
Getter for when we are storing a boolean field as a SMALLINT. |
byte |
getByte(java.lang.Object rs,
int param)
Obtains a value from resultSet
at position specified by exprIndex. |
DatastoreField |
getDatastoreField()
Accessor for the datastore field being used. |
int |
getInt(java.lang.Object rs,
int param)
Obtains a value from resultSet
at position specified by exprIndex. |
java.lang.Object |
getObject(java.lang.Object rs,
int param)
Obtains a value from resultSet
at position specified by exprIndex. |
short |
getShort(java.lang.Object rs,
int param)
Obtains a value from resultSet
at position specified by exprIndex. |
TypeInfo |
getTypeInfo()
Accessor for type info |
void |
setBoolean(java.lang.Object ps,
int param,
boolean value)
Setter for when we are storing a boolean field as a SMALLINT. |
void |
setByte(java.lang.Object ps,
int param,
byte value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setInt(java.lang.Object ps,
int param,
int value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setObject(java.lang.Object ps,
int param,
java.lang.Object value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setShort(java.lang.Object ps,
int param,
short value)
Sets a value into preparedStatement
at position specified by paramIndex. |
| Methods inherited from class org.jpox.store.rdbms.mapping.ColumnMapping |
|---|
equals, getColumn, getInsertionInputParameter, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, isNullable |
| Methods inherited from class org.jpox.store.rdbms.mapping.RDBMSMapping |
|---|
failureMessage, getChar, getDatabaseAdapter, getDouble, getFloat, getJavaTypeMapping, getLong, getString, setChar, setDouble, setFloat, setLong, setString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SmallIntRDBMSMapping(StoreManager storeMgr,
JavaTypeMapping mapping)
storeMgr - Store Managermapping - Java type mapping
public SmallIntRDBMSMapping(JavaTypeMapping mapping,
StoreManager storeMgr,
DatastoreField field)
mapping - Java type mappingstoreMgr - Store Managerfield - Field to be mapped| Method Detail |
|---|
public TypeInfo getTypeInfo()
getTypeInfo in class ColumnMappingpublic DatastoreField getDatastoreField()
getDatastoreField in interface DatastoreMappinggetDatastoreField in class ColumnMapping
public void setBoolean(java.lang.Object ps,
int param,
boolean value)
setBoolean in interface DatastoreMappingsetBoolean in class RDBMSMappingps - Prepared Statementparam - Number of the parameter in the statementvalue - The boolean value
public boolean getBoolean(java.lang.Object rs,
int param)
getBoolean in interface DatastoreMappinggetBoolean in class RDBMSMappingrs - Result Set from which to get the booleanparam - Number of the parameter in the statement
public void setShort(java.lang.Object ps,
int param,
short value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setShort in interface DatastoreMappingsetShort in class RDBMSMappingps - a datastore object that executes statements in the databaseparam - the position of the value in the statementvalue - the value
public short getShort(java.lang.Object rs,
int param)
DatastoreMappingresultSet
at position specified by exprIndex.
getShort in interface DatastoreMappinggetShort in class RDBMSMappingrs - an object returned from the datastore with valuesparam - the position of the value in the result
public void setInt(java.lang.Object ps,
int param,
int value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setInt in interface DatastoreMappingsetInt in class RDBMSMappingps - a datastore object that executes statements in the databaseparam - the position of the value in the statementvalue - the value
public int getInt(java.lang.Object rs,
int param)
DatastoreMappingresultSet
at position specified by exprIndex.
getInt in interface DatastoreMappinggetInt in class RDBMSMappingrs - an object returned from the datastore with valuesparam - the position of the value in the result
public void setByte(java.lang.Object ps,
int param,
byte value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setByte in interface DatastoreMappingsetByte in class RDBMSMappingps - a datastore object that executes statements in the databaseparam - the position of the value in the statementvalue - the value
public byte getByte(java.lang.Object rs,
int param)
DatastoreMappingresultSet
at position specified by exprIndex.
getByte in interface DatastoreMappinggetByte in class RDBMSMappingrs - an object returned from the datastore with valuesparam - the position of the value in the result
public void setObject(java.lang.Object ps,
int param,
java.lang.Object value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setObject in interface DatastoreMappingsetObject in class RDBMSMappingps - a datastore object that executes statements in the databaseparam - the position of the value in the statementvalue - the value
public java.lang.Object getObject(java.lang.Object rs,
int param)
DatastoreMappingresultSet
at position specified by exprIndex.
getObject in interface DatastoreMappinggetObject in class RDBMSMappingrs - an object returned from the datastore with valuesparam - the position of the value in the result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||