com.mysema.query.sql.dml
Class SQLUpdateClause

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

public class SQLUpdateClause
extends Object
implements UpdateClause<SQLUpdateClause>

SQLUpdateClause defines a UPDATE clause

Author:
tiwe

Constructor Summary
SQLUpdateClause(Connection connection, SQLTemplates templates, PEntity<?> entity)
           
 
Method Summary
protected  void close(PreparedStatement stmt)
           
 long execute()
          Execute the delete clause and return the amount of updated rows/items
<T> SQLUpdateClause
set(Path<T> path, T value)
          Set the paths to be updated
 SQLUpdateClause 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

SQLUpdateClause

public SQLUpdateClause(Connection connection,
                       SQLTemplates templates,
                       PEntity<?> entity)
Method Detail

close

protected void close(PreparedStatement stmt)

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<SQLUpdateClause>
Returns:

set

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

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

where

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

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


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