org.dbunit.ext.oracle
Class Oracle10DataTypeFactory

java.lang.Object
  extended by org.dbunit.dataset.datatype.DefaultDataTypeFactory
      extended by org.dbunit.ext.oracle.OracleDataTypeFactory
          extended by org.dbunit.ext.oracle.Oracle10DataTypeFactory
All Implemented Interfaces:
IDataTypeFactory, IDbProductRelatable

public class Oracle10DataTypeFactory
extends OracleDataTypeFactory

Specialized factory that recognizes Oracle data types for Oracle 10 and higher.
Handles the CLOBs and BLOBs as string and binary stream respectively which is supported since oracle 10.
This is recommended by oracle: Oracle technology sample code

Since:
2.3.0
Version:
$Revision: 730 $
Author:
gommma

Field Summary
protected static DataType BLOB_AS_STREAM
           
protected static DataType CLOB_AS_STRING
           
 
Fields inherited from class org.dbunit.ext.oracle.OracleDataTypeFactory
LONG_RAW, ORACLE_BLOB, ORACLE_CLOB, ORACLE_NCLOB, ORACLE_SDO_GEOMETRY_TYPE, ORACLE_XMLTYPE, ROWID_TYPE
 
Constructor Summary
Oracle10DataTypeFactory()
           
 
Method Summary
 DataType createDataType(int sqlType, String sqlTypeName)
          Returns the DataType object that corresponds to the specified Types.
 
Methods inherited from class org.dbunit.ext.oracle.OracleDataTypeFactory
getValidDbProducts
 
Methods inherited from class org.dbunit.dataset.datatype.DefaultDataTypeFactory
addToleratedDelta, createDataType, getToleratedDeltaMap, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLOB_AS_STRING

protected static final DataType CLOB_AS_STRING

BLOB_AS_STREAM

protected static final DataType BLOB_AS_STREAM
Constructor Detail

Oracle10DataTypeFactory

public Oracle10DataTypeFactory()
Method Detail

createDataType

public DataType createDataType(int sqlType,
                               String sqlTypeName)
                        throws DataTypeException
Description copied from interface: IDataTypeFactory
Returns the DataType object that corresponds to the specified Types.

Specified by:
createDataType in interface IDataTypeFactory
Overrides:
createDataType in class OracleDataTypeFactory
Parameters:
sqlType - SQL type from Types
sqlTypeName - Data source dependent type name
Throws:
DataTypeException
See Also:
IDataTypeFactory.createDataType(int, java.lang.String)


Copyright © 2002-2012. All Rights Reserved.