/** * Creates a criterion which checks that the value of a literal is less-than ALL the values in the * subquery result. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion ltAll(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, "<", "all", dc ); }
@Override public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException { final TypedValue[] subQueryTypedValues = super.getTypedValues( criteria, criteriaQuery ); final TypedValue[] result = new TypedValue[subQueryTypedValues.length+1]; System.arraycopy( subQueryTypedValues, 0, result, 1, subQueryTypedValues.length ); result[0] = new TypedValue( getTypes()[0], value ); return result; }
/** * Creates a criterion which checks that the value of a literal is greater-than SOME of the values in the * subquery result. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion gtSome(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, ">", "some", dc ); }
public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException { 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; }
/** * Creates a criterion which checks that the value of a given literal as being equal to the value in * the subquery result. The implication is that the subquery returns a single result.. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion eq(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, "=", null, dc ); }
public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException { 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; }
/** * Creates a criterion which checks that the value of a given literal as being less-than the value in * the subquery result. The implication is that the subquery returns a single result.. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion lt(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, "<", null, dc ); }
public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException { 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; }
/** * Creates a criterion which checks that the value of a given literal as being greater-than-or-equal-to the * value in the subquery result. The implication is that the subquery returns a single result.. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion ge(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, ">=", null, dc ); }
public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException { 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; }
/** * Creates a criterion which checks that the value of a literal is greater-than-or-equal-to SOME of the values * in the subquery result. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion geSome(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, ">=", "some", dc ); }
/** * Creates a criterion which checks that the value of a literal is IN the values in the * subquery result. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion in(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, "in", null, dc ); }
/** * Creates a criterion which checks that the value of a literal equals ALL the values in the * subquery result. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion eqAll(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, "=", "all", dc ); }
/** * Creates a criterion which checks that the value of a literal is less-than-or-equal-to SOME of the values * in the subquery result. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion leSome(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, "<=", "some", dc ); }
/** * Creates a criterion which checks that the value of a given literal as being not-equal to the value in * the subquery result. The implication is that the subquery returns a single result.. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion ne(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression(value, "<>", null, dc); }
/** * Creates a criterion which checks that the value of a given literal as being less-than-or-equal-to the * value in the subquery result. The implication is that the subquery returns a single result.. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion le(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, "<=", null, dc ); }
/** * Creates a criterion which checks that the value of a literal is greater-than ALL the values in the * subquery result. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion gtAll(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, ">", "all", dc ); }
/** * Creates a criterion which checks that the value of a literal is greater-than-or-equal-to ALL the values in the * subquery result. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion geAll(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, ">=", "all", dc ); }
/** * Creates a criterion which checks that the value of a literal is NOT IN the values in the * subquery result. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion notIn(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, "not in", null, dc ); }
/** * Creates a criterion which checks that the value of a given literal as being greater-than the value in * the subquery result. The implication is that the subquery returns a single result.. * * @param value The literal value to use in comparison * @param dc The detached criteria representing the subquery * * @return The Criterion * * @see SimpleSubqueryExpression */ public static Criterion gt(Object value, DetachedCriteria dc) { return new SimpleSubqueryExpression( value, ">", null, dc ); }