org.dbunit.ext.oracle
Class Oracle10DataTypeFactory
java.lang.Object
org.dbunit.dataset.datatype.DefaultDataTypeFactory
org.dbunit.ext.oracle.OracleDataTypeFactory
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
CLOB_AS_STRING
protected static final DataType CLOB_AS_STRING
BLOB_AS_STREAM
protected static final DataType BLOB_AS_STREAM
Oracle10DataTypeFactory
public Oracle10DataTypeFactory()
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.