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