org.datanucleus.store.rdbms.mapping.oracle
Class XMLTypeRDBMSMapping
java.lang.Object
org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
org.datanucleus.store.rdbms.mapping.RDBMSMapping
org.datanucleus.store.rdbms.mapping.CharRDBMSMapping
org.datanucleus.store.rdbms.mapping.oracle.XMLTypeRDBMSMapping
- All Implemented Interfaces:
- org.datanucleus.store.mapped.mapping.DatastoreMapping
public class XMLTypeRDBMSMapping
- extends CharRDBMSMapping
Mapping for an Oracle XMLType type.
| Fields inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping |
LOCALISER, mapping |
|
Constructor Summary |
|
XMLTypeRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
Constructor. |
protected |
XMLTypeRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
|
|
Method Summary |
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. |
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 |
XMLTypeRDBMSMapping
protected XMLTypeRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
- Parameters:
storeMgr - Store Managermapping - Java type mapping
XMLTypeRDBMSMapping
public XMLTypeRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
- Constructor.
- Parameters:
mapping - Java type mappingstoreMgr - Store Managerfield - Field to be mapped
initialize
protected void initialize()
- Description copied from class:
CharRDBMSMapping
- Method to initialise the column mapping.
Provides default length specifications for the CHAR column to fit the data being stored.
- Overrides:
initialize in class CharRDBMSMapping
getTypeInfo
public SQLTypeInfo getTypeInfo()
- Description copied from class:
RDBMSMapping
- Accessor for the (SQL) type info for this datastore type.
- Overrides:
getTypeInfo in class CharRDBMSMapping
- Returns:
- The type info
getString
public String getString(Object rs,
int param)
- Method to extract a String from the ResultSet at the specified position
- Specified by:
getString in interface org.datanucleus.store.mapped.mapping.DatastoreMapping- Overrides:
getString in class CharRDBMSMapping
- Parameters:
rs - The Result Setparam - The parameter position
- Returns:
- the String
setString
public void setString(Object ps,
int param,
String value)
- Method to set a String at the specified position in the JDBC PreparedStatement.
- Specified by:
setString in interface org.datanucleus.store.mapped.mapping.DatastoreMapping- Overrides:
setString in class CharRDBMSMapping
- Parameters:
ps - The PreparedStatementparam - Parameter positionvalue - The value to set
Copyright © 2012. All Rights Reserved.