org.datanucleus.store.rdbms.mapping.oracle
Class XMLTypeRDBMSMapping

java.lang.Object
  extended by org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
      extended by org.datanucleus.store.rdbms.mapping.RDBMSMapping
          extended by org.datanucleus.store.rdbms.mapping.CharRDBMSMapping
              extended by 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.


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
  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.CharRDBMSMapping
getBoolean, getChar, getJavaUtilDateFormat, getObject, isStringBased, setBoolean, setChar, setObject
 
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

XMLTypeRDBMSMapping

protected XMLTypeRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                              org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Parameters:
storeMgr - Store Manager
mapping - 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 mapping
storeMgr - Store Manager
field - Field to be mapped
Method Detail

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 Set
param - 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 PreparedStatement
param - Parameter position
value - The value to set


Copyright © 2012. All Rights Reserved.