org.dbunit.ext.oracle
Class OracleDataTypeFactory

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

public class OracleDataTypeFactory
extends DefaultDataTypeFactory

Specialized factory that recognizes Oracle data types.

Since:
Jul 17, 2003
Version:
$Revision: 1077 $
Author:
manuel.laflamme

Field Summary
static DataType LONG_RAW
           
static DataType ORACLE_BLOB
           
static DataType ORACLE_CLOB
           
static DataType ORACLE_NCLOB
           
static DataType ORACLE_SDO_GEOMETRY_TYPE
           
static DataType ORACLE_XMLTYPE
           
static DataType ROWID_TYPE
           
 
Constructor Summary
OracleDataTypeFactory()
           
 
Method Summary
 DataType createDataType(int sqlType, java.lang.String sqlTypeName)
          Returns the DataType object that corresponds to the specified Types.
 java.util.Collection getValidDbProducts()
          Returns a set of Strings representing database product names that this object relates to.
 
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

ORACLE_BLOB

public static final DataType ORACLE_BLOB

ORACLE_CLOB

public static final DataType ORACLE_CLOB

ORACLE_NCLOB

public static final DataType ORACLE_NCLOB

ORACLE_XMLTYPE

public static final DataType ORACLE_XMLTYPE

ORACLE_SDO_GEOMETRY_TYPE

public static final DataType ORACLE_SDO_GEOMETRY_TYPE

LONG_RAW

public static final DataType LONG_RAW

ROWID_TYPE

public static final DataType ROWID_TYPE
Constructor Detail

OracleDataTypeFactory

public OracleDataTypeFactory()
Method Detail

getValidDbProducts

public java.util.Collection getValidDbProducts()
Description copied from interface: IDbProductRelatable
Returns a set of Strings representing database product names that this object relates to.

Specified by:
getValidDbProducts in interface IDbProductRelatable
Overrides:
getValidDbProducts in class DefaultDataTypeFactory
Returns:
Set of Strings.
See Also:
IDbProductRelatable.getValidDbProducts()

createDataType

public DataType createDataType(int sqlType,
                               java.lang.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 DefaultDataTypeFactory
Parameters:
sqlType - SQL type from Types
sqlTypeName - Data source dependent type name
Throws:
DataTypeException
See Also:
IDataTypeFactory.createDataType(int, java.lang.String)


Copyright © 2002-2009. All Rights Reserved.