com.mysema.query.jdo.dml
Class JDOQLUpdateClause

java.lang.Object
  extended by com.mysema.query.jdo.dml.JDOQLUpdateClause
All Implemented Interfaces:
DMLClause<JDOQLUpdateClause>, StoreClause<JDOQLUpdateClause>, UpdateClause<JDOQLUpdateClause>, FilteredClause<JDOQLUpdateClause>

public class JDOQLUpdateClause
extends Object
implements UpdateClause<JDOQLUpdateClause>

UpdateClause implementation for JDO

Author:
tiwe

Constructor Summary
JDOQLUpdateClause()
           
 
Method Summary
 long execute()
          Execute the clause and return the amount of affected rows
 JDOQLUpdateClause set(List<? extends Path<?>> paths, List<?> values)
          Set the paths to be updated
<T> JDOQLUpdateClause
set(Path<T> path, Expression<? extends T> expression)
          Add an expression binding
<T> JDOQLUpdateClause
set(Path<T> path, T value)
          Add a value binding
<T> JDOQLUpdateClause
setNull(Path<T> path)
          Bind the given path to null
 JDOQLUpdateClause where(Predicate... o)
          Adds the given filter conditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOQLUpdateClause

public JDOQLUpdateClause()
Method Detail

execute

public long execute()
Description copied from interface: DMLClause
Execute the clause and return the amount of affected rows

Specified by:
execute in interface DMLClause<JDOQLUpdateClause>
Returns:

set

public JDOQLUpdateClause set(List<? extends Path<?>> paths,
                             List<?> values)
Description copied from interface: UpdateClause
Set the paths to be updated

Specified by:
set in interface UpdateClause<JDOQLUpdateClause>
Returns:

set

public <T> JDOQLUpdateClause set(Path<T> path,
                                 T value)
Description copied from interface: StoreClause
Add a value binding

Specified by:
set in interface StoreClause<JDOQLUpdateClause>
Parameters:
path - path to be updated
value - value to set
Returns:

set

public <T> JDOQLUpdateClause set(Path<T> path,
                                 Expression<? extends T> expression)
Description copied from interface: StoreClause
Add an expression binding

Specified by:
set in interface StoreClause<JDOQLUpdateClause>
Returns:

setNull

public <T> JDOQLUpdateClause setNull(Path<T> path)
Description copied from interface: StoreClause
Bind the given path to null

Specified by:
setNull in interface StoreClause<JDOQLUpdateClause>
Returns:

where

public JDOQLUpdateClause where(Predicate... o)
Description copied from interface: FilteredClause
Adds the given filter conditions

Specified by:
where in interface FilteredClause<JDOQLUpdateClause>
Parameters:
o - filter conditions to be added
Returns:


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.