Tabnine Logo
SQLCriterion.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.hibernate.criterion.SQLCriterion
constructor

Best Java code snippets using org.hibernate.criterion.SQLCriterion.<init> (Showing top 20 results out of 315)

origin: hibernate/hibernate-orm

/**
 * Apply a constraint expressed in SQL with no JDBC parameters.  Any occurrences of <tt>{alias}</tt> will be
 * replaced by the table alias.
 *
 * @param sql The SQL restriction
 *
 * @return The Criterion
 *
 * @see SQLCriterion
 */
public static Criterion sqlRestriction(String sql) {
  return new SQLCriterion( sql );
}
origin: hibernate/hibernate-orm

/**
 * Create a restriction expressed in SQL with one JDBC parameter.  Any occurrences of <tt>{alias}</tt> will be
 * replaced by the table alias.
 *
 * @param sql The SQL restriction
 * @param value The parameter value
 * @param type The parameter type
 *
 * @return The Criterion
 *
 * @see SQLCriterion
 */
public static Criterion sqlRestriction(String sql, Object value, Type type) {
  return new SQLCriterion( sql, value, type );
}
origin: hibernate/hibernate-orm

/**
 * Create a restriction expressed in SQL with JDBC parameters.  Any occurrences of <tt>{alias}</tt> will be
 * replaced by the table alias.
 *
 * @param sql The SQL restriction
 * @param values The parameter values
 * @param types The parameter types
 *
 * @return The Criterion
 *
 * @see SQLCriterion
 */
public static Criterion sqlRestriction(String sql, Object[] values, Type[] types) {
  return new SQLCriterion( sql, values, types );
}
origin: hibernate/hibernate-orm

/**
 * Apply a constraint expressed in SQL with no parameters.  Any occurrences of <tt>{alias}</tt> will be
 * replaced by the table alias.
 *
 * @param sql The sql
 *
 * @return Criterion
 *
 * @deprecated use {@link org.hibernate.criterion.Restrictions#sqlRestriction(String)}
 */
@Deprecated
public static Criterion sql(String sql) {
  return new SQLCriterion( sql );
}
origin: hibernate/hibernate-orm

/**
 * Apply a constraint expressed in SQL, with a JDBC parameter.  Any occurrences of <tt>{alias}</tt> will be
 * replaced by the table alias.
 *
 * @param sql The sql
 * @param value The parameter value
 * @param type The parameter type
 *
 * @return Criterion
 *
 * @deprecated use {@link org.hibernate.criterion.Restrictions#sqlRestriction(String, Object, Type)}
 */
@Deprecated
public static Criterion sql(String sql, Object value, Type type) {
  return new SQLCriterion( sql, value, type );
}
origin: hibernate/hibernate-orm

/**
 * Apply a constraint expressed in SQL, with JDBC parameters.  Any occurrences of <tt>{alias}</tt> will be
 * replaced by the table alias.
 *
 * @param sql The sql
 * @param values The parameter values
 * @param types The parameter types
 *
 * @return Criterion
 *
 * @deprecated use {@link org.hibernate.criterion.Restrictions#sqlRestriction(String, Object[], Type[])}
 */
@Deprecated
public static Criterion sql(String sql, Object[] values, Type[] types) {
  return new SQLCriterion( sql, values, types );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Apply a constraint expressed in SQL. Any occurrences of <tt>{alias}</tt>
 * will be replaced by the table alias.
 *
 * @param sql
 * @return Criterion
 */
public static Criterion sqlRestriction(String sql) {
  return new SQLCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY);
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Apply a constraint expressed in SQL. Any occurrences of <tt>{alias}</tt>
 * will be replaced by the table alias.
 *
 * @param sql
 * @return Criterion
 */
public static Criterion sqlRestriction(String sql) {
  return new SQLCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY);
}
origin: hibernate/hibernate

/**
 * Apply a constraint expressed in SQL. Any occurrences of <tt>{alias}</tt>
 * will be replaced by the table alias.
 *
 * @param sql
 * @return Criterion
 */
public static Criterion sql(String sql) {
  return new SQLCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY);
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Apply a constraint expressed in SQL. Any occurrences of <tt>{alias}</tt>
 * will be replaced by the table alias.
 *
 * @param sql
 * @return Criterion
 */
public static Criterion sql(String sql) {
  return new SQLCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY);
}
origin: hibernate/hibernate

/**
 * Apply a constraint expressed in SQL. Any occurrences of <tt>{alias}</tt>
 * will be replaced by the table alias.
 *
 * @param sql
 * @return Criterion
 */
public static Criterion sqlRestriction(String sql) {
  return new SQLCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY);
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Apply a constraint expressed in SQL. Any occurrences of <tt>{alias}</tt>
 * will be replaced by the table alias.
 *
 * @param sql
 * @return Criterion
 */
public static Criterion sqlRestriction(String sql) {
  return new SQLCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY);
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Apply a constraint expressed in SQL, with the given JDBC
 * parameter. Any occurrences of <tt>{alias}</tt> will be replaced
 * by the table alias.
 *
 * @param sql
 * @param value
 * @param type
 * @return Criterion
 */
public static Criterion sqlRestriction(String sql, Object value, Type type) {
  return new SQLCriterion(sql, new Object[] { value }, new Type[] { type } );
}
/**
origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Apply a constraint expressed in SQL, with the given JDBC
 * parameters. Any occurrences of <tt>{alias}</tt> will be
 * replaced by the table alias.
 *
 * @param sql
 * @param values
 * @param types
 * @return Criterion
 */
public static Criterion sql(String sql, Object[] values, Type[] types) {
  return new SQLCriterion(sql, values, types);
}
/**
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Apply a constraint expressed in SQL, with the given JDBC
 * parameter. Any occurrences of <tt>{alias}</tt> will be replaced
 * by the table alias.
 *
 * @param sql
 * @param value
 * @param type
 * @return Criterion
 */
public static Criterion sqlRestriction(String sql, Object value, Type type) {
  return new SQLCriterion(sql, new Object[] { value }, new Type[] { type } );
}
/**
origin: hibernate/hibernate

/**
 * Apply a constraint expressed in SQL, with the given JDBC
 * parameters. Any occurrences of <tt>{alias}</tt> will be
 * replaced by the table alias.
 *
 * @param sql
 * @param values
 * @param types
 * @return Criterion
 */
public static Criterion sql(String sql, Object[] values, Type[] types) {
  return new SQLCriterion(sql, values, types);
}
/**
origin: hibernate/hibernate

/**
 * Apply a constraint expressed in SQL, with the given JDBC
 * parameters. Any occurrences of <tt>{alias}</tt> will be
 * replaced by the table alias.
 *
 * @param sql
 * @param values
 * @param types
 * @return Criterion
 */
public static Criterion sqlRestriction(String sql, Object[] values, Type[] types) {
  return new SQLCriterion(sql, values, types);
}
/**
origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Apply a constraint expressed in SQL, with the given JDBC
 * parameter. Any occurrences of <tt>{alias}</tt> will be replaced
 * by the table alias.
 *
 * @param sql
 * @param value
 * @param type
 * @return Criterion
 */
public static Criterion sqlRestriction(String sql, Object value, Type type) {
  return new SQLCriterion(sql, new Object[] { value }, new Type[] { type } );
}
/**
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Apply a constraint expressed in SQL. Any occurrences of <tt>{alias}</tt>
 * will be replaced by the table alias.
 *
 * @deprecated use {@link org.hibernate.criterion.Restrictions#sqlRestriction(String)}
 * @param sql
 * @return Criterion
 */
@Deprecated
public static Criterion sql(String sql) {
  return new SQLCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY);
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Apply a constraint expressed in SQL. Any occurrences of <tt>{alias}</tt>
 * will be replaced by the table alias.
 *
 * @deprecated use {@link org.hibernate.criterion.Restrictions#sqlRestriction(String)}
 * @param sql
 * @return Criterion
 */
@Deprecated
public static Criterion sql(String sql) {
  return new SQLCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY);
}
org.hibernate.criterionSQLCriterion<init>

Popular methods of SQLCriterion

    Popular in Java

    • Running tasks concurrently on multiple threads
    • putExtra (Intent)
    • onRequestPermissionsResult (Fragment)
    • scheduleAtFixedRate (Timer)
    • HttpServer (com.sun.net.httpserver)
      This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
    • Date (java.util)
      A specific moment in time, with millisecond precision. Values typically come from System#currentTime
    • Dictionary (java.util)
      Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
    • JCheckBox (javax.swing)
    • Loader (org.hibernate.loader)
      Abstract superclass of object loading (and querying) strategies. This class implements useful common
    • Reflections (org.reflections)
      Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
    • Top Sublime Text plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now