Coverage Report - liquibase.util.SqlUtil
 
Classes in this File Line Coverage Branch Coverage Complexity
SqlUtil
0%
0/6
0%
0/2
1
 
 1  
 package liquibase.util;
 2  
 
 3  
 import java.sql.Types;
 4  
 import java.util.Arrays;
 5  
 import java.util.List;
 6  
 
 7  0
 public class SqlUtil {
 8  
 
 9  
     public static boolean isNumeric(int dataType) {
 10  0
         List<Integer> numericTypes = Arrays.asList(Types.BIGINT, Types.BIT, Types.INTEGER, Types.SMALLINT,
 11  
                 Types.TINYINT, Types.DECIMAL, Types.DOUBLE, Types.FLOAT, Types.NUMERIC, Types.REAL);
 12  
 
 13  0
         return numericTypes.contains(dataType);
 14  
     }
 15  
 
 16  
     public static boolean isBoolean(int dataType) {
 17  0
         return dataType == Types.BOOLEAN;
 18  
     }
 19  
 
 20  
     public static boolean isDate(int dataType) {
 21  0
         List<Integer> validTypes = Arrays.asList(Types.DATE, Types.TIME, Types.TIMESTAMP);
 22  
 
 23  0
         return validTypes.contains(dataType);
 24  
     }
 25  
 }