panda.dao.query.AbstractCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panda-core Show documentation
Show all versions of panda-core Show documentation
Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.
package panda.dao.query;
/**
* @param query target type
*/
@SuppressWarnings("rawtypes")
public abstract class AbstractCondition {
protected E parent;
protected String field;
/**
* @param parent parent
* @param field field
*/
public AbstractCondition(E parent, String field) {
this.parent = parent;
this.field = field;
}
/**
* @return parent
*/
public E exclude() {
parent.getQuery().exclude(field);
return parent;
}
/**
* @return parent
*/
public E include() {
parent.getQuery().include(field);
return parent;
}
}