org.jooq
Interface UpdateWhereStep<R extends Record>

All Superinterfaces:
Adapter, Attachable, Query, QueryPart, Serializable, Update<R>, UpdateFinalStep<R>
All Known Subinterfaces:
UpdateSetMoreStep<R>

public interface UpdateWhereStep<R extends Record>
extends UpdateFinalStep<R>

This type is used for the Update's DSL API.

Example:

 Factory create = new Factory();

 create.update(table)
       .set(field1, value1)
       .set(field2, value2)
       .where(field1.greaterThan(100))
       .execute();
 

Author:
Lukas Eder

Method Summary
 UpdateConditionStep<R> where(Collection<Condition> conditions)
          Add conditions to the query
 UpdateConditionStep<R> where(Condition... conditions)
          Add conditions to the query
 UpdateConditionStep<R> where(String sql)
          Add conditions to the query NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity.
 UpdateConditionStep<R> where(String sql, Object... bindings)
          Add conditions to the query NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity.
 UpdateConditionStep<R> whereExists(Select<?> select)
          Add an EXISTS clause to the query
 UpdateConditionStep<R> whereNotExists(Select<?> select)
          Add a NOT EXISTS clause to the query
 
Methods inherited from interface org.jooq.Query
bind, bind, execute, getBindValues, getParam, getParams, getSQL, getSQL
 
Methods inherited from interface org.jooq.Attachable
attach
 
Methods inherited from interface org.jooq.Adapter
internalAPI
 

Method Detail

where

UpdateConditionStep<R> where(Condition... conditions)
Add conditions to the query


where

UpdateConditionStep<R> where(Collection<Condition> conditions)
Add conditions to the query


where

UpdateConditionStep<R> where(String sql)
Add conditions to the query

NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

See Also:
Factory.condition(String)

where

UpdateConditionStep<R> where(String sql,
                             Object... bindings)
Add conditions to the query

NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

See Also:
Factory.condition(String, Object...)

whereExists

UpdateConditionStep<R> whereExists(Select<?> select)
Add an EXISTS clause to the query


whereNotExists

UpdateConditionStep<R> whereNotExists(Select<?> select)
Add a NOT EXISTS clause to the query



Copyright © 2012. All Rights Reserved.