T - public class CollUpdateClause<T> extends java.lang.Object implements UpdateClause<CollUpdateClause<T>>
| Constructor and Description |
|---|
CollUpdateClause(Path<T> expr,
java.lang.Iterable<? extends T> col) |
CollUpdateClause(QueryEngine qe,
Path<T> expr,
java.lang.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(java.util.List<? extends Path<?>> p,
java.util.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
|
java.lang.String |
toString() |
CollUpdateClause<T> |
where(Predicate... o)
Adds the given filter conditions
|
public CollUpdateClause(QueryEngine qe, Path<T> expr, java.lang.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(java.util.List<? extends Path<?>> p, java.util.List<?> v)
UpdateClauseset in interface UpdateClause<CollUpdateClause<T>>public CollUpdateClause<T> where(Predicate... o)
FilteredClausewhere in interface FilteredClause<CollUpdateClause<T>>o - filter conditions to be addedpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isEmpty()
StoreClauseisEmpty in interface StoreClause<CollUpdateClause<T>>Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.