org.dbunit.dataset.datatype
Interface IDataTypeFactory

All Known Implementing Classes:
Db2DataTypeFactory, DefaultDataTypeFactory, H2DataTypeFactory, HsqldbDataTypeFactory, MckoiDataTypeFactory, MsSqlDataTypeFactory, MySqlDataTypeFactory, NetezzaDataTypeFactory, Oracle10DataTypeFactory, OracleDataTypeFactory, PostgresqlDataTypeFactory

public interface IDataTypeFactory

A factory for creating DataType.

Since:
May 17, 2003
Version:
$Revision: 654 $
Author:
Manuel Laflamme

Method Summary
 DataType createDataType(int sqlType, String sqlTypeName)
          Returns the DataType object that corresponds to the specified Types.
 DataType createDataType(int sqlType, String sqlTypeName, String tableName, String columnName)
          Returns the DataType object that corresponds to the specified Types and regards the given tableName and columnName.
 

Method Detail

createDataType

DataType createDataType(int sqlType,
                        String sqlTypeName)
                        throws DataTypeException
Returns the DataType object that corresponds to the specified Types.

Parameters:
sqlType - SQL type from Types
sqlTypeName - Data source dependent type name
Throws:
DataTypeException

createDataType

DataType createDataType(int sqlType,
                        String sqlTypeName,
                        String tableName,
                        String columnName)
                        throws DataTypeException
Returns the DataType object that corresponds to the specified Types and regards the given tableName and columnName. When a ToleratedDeltaMap.ToleratedDelta has been set for a tableName.columnName set then this method automatically creates the correct datatype that honours the tolerance value in the assertion.

Parameters:
sqlType - SQL type from Types
sqlTypeName - Data source dependent type name
tableName - The database table for which the type is created
columnName - The database column in the given table for which the type is created
Throws:
DataTypeException
Since:
2.3.0


Copyright © 2002-2012. All Rights Reserved.