FileDocCategorySizeDatePackage
SimpleSubqueryExpression.javaAPI DocHibernate 3.2.51115Thu Feb 17 20:47:28 GMT 2005org.hibernate.criterion

SimpleSubqueryExpression

public class SimpleSubqueryExpression extends SubqueryExpression
A comparison between a constant value and the the result of a subquery
author
Gavin King

Fields Summary
private Object
value
Constructors Summary
protected SimpleSubqueryExpression(Object value, String op, String quantifier, DetachedCriteria dc)

		super(op, quantifier, dc);
		this.value = value;
	
Methods Summary
public org.hibernate.engine.TypedValue[]getTypedValues(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)

		TypedValue[] superTv = super.getTypedValues(criteria, criteriaQuery);
		TypedValue[] result = new TypedValue[superTv.length+1];
		System.arraycopy(superTv, 0, result, 1, superTv.length);
		result[0] = new TypedValue( getTypes()[0], value, EntityMode.POJO );
		return result;
	
protected java.lang.StringtoLeftSqlString(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)

		return "?";