|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.mapping.RDBMSMapping
org.datanucleus.store.rdbms.mapping.CharRDBMSMapping
public class CharRDBMSMapping
Mapping of a CHAR RDBMS type.
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping |
|---|
column, LOCALISER, LOCALISER_STORE, mapping, storeMgr |
| Constructor Summary | |
|---|---|
|
CharRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
Constructor. |
protected |
CharRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Constructor. |
| Method Summary | |
|---|---|
boolean |
getBoolean(java.lang.Object rs,
int param)
Method to extract a boolean from the ResultSet at the specified position |
char |
getChar(java.lang.Object rs,
int param)
Method to extract a character from the ResultSet at the specified position |
java.text.SimpleDateFormat |
getJavaUtilDateFormat()
Get a Format object to handle dates. |
java.lang.Object |
getObject(java.lang.Object rs,
int param)
Method to extract an object from the ResultSet at the specified position |
java.lang.String |
getString(java.lang.Object rs,
int param)
Method to extract a String from the ResultSet at the specified position |
SQLTypeInfo |
getTypeInfo()
Accessor for the (SQL) type info for this datastore type. |
protected void |
initialize()
Method to initialise the column mapping. |
boolean |
isStringBased()
Accessor for whether the mapping is string-based. |
void |
setBoolean(java.lang.Object ps,
int param,
boolean value)
Method to set a boolean at the specified position in the JDBC PreparedStatement. |
void |
setChar(java.lang.Object ps,
int param,
char value)
Method to set a character at the specified position in the JDBC PreparedStatement. |
void |
setObject(java.lang.Object ps,
int param,
java.lang.Object value)
Method to set an object at the specified position in the JDBC PreparedStatement. |
void |
setString(java.lang.Object ps,
int param,
java.lang.String value)
Method to set a String at the specified position in the JDBC PreparedStatement. |
| Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping |
|---|
equals, failureMessage, getByte, getColumn, getDatabaseAdapter, getDatastoreField, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, setByte, setDouble, setFloat, setInt, setLong, setShort |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CharRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
storeMgr - Store Managermapping - Java type mapping
public CharRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
mapping - Java type mappingstoreMgr - Store Managerfield - Field to be mapped| Method Detail |
|---|
protected void initialize()
public boolean isStringBased()
isStringBased in interface org.datanucleus.store.mapped.mapping.DatastoreMappingisStringBased in class RDBMSMappingpublic SQLTypeInfo getTypeInfo()
RDBMSMapping
getTypeInfo in class RDBMSMapping
public void setChar(java.lang.Object ps,
int param,
char value)
setChar in interface org.datanucleus.store.mapped.mapping.DatastoreMappingsetChar in class RDBMSMappingps - The PreparedStatementparam - Parameter positionvalue - The value to set
public char getChar(java.lang.Object rs,
int param)
getChar in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetChar in class RDBMSMappingrs - The Result Setparam - The parameter position
public void setString(java.lang.Object ps,
int param,
java.lang.String value)
setString in interface org.datanucleus.store.mapped.mapping.DatastoreMappingsetString in class RDBMSMappingps - The PreparedStatementparam - Parameter positionvalue - The value to set
public java.lang.String getString(java.lang.Object rs,
int param)
getString in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetString in class RDBMSMappingrs - The Result Setparam - The parameter position
public void setBoolean(java.lang.Object ps,
int param,
boolean value)
setBoolean in interface org.datanucleus.store.mapped.mapping.DatastoreMappingsetBoolean in class RDBMSMappingps - The PreparedStatementparam - Parameter positionvalue - The value to set
public boolean getBoolean(java.lang.Object rs,
int param)
getBoolean in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetBoolean in class RDBMSMappingrs - The Result Setparam - The parameter position
public void setObject(java.lang.Object ps,
int param,
java.lang.Object value)
setObject in interface org.datanucleus.store.mapped.mapping.DatastoreMappingsetObject in class RDBMSMappingps - The PreparedStatementparam - Parameter positionvalue - The value to set
public java.lang.Object getObject(java.lang.Object rs,
int param)
getObject in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetObject in class RDBMSMappingrs - The Result Setparam - The parameter position
public java.text.SimpleDateFormat getJavaUtilDateFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||