Package org.dbunit.dataset.datatype.ToleratedDeltaMap

Examples of org.dbunit.dataset.datatype.ToleratedDeltaMap.ToleratedDelta


            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
View Full Code Here

TOP

Related Classes of org.dbunit.dataset.datatype.ToleratedDeltaMap.ToleratedDelta

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.