DataSet查询

DataSet类似sql的查询
DataSet set = new DataSet();
以DataSet result = set.select.equals("AGE","20")的方式调用
/**
 * 是否忽略NULL 如果设置成true 在执行equal notEqual like contains进 null与null比较返回false
 * 左右出现NULL时直接返回false
 * true会导致一行数据 equal notEqual都筛选不到
 */
private boolean ignoreNull = true;
public DataSet setIgnoreCase(boolean bol)
public DataSet setIgnoreNull(boolean bol)

/**
 * 筛选key=value的子集
 *
 * @param key   key
 * @param value value
 * @return DataSet
 */
public DataSet equals(String key, String value)

/**
 * 筛选key != value的子集
 *
 * @param key   key
 * @param value value
 * @return DataSet
 */
public DataSet notEquals(String key, String value)

/**
 * 筛选key列的值是否包含value的子集
 *
 * @param key   key
 * @param value value
 * @return DataSet
 */
public DataSet contains(String key, String value)

/**
 * 筛选key列的值like pattern的子集,pattern遵循sql通配符的规则,%表示任意个字符,_表示一个字符
 *
 * @param key     列
 * @param pattern 表达式
 * @return DataSet
 */
public DataSet like(String key, String pattern)
public DataSet notLike(String key, String pattern)

public DataSet startWith(String key, String prefix)
public DataSet endWith(String key, String suffix)
public <T> DataSet in(String key, T... values)
public <T> DataSet in(String key, Collection<T> values)
public <T> DataSet notIn(String key, T... values) 
public <T> DataSet notIn(String key, Collection<T> values)
public DataSet isNull(String... keys)
public DataSet null(String... keys)
public DataSet isNotNull(String... keys)
public DataSet isEmpty(String... keys)
public DataSet empty(String... keys)
public DataSet isNotEmpty(String... keys)
public DataSet notEmpty(String... keys)
public <T> DataSet less(String key, T value)
public <T> DataSet lessEqual(String key, T value)
public <T> DataSet greater(String key, T value)
public <T> DataSet greaterEqual(String key, T value)
public <T> DataSet between(String key, T min, T max)

其他文档