|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
org.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_RDBMS, storeMgr |
| Fields inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping |
|---|
LOCALISER, mapping |
| 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(Object rs,
int param)
Method to extract a boolean from the ResultSet at the specified position |
char |
getChar(Object rs,
int param)
Method to extract a character from the ResultSet at the specified position |
SimpleDateFormat |
getJavaUtilDateFormat()
Get a Format object to handle java.util.Date. |
Object |
getObject(Object rs,
int param)
Method to extract an object from the ResultSet at the specified position |
String |
getString(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(Object ps,
int param,
boolean value)
Method to set a boolean at the specified position in the JDBC PreparedStatement. |
void |
setChar(Object ps,
int param,
char value)
Method to set a character at the specified position in the JDBC PreparedStatement. |
void |
setObject(Object ps,
int param,
Object value)
Method to set an object at the specified position in the JDBC PreparedStatement. |
void |
setString(Object ps,
int param,
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, failureMessage, getDatabaseAdapter, getDatastoreField, getInsertionInputParameter, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isNullable |
| Methods inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping |
|---|
failureMessage, getByte, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, 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 org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingpublic SQLTypeInfo getTypeInfo()
RDBMSMapping
getTypeInfo in class RDBMSMapping
public void setChar(Object ps,
int param,
char value)
setChar in interface org.datanucleus.store.mapped.mapping.DatastoreMappingsetChar in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingps - The PreparedStatementparam - Parameter positionvalue - The value to set
public char getChar(Object rs,
int param)
getChar in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetChar in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingrs - The Result Setparam - The parameter position
public void setString(Object ps,
int param,
String value)
setString in interface org.datanucleus.store.mapped.mapping.DatastoreMappingsetString in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingps - The PreparedStatementparam - Parameter positionvalue - The value to set
public String getString(Object rs,
int param)
getString in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetString in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingrs - The Result Setparam - The parameter position
public void setBoolean(Object ps,
int param,
boolean value)
setBoolean in interface org.datanucleus.store.mapped.mapping.DatastoreMappingsetBoolean in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingps - The PreparedStatementparam - Parameter positionvalue - The value to set
public boolean getBoolean(Object rs,
int param)
getBoolean in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetBoolean in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingrs - The Result Setparam - The parameter position
public void setObject(Object ps,
int param,
Object value)
setObject in interface org.datanucleus.store.mapped.mapping.DatastoreMappingsetObject in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingps - The PreparedStatementparam - Parameter positionvalue - The value to set
public Object getObject(Object rs,
int param)
getObject in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetObject in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingrs - The Result Setparam - The parameter position
public SimpleDateFormat getJavaUtilDateFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||