org.datanucleus.store.rdbms.mapping.xmltypeoracle
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.xmltypeoracle.XMLTypeRDBMSMapping
All Implemented Interfaces:
org.datanucleus.store.mapped.mapping.DatastoreMapping

public class XMLTypeRDBMSMapping
extends org.datanucleus.store.rdbms.mapping.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
 java.lang.String getString(java.lang.Object rs, int param)
          Method to extract a String from the ResultSet at the specified position
 org.datanucleus.store.rdbms.schema.SQLTypeInfo getTypeInfo()
           
protected  void initialize()
           
 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.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()
Overrides:
initialize in class org.datanucleus.store.rdbms.mapping.CharRDBMSMapping

getTypeInfo

public org.datanucleus.store.rdbms.schema.SQLTypeInfo getTypeInfo()
Overrides:
getTypeInfo in class org.datanucleus.store.rdbms.mapping.CharRDBMSMapping

getString

public java.lang.String getString(java.lang.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 org.datanucleus.store.rdbms.mapping.CharRDBMSMapping
Parameters:
rs - The Result Set
param - The parameter position
Returns:
the String

setString

public 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.

Specified by:
setString in interface org.datanucleus.store.mapped.mapping.DatastoreMapping
Overrides:
setString in class org.datanucleus.store.rdbms.mapping.CharRDBMSMapping
Parameters:
ps - The PreparedStatement
param - Parameter position
value - The value to set


Copyright © 2011. All Rights Reserved.