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()
DMLClause
execute
in interface DMLClause<CollUpdateClause<T>>
public <U> CollUpdateClause<T> set(Path<U> path, U value)
StoreClause
set
in interface StoreClause<CollUpdateClause<T>>
path
- path to be updatedvalue
- value to setpublic <U> CollUpdateClause<T> set(Path<U> path, Expression<? extends U> expression)
StoreClause
set
in interface StoreClause<CollUpdateClause<T>>
public <U> CollUpdateClause<T> setNull(Path<U> path)
StoreClause
setNull
in interface StoreClause<CollUpdateClause<T>>
public CollUpdateClause<T> set(List<? extends Path<?>> p, List<?> v)
UpdateClause
set
in interface UpdateClause<CollUpdateClause<T>>
public CollUpdateClause<T> where(Predicate... o)
FilteredClause
Skips null arguments
where
in interface FilteredClause<CollUpdateClause<T>>
o
- filter conditions to be addedpublic boolean isEmpty()
StoreClause
isEmpty
in interface StoreClause<CollUpdateClause<T>>
Copyright © 2007–2015 Mysema Ltd. All rights reserved.