All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fingertip.simpledao.query.ICriteria Maven / Gradle / Ivy

The newest version!
package org.fingertip.simpledao.query;

import java.util.List;

/**
 * 条件查询接口
 * @author W.C.H
 *
 */
public interface ICriteria extends IQuery{
	ICriteria eq(String field, Object value);
	ICriteria ne(String field, Object value);
	ICriteria gt(String field, Object value);
	ICriteria gte(String field, Object value);
	ICriteria lt(String field, Object value);
	ICriteria lte(String field, Object value);
	ICriteria like(String field, Object value);
	ICriteria in(String field, List values);
	ICriteria in(String field, Object... values);
	ICriteria nin(String field, List values);
	ICriteria nin(String field, Object... values);
	
	ICriteria between(String field, Object start, Object end);
	ICriteria and(IQuery... queries);
	ICriteria or(IQuery... queries);
	ICriteria or(IQuery query);
	ICriteria isNull(String field);
	ICriteria isNotNull(String field);

	ICriteria limit(int size);
	ICriteria limit(int from, int size);

}