T - public class CollUpdateClause<T> extends Object implements UpdateClause<CollUpdateClause<T>>
| Constructor and Description |
|---|
CollUpdateClause(Path<T> expr,
Iterable<? extends T> col) |
CollUpdateClause(QueryEngine qe,
Path<T> expr,
Iterable<? extends T> col) |
| Modifier and Type | Method and Description |
|---|---|
long |
execute()
Execute the clause and return the amount of affected rows
|
boolean |
isEmpty()
Returns true, if no bindings have been set, otherwise false.
|
CollUpdateClause<T> |
set(List<? extends Path<?>> p,
List<?> v)
Set the paths to be updated
|
<U> CollUpdateClause<T> |
set(Path<U> path,
Expression<? extends U> expression)
Add an expression binding
|
<U> CollUpdateClause<T> |
set(Path<U> path,
U value)
Add a value binding
|
<U> CollUpdateClause<T> |
setNull(Path<U> path)
Bind the given path to null
|
String |
toString() |
CollUpdateClause<T> |
where(Predicate... o)
Adds the given filter conditions
|
public CollUpdateClause(QueryEngine qe, Path<T> expr, Iterable<? extends T> col)
public long execute()
DMLClauseexecute in interface DMLClause<CollUpdateClause<T>>public <U> CollUpdateClause<T> set(Path<U> path, U value)
StoreClauseset in interface StoreClause<CollUpdateClause<T>>path - path to be updatedvalue - value to setpublic <U> CollUpdateClause<T> set(Path<U> path, Expression<? extends U> expression)
StoreClauseset in interface StoreClause<CollUpdateClause<T>>public <U> CollUpdateClause<T> setNull(Path<U> path)
StoreClausesetNull in interface StoreClause<CollUpdateClause<T>>public CollUpdateClause<T> set(List<? extends Path<?>> p, List<?> v)
UpdateClauseset in interface UpdateClause<CollUpdateClause<T>>public CollUpdateClause<T> where(Predicate... o)
FilteredClauseSkips null arguments
where in interface FilteredClause<CollUpdateClause<T>>o - filter conditions to be addedpublic boolean isEmpty()
StoreClauseisEmpty in interface StoreClause<CollUpdateClause<T>>Copyright © 2007–2014 Mysema Ltd. All rights reserved.