public class JDOUpdateClause extends Object implements UpdateClause<JDOUpdateClause>
| Constructor and Description |
|---|
JDOUpdateClause() |
| 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.
|
JDOUpdateClause |
set(List<? extends Path<?>> paths,
List<?> values)
Set the paths to be updated
|
<T> JDOUpdateClause |
set(Path<T> path,
Expression<? extends T> expression)
Add an expression binding
|
<T> JDOUpdateClause |
set(Path<T> path,
T value)
Add a value binding
|
<T> JDOUpdateClause |
setNull(Path<T> path)
Bind the given path to null
|
JDOUpdateClause |
where(Predicate... o)
Adds the given filter conditions
|
public long execute()
DMLClauseexecute in interface DMLClause<JDOUpdateClause>public JDOUpdateClause set(List<? extends Path<?>> paths, List<?> values)
UpdateClauseset in interface UpdateClause<JDOUpdateClause>public <T> JDOUpdateClause set(Path<T> path, T value)
StoreClauseset in interface StoreClause<JDOUpdateClause>path - path to be updatedvalue - value to setpublic <T> JDOUpdateClause set(Path<T> path, Expression<? extends T> expression)
StoreClauseset in interface StoreClause<JDOUpdateClause>public <T> JDOUpdateClause setNull(Path<T> path)
StoreClausesetNull in interface StoreClause<JDOUpdateClause>public JDOUpdateClause where(Predicate... o)
FilteredClauseSkips null arguments
where in interface FilteredClause<JDOUpdateClause>o - filter conditions to be addedpublic boolean isEmpty()
StoreClauseisEmpty in interface StoreClause<JDOUpdateClause>Copyright © 2007–2014 Mysema Ltd. All rights reserved.