com.mysema.query.sql.dml
Class SQLUpdateClause
java.lang.Object
com.mysema.query.sql.dml.AbstractSQLClause
com.mysema.query.sql.dml.SQLUpdateClause
- All Implemented Interfaces:
- DMLClause<SQLUpdateClause>, StoreClause<SQLUpdateClause>, UpdateClause<SQLUpdateClause>, FilteredClause<SQLUpdateClause>
public class SQLUpdateClause
- extends AbstractSQLClause
- implements UpdateClause<SQLUpdateClause>
SQLUpdateClause defines a UPDATE clause
- Author:
- tiwe
SQLUpdateClause
public SQLUpdateClause(Connection connection,
SQLTemplates templates,
RelationalPath<?> entity)
SQLUpdateClause
public SQLUpdateClause(Connection connection,
Configuration configuration,
RelationalPath<?> entity)
addFlag
public SQLUpdateClause addFlag(QueryFlag.Position position,
String flag)
addBatch
public SQLUpdateClause addBatch()
close
protected void close(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 updatedvalue
- value to set
- Returns:
set
public SQLUpdateClause set(List<? extends Path<?>> paths,
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 String toString()
- Overrides:
toString
in class Object
populate
public SQLUpdateClause populate(Object bean)
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.