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()
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(java.util.List<? extends Path<?>> p, java.util.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 java.lang.String toString()
toString
in class java.lang.Object
public boolean isEmpty()
StoreClause
isEmpty
in interface StoreClause<CollUpdateClause<T>>
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.