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

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

package panda.dao.query;




/**
 * @param  query target type
 */
@SuppressWarnings("rawtypes")
public class ObjectCondition extends AbstractCondition {
	/**
	 * @param parent parent
	 * @param field field
	 */
	public ObjectCondition(E parent, String field) {
		super(parent, field);
	}

	/**
	 * @return parent
	 */
	public E isNull() {
		parent.getQuery().isNull(field);
		return parent;
	}

	/**
	 * @return parent
	 */
	public E isNotNull() {
		parent.getQuery().isNotNull(field);
		return parent;
	}

	/**
	 * @return parent
	 */
	public E asc() {
		parent.getQuery().orderByAsc(field);
		return parent;
	}

	/**
	 * @return parent
	 */
	public E desc() {
		parent.getQuery().orderByDesc(field);
		return parent;
	}
	
	/**
	 * @param value column value
	 * @return parent
	 */
	public E column(String value) {
		parent.getQuery().column(field, value);
		return parent;
	}

	/**
	 * @return parent
	 */
	public E group() {
		parent.getQuery().groupBy(field);
		return parent;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy