panda.dao.query.BooleanCondition 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 class BooleanCondition extends ObjectCondition {
/**
* @param parent parent
* @param field field
*/
public BooleanCondition(E parent, String field) {
super(parent, field);
}
/**
* @return parent
*/
public E isTrue() {
parent.getQuery().eq(field, true);
return parent;
}
/**
* @return parent
*/
public E isFalse() {
parent.getQuery().eq(field, false);
return parent;
}
}