FileDocCategorySizeDatePackage
LogicalExpression.javaAPI DocHibernate 3.2.51421Sat Feb 12 00:19:50 GMT 2005org.hibernate.criterion

LogicalExpression

public class LogicalExpression extends Object implements Criterion
Superclass of binary logical expressions
author
Gavin King

Fields Summary
private final Criterion
lhs
private final Criterion
rhs
private final String
op
Constructors Summary
protected LogicalExpression(Criterion lhs, Criterion rhs, String op)

		this.lhs = lhs;
		this.rhs = rhs;
		this.op = op;
	
Methods Summary
public java.lang.StringgetOp()

		return op;
	
public org.hibernate.engine.TypedValue[]getTypedValues(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)


		TypedValue[] lhstv = lhs.getTypedValues(criteria, criteriaQuery);
		TypedValue[] rhstv = rhs.getTypedValues(criteria, criteriaQuery);
		TypedValue[] result = new TypedValue[ lhstv.length + rhstv.length ];
		System.arraycopy(lhstv, 0, result, 0, lhstv.length);
		System.arraycopy(rhstv, 0, result, lhstv.length, rhstv.length);
		return result;
	
public java.lang.StringtoSqlString(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)


		return '(" +
			lhs.toSqlString(criteria, criteriaQuery) +
			' " +
			getOp() +
			' " +
			rhs.toSqlString(criteria, criteriaQuery) +
			')";
	
public java.lang.StringtoString()

		return lhs.toString() + ' " + getOp() + ' " + rhs.toString();