01: package liquibase.util;
02:
03: import java.sql.Types;
04: import java.util.Arrays;
05: import java.util.List;
06:
07: public class SqlUtil {
08:
09: public static boolean isNumeric(int dataType) {
10: List<Integer> numericTypes = Arrays.asList(Types.BIGINT,
11: Types.BIT, Types.INTEGER, Types.SMALLINT,
12: Types.TINYINT, Types.DECIMAL, Types.DOUBLE,
13: Types.FLOAT, Types.NUMERIC, Types.REAL);
14:
15: return numericTypes.contains(dataType);
16: }
17: }
|