/**
 * HQLQuery.java
 * Created May 19, 2008
 * Copyright (c) TANDBERG Television 2007-2008
 */
package com.tandbergtv.watchpoint.search;

/**
 * HQL query elements
 * 
 * @author Sahil Verma
 */
enum HQLQuery {
	
	PERIOD("."),
	FROM(" from "),
	WHERE(" where "),
	WITH(" with "),
	AND(" and "),
	OR(" or "),
	ASC(" asc "),
	DESC(" desc "),
	SELECT(" select "),
	SELECT_DISTINCT(" select distinct "),
	COUNT(" count(*) "),
	ORDERBY(" order by "),
	INNER_JOIN(" join "),
	LEFT_JOIN(" left outer join ")
	;
	
	private final String value;
	
	/**
	 * Creates a HQLQuery
	 */
	HQLQuery(String value) {
		this.value = value;
	}

	/* (non-Javadoc)
	 * @see java.lang.Enum#toString()
	 */
	public String toString() {
		return this.value;
	}
}
