com.github.antelopeframework.mybatis.criterion.Criterion Maven / Gradle / Ivy
package com.github.antelopeframework.mybatis.criterion;
import java.io.Serializable;
/**
* An object-oriented representation of a query criterion that may be used
* as a restriction in a Criteria query.
* Built-in criterion types are provided by the Restrictions factory
* class. This interface might be implemented by application classes that
* define custom restriction criteria.
*
* @see Restrictions
* @see Criteria
*
* @author yangzhi.yzh
*/
public interface Criterion extends Serializable {
static final TypedValue[] NO_VALUES = new TypedValue[0];
String toSqlString(CriteriaQuery criteriaQuery);
TypedValue[] getTypedValues(CriteriaQuery criteriaQuery);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy