new Object[] {new Integer(sqlType), sqlTypeName, tableName, columnName} );
if (sqlType == Types.NUMERIC || sqlType == Types.DECIMAL)
{
// Check if the user has set a tolerance delta for this floating point field
ToleratedDelta delta = _toleratedDeltaMap.findToleratedDelta(tableName, columnName);
// Found a toleratedDelta object
if(delta!=null) {
if(logger.isDebugEnabled())
logger.debug("Creating NumberTolerantDataType for table={}, column={}, toleratedDelta={}",
new Object[]{tableName, columnName, delta.getToleratedDelta() });
// Use a special data type to implement the tolerance for numbers (floating point things)
NumberTolerantDataType type = new NumberTolerantDataType("NUMERIC_WITH_TOLERATED_DELTA",
sqlType, delta.getToleratedDelta());
return type;
}
}
// In all other cases (default) use the default data type creation