public static void parseArgs(PreparedStatement ps, Object ... args) throws SQLException{
        if(ArrayUtils.isEmpty(args)){
            return;
        }

        for(int i = 0; i < args.length; i++ ){
            Object obj = args[i];
            if(obj == null){
                ps.setString(i + 1,null);
            } else if(obj instanceof Integer){
                ps.setInt(i + 1, ((Integer)obj).intValue());
            } else if(obj instanceof Long){
                ps.setLong(i + 1, ((Long)obj).intValue());
            } else if(obj instanceof String){
                ps.setString(i + 1, obj.toString());
            } else if(obj instanceof Boolean){
                ps.setBoolean(i + 1, ((Boolean)obj).booleanValue());
            } else if(obj instanceof Double){
                ps.setDouble(i + 1, ((Double)obj).doubleValue());
            }
        }
    }