|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.sql.dml.AbstractSQLClause
com.mysema.query.sql.dml.SQLUpdateClause
public class SQLUpdateClause
SQLUpdateClause defines a UPDATE clause
| Field Summary |
|---|
| Fields inherited from class com.mysema.query.sql.dml.AbstractSQLClause |
|---|
configuration |
| Constructor Summary | |
|---|---|
SQLUpdateClause(java.sql.Connection connection,
Configuration configuration,
RelationalPath<?> entity)
|
|
SQLUpdateClause(java.sql.Connection connection,
SQLTemplates templates,
RelationalPath<?> entity)
|
|
| Method Summary | ||
|---|---|---|
SQLUpdateClause |
addBatch()
|
|
SQLUpdateClause |
addFlag(QueryFlag.Position position,
java.lang.String flag)
|
|
protected void |
close(java.sql.PreparedStatement stmt)
|
|
long |
execute()
Execute the clause and return the amount of affected rows |
|
SQLUpdateClause |
populate(java.lang.Object bean)
|
|
SQLUpdateClause |
set(java.util.List<? extends Path<?>> paths,
java.util.List<?> values)
Set the paths to be updated |
|
|
set(Path<T> path,
Expression<? extends T> expression)
Add an expression binding |
|
|
set(Path<T> path,
T value)
Add a value binding |
|
|
setNull(Path<T> path)
Bind the given path to null |
|
java.lang.String |
toString()
|
|
SQLUpdateClause |
where(Predicate... o)
Adds the given filter conditions |
|
| Methods inherited from class com.mysema.query.sql.dml.AbstractSQLClause |
|---|
setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SQLUpdateClause(java.sql.Connection connection,
SQLTemplates templates,
RelationalPath<?> entity)
public SQLUpdateClause(java.sql.Connection connection,
Configuration configuration,
RelationalPath<?> entity)
| Method Detail |
|---|
public SQLUpdateClause addFlag(QueryFlag.Position position,
java.lang.String flag)
public SQLUpdateClause addBatch()
protected void close(java.sql.PreparedStatement stmt)
public long execute()
DMLClause
execute in interface DMLClause<SQLUpdateClause>
public <T> SQLUpdateClause set(Path<T> path,
T value)
StoreClause
set in interface StoreClause<SQLUpdateClause>path - path to be updatedvalue - value to set
public <T> SQLUpdateClause set(Path<T> path,
Expression<? extends T> expression)
StoreClause
set in interface StoreClause<SQLUpdateClause>public <T> SQLUpdateClause setNull(Path<T> path)
StoreClause
setNull in interface StoreClause<SQLUpdateClause>
public SQLUpdateClause set(java.util.List<? extends Path<?>> paths,
java.util.List<?> values)
UpdateClause
set in interface UpdateClause<SQLUpdateClause>public SQLUpdateClause where(Predicate... o)
FilteredClause
where in interface FilteredClause<SQLUpdateClause>public java.lang.String toString()
toString in class java.lang.Objectpublic SQLUpdateClause populate(java.lang.Object bean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||