com.mysema.query.sql.dml
Class SQLUpdateClause

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

public class SQLUpdateClause
extends java.lang.Object
implements UpdateClause<SQLUpdateClause>

SQLUpdateClause defines a UPDATE clause

Author:
tiwe

Constructor Summary
SQLUpdateClause(java.sql.Connection connection, Configuration configuration, PEntity<?> entity)
           
SQLUpdateClause(java.sql.Connection connection, SQLTemplates templates, PEntity<?> entity)
           
 
Method Summary
protected  void close(java.sql.PreparedStatement stmt)
           
 long execute()
          Execute the clause and return the amount of affected rows
 SQLUpdateClause set(java.util.List<? extends Path<?>> paths, java.util.List<?> values)
          Set the paths to be updated
<T> SQLUpdateClause
set(Path<T> path, T value)
          Add a value binding
 java.lang.String toString()
           
 SQLUpdateClause where(EBoolean... o)
          Defines the filter constraints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLUpdateClause

public SQLUpdateClause(java.sql.Connection connection,
                       SQLTemplates templates,
                       PEntity<?> entity)

SQLUpdateClause

public SQLUpdateClause(java.sql.Connection connection,
                       Configuration configuration,
                       PEntity<?> entity)
Method Detail

close

protected void close(java.sql.PreparedStatement stmt)

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

set

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

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

set

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

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

where

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

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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