|
||||||||||
| 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.IntegerRDBMSMapping
public class IntegerRDBMSMapping
Mapping of a INTEGER 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 | |
|---|---|
|
IntegerRDBMSMapping(JavaTypeMapping mapping,
StoreManager storeMgr,
DatastoreField field)
Constructor. |
protected |
IntegerRDBMSMapping(StoreManager storeMgr,
JavaTypeMapping mapping)
|
| Method Summary | |
|---|---|
char |
getChar(java.lang.Object rs,
int param)
Obtains a value from resultSet
at position specified by exprIndex. |
DatastoreField |
getDatastoreField()
The datastore field mapped |
int |
getInt(java.lang.Object rs,
int param)
Obtains a value from resultSet
at position specified by exprIndex. |
long |
getLong(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. |
TypeInfo |
getTypeInfo()
Returns the TypeInfo (JDBC SQL type) for columns. |
void |
setChar(java.lang.Object ps,
int param,
char 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 |
setLong(java.lang.Object ps,
int param,
long 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. |
| 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, getBoolean, getByte, getDatabaseAdapter, getDouble, getFloat, getJavaTypeMapping, getShort, getString, setBoolean, setByte, setDouble, setFloat, setShort, setString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected IntegerRDBMSMapping(StoreManager storeMgr,
JavaTypeMapping mapping)
storeMgr - Store Managermapping - The java type mapping
public IntegerRDBMSMapping(JavaTypeMapping mapping,
StoreManager storeMgr,
DatastoreField field)
mapping - Java type mappingstoreMgr - Store Managerfield - Field to be mapped| Method Detail |
|---|
public TypeInfo getTypeInfo()
ColumnMapping
getTypeInfo in class ColumnMappingpublic DatastoreField getDatastoreField()
DatastoreMapping
getDatastoreField in interface DatastoreMappinggetDatastoreField in class ColumnMapping
public void setChar(java.lang.Object ps,
int param,
char value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setChar in interface DatastoreMappingsetChar in class RDBMSMappingps - a datastore object that executes statements in the databaseparam - the position of the value in the statementvalue - the value
public char getChar(java.lang.Object rs,
int param)
DatastoreMappingresultSet
at position specified by exprIndex.
getChar in interface DatastoreMappinggetChar 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 setLong(java.lang.Object ps,
int param,
long value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setLong in interface DatastoreMappingsetLong in class RDBMSMappingps - a datastore object that executes statements in the databaseparam - the position of the value in the statementvalue - the value
public long getLong(java.lang.Object rs,
int param)
DatastoreMappingresultSet
at position specified by exprIndex.
getLong in interface DatastoreMappinggetLong 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 | |||||||||