Class OracleXMLTypeColumnMapping
- java.lang.Object
-
- org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
-
- org.datanucleus.store.rdbms.mapping.column.CharColumnMapping
-
- org.datanucleus.store.rdbms.mapping.column.OracleXMLTypeColumnMapping
-
- All Implemented Interfaces:
ColumnMapping
public class OracleXMLTypeColumnMapping extends CharColumnMapping
Mapping for an Oracle XMLType column.
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
column, mapping, storeMgr
-
-
Constructor Summary
Constructors Constructor Description OracleXMLTypeColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetJDBCType()Method to return the java.sql.Types type that this relates to.StringgetString(ResultSet rs, int param)Method to extract a String from the ResultSet at the specified positionprotected voidinitialize()Method to initialise the column mapping.voidsetString(PreparedStatement 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.column.CharColumnMapping
getBoolean, getChar, getJavaUtilDateFormat, getObject, isStringBased, setBoolean, setChar, setObject
-
Methods inherited from class org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
equals, failureMessage, failureMessage, failureMessage, getByte, getColumn, getDatastoreAdapter, getDouble, getFloat, getInsertionInputParameter, getInt, getJavaTypeMapping, getLong, getShort, getTypeInfo, getUpdateInputParameter, hashCode, includeInFetchStatement, initTypeInfo, insertValuesOnInsert, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, setByte, setDouble, setFloat, setInt, setLong, setShort, useDefaultWhenNull
-
-
-
-
Constructor Detail
-
OracleXMLTypeColumnMapping
public OracleXMLTypeColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
Constructor.- Parameters:
mapping- Java type mappingstoreMgr- Store Managercol- Column
-
-
Method Detail
-
initialize
protected void initialize()
Description copied from class:CharColumnMappingMethod to initialise the column mapping. Provides default length specifications for the CHAR column to fit the data being stored.- Overrides:
initializein classCharColumnMapping
-
getJDBCType
public int getJDBCType()
Description copied from class:AbstractColumnMappingMethod to return the java.sql.Types type that this relates to.- Overrides:
getJDBCTypein classCharColumnMapping- Returns:
- The JDBC "type"
-
getString
public String getString(ResultSet rs, int param)
Method to extract a String from the ResultSet at the specified position- Specified by:
getStringin interfaceColumnMapping- Overrides:
getStringin classCharColumnMapping- Parameters:
rs- The Result Setparam- The parameter position- Returns:
- the String
-
setString
public void setString(PreparedStatement ps, int param, String value)
Method to set a String at the specified position in the JDBC PreparedStatement.- Specified by:
setStringin interfaceColumnMapping- Overrides:
setStringin classCharColumnMapping- Parameters:
ps- The PreparedStatementparam- Parameter positionvalue- The value to set
-
-