com.mysema.query.jdoql.dml
Class JDOQLUpdateClause

java.lang.Object
  extended by com.mysema.query.jdoql.dml.JDOQLUpdateClause
All Implemented Interfaces:
UpdateClause<JDOQLUpdateClause>

public class JDOQLUpdateClause
extends Object
implements UpdateClause<JDOQLUpdateClause>

UpdateClause implementation for JDO

Author:
tiwe

Constructor Summary
JDOQLUpdateClause(javax.jdo.PersistenceManager persistenceManager, PEntity<?> entity)
           
JDOQLUpdateClause(javax.jdo.PersistenceManager persistenceManager, PEntity<?> entity, JDOQLTemplates templates)
           
 
Method Summary
 long execute()
          Execute the delete clause and return the amount of updated rows/items
<T> JDOQLUpdateClause
set(Path<T> path, T value)
          Set the paths to be updated
 JDOQLUpdateClause where(EBoolean... o)
          Defines the filter constraints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOQLUpdateClause

public JDOQLUpdateClause(javax.jdo.PersistenceManager persistenceManager,
                         PEntity<?> entity)

JDOQLUpdateClause

public JDOQLUpdateClause(javax.jdo.PersistenceManager persistenceManager,
                         PEntity<?> entity,
                         JDOQLTemplates templates)
Method Detail

execute

public long execute()
Description copied from interface: UpdateClause
Execute the delete clause and return the amount of updated rows/items

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

set

public <T> JDOQLUpdateClause set(Path<T> path,
                                 T value)
Description copied from interface: UpdateClause
Set the paths to be updated

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

where

public JDOQLUpdateClause where(EBoolean... o)
Description copied from interface: UpdateClause
Defines the filter constraints

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


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