| 
||||||||||
| 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.SQLMergeClause
public class SQLMergeClause
SQLMergeClause defines an MERGE INTO clause
| Field Summary | 
|---|
| Fields inherited from class com.mysema.query.sql.dml.AbstractSQLClause | 
|---|
configuration | 
| Constructor Summary | |
|---|---|
SQLMergeClause(Connection connection,
               Configuration configuration,
               RelationalPath<?> entity)
 | 
|
SQLMergeClause(Connection connection,
               SQLTemplates templates,
               RelationalPath<?> entity)
 | 
|
| Method Summary | ||
|---|---|---|
 SQLMergeClause | 
addBatch()
Add the current state of bindings as a batch item  | 
|
 SQLMergeClause | 
addFlag(QueryFlag.Position position,
        String flag)
Add the given String literal at the given position as a query flag  | 
|
protected  void | 
close(PreparedStatement stmt)
 | 
|
 SQLMergeClause | 
columns(Path<?>... columns)
 | 
|
 long | 
execute()
Execute the clause and return the amount of affected rows  | 
|
 SQLMergeClause | 
keys(Path<?>... paths)
Set the keys to be used in the MERGE clause  | 
|
 SQLMergeClause | 
select(SubQueryExpression<?> subQuery)
 | 
|
 | 
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  | 
|
 String | 
toString()
 | 
|
 SQLMergeClause | 
values(Object... v)
 | 
|
| 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 SQLMergeClause(Connection connection,
                      SQLTemplates templates,
                      RelationalPath<?> entity)
public SQLMergeClause(Connection connection,
                      Configuration configuration,
                      RelationalPath<?> entity)
| Method Detail | 
|---|
public SQLMergeClause addFlag(QueryFlag.Position position,
                              String flag)
position - flag - 
public SQLMergeClause addBatch()
public SQLMergeClause columns(Path<?>... columns)
protected void close(PreparedStatement stmt)
public long execute()
DMLClause
execute in interface DMLClause<SQLMergeClause>public SQLMergeClause keys(Path<?>... paths)
paths - 
public SQLMergeClause select(SubQueryExpression<?> subQuery)
public <T> SQLMergeClause set(Path<T> path,
                              @Nullable
                              T value)
StoreClause
set in interface StoreClause<SQLMergeClause>path - path to be updatedvalue - value to set
public <T> SQLMergeClause set(Path<T> path,
                              Expression<? extends T> expression)
StoreClause
set in interface StoreClause<SQLMergeClause>public <T> SQLMergeClause setNull(Path<T> path)
StoreClause
setNull in interface StoreClause<SQLMergeClause>public String toString()
toString in class Objectpublic SQLMergeClause values(Object... v)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||