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

panda.dao.query.BooleanCondition Maven / Gradle / Ivy

Go to download

Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.

There is a newer version: 1.8.0
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy