Codota Logo
SimpleSubqueryExpression
Code IndexAdd Codota to your IDE (free)

How to use
SimpleSubqueryExpression
in
org.hibernate.criterion

Best Java code snippets using org.hibernate.criterion.SimpleSubqueryExpression (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: hibernate/hibernate-orm

@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;
}
origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: hibernate/hibernate

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;
}

origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: org.hibernate/com.springsource.org.hibernate.core

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;
}

origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

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;
}
 
origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: org.hibernate/com.springsource.org.hibernate

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;
}

origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: hibernate/hibernate-orm

/**
 * 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);
}
origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: hibernate/hibernate-orm

/**
 * 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 );
}
origin: hibernate/hibernate-orm

/**
 * 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 );
}
org.hibernate.criterionSimpleSubqueryExpression

Javadoc

A comparison between a constant value and the the result of a subquery

Most used methods

  • <init>
  • getTypes

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now