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

panda.dao.query.AbstractCondition 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 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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy