public class DefaultDataTypeFactory extends Object implements IDataTypeFactory
| Constructor and Description |
|---|
DefaultDataTypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToleratedDelta(ToleratedDeltaMap.ToleratedDelta delta)
Adds a tolerated delta to this data type factory to be used for numeric comparisons
|
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. |
ToleratedDeltaMap |
getToleratedDeltaMap() |
public DataType createDataType(int sqlType, String sqlTypeName) throws DataTypeException
IDataTypeFactoryTypes.createDataType in interface IDataTypeFactorysqlType - SQL type from TypessqlTypeName - Data source dependent type nameDataTypeExceptionIDataTypeFactory.createDataType(int, java.lang.String)public DataType createDataType(int sqlType, String sqlTypeName, String tableName, String columnName) throws DataTypeException
IDataTypeFactoryTypes 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.createDataType in interface IDataTypeFactorysqlType - SQL type from TypessqlTypeName - Data source dependent type nametableName - The database table for which the type is createdcolumnName - The database column in the given table for which the type is createdDataTypeExceptionIDataTypeFactory.createDataType(int, java.lang.String, java.lang.String, java.lang.String)public ToleratedDeltaMap getToleratedDeltaMap()
public void addToleratedDelta(ToleratedDeltaMap.ToleratedDelta delta)
delta - The new tolerated delta objectCopyright © 2002-2012. All Rights Reserved.