com.mysema.query.collections
Class ColUpdateClause<T>

java.lang.Object
  extended by com.mysema.query.collections.ColUpdateClause<T>
Type Parameters:
T -
All Implemented Interfaces:
DMLClause<ColUpdateClause<T>>, StoreClause<ColUpdateClause<T>>, UpdateClause<ColUpdateClause<T>>, FilteredClause<ColUpdateClause<T>>

public class ColUpdateClause<T>
extends Object
implements UpdateClause<ColUpdateClause<T>>

ColUpdateClause is an implementation of the UpdateClause interface for Querydsl Collections

Author:
tiwe

Constructor Summary
ColUpdateClause(Path<T> expr, Iterable<? extends T> col)
           
ColUpdateClause(QueryEngine qe, Path<T> expr, Iterable<? extends T> col)
           
 
Method Summary
 long execute()
          Execute the clause and return the amount of affected rows
 ColUpdateClause<T> set(List<? extends Path<?>> p, List<?> v)
          Set the paths to be updated
<U> ColUpdateClause<T>
set(Path<U> path, Expression<? extends U> expression)
          Add an expression binding
<U> ColUpdateClause<T>
set(Path<U> path, U value)
          Add a value binding
<U> ColUpdateClause<T>
setNull(Path<U> path)
          Bind the given path to null
 String toString()
           
 ColUpdateClause<T> where(Predicate... o)
          Adds the given filter conditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColUpdateClause

public ColUpdateClause(QueryEngine qe,
                       Path<T> expr,
                       Iterable<? extends T> col)

ColUpdateClause

public ColUpdateClause(Path<T> expr,
                       Iterable<? extends T> col)
Method Detail

execute

public long execute()
Description copied from interface: DMLClause
Execute the clause and return the amount of affected rows

Specified by:
execute in interface DMLClause<ColUpdateClause<T>>
Returns:

set

public <U> ColUpdateClause<T> set(Path<U> path,
                                  U value)
Description copied from interface: StoreClause
Add a value binding

Specified by:
set in interface StoreClause<ColUpdateClause<T>>
Parameters:
path - path to be updated
value - value to set
Returns:

set

public <U> ColUpdateClause<T> set(Path<U> path,
                                  Expression<? extends U> expression)
Description copied from interface: StoreClause
Add an expression binding

Specified by:
set in interface StoreClause<ColUpdateClause<T>>
Returns:

setNull

public <U> ColUpdateClause<T> setNull(Path<U> path)
Description copied from interface: StoreClause
Bind the given path to null

Specified by:
setNull in interface StoreClause<ColUpdateClause<T>>
Returns:

set

public ColUpdateClause<T> set(List<? extends Path<?>> p,
                              List<?> v)
Description copied from interface: UpdateClause
Set the paths to be updated

Specified by:
set in interface UpdateClause<ColUpdateClause<T>>
Returns:

where

public ColUpdateClause<T> where(Predicate... o)
Description copied from interface: FilteredClause
Adds the given filter conditions

Specified by:
where in interface FilteredClause<ColUpdateClause<T>>
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.