public final class Merge extends CommandWithValues
valuesExpressionList
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
Constructor and Description |
---|
Merge(SessionLocal session,
boolean isReplace) |
Modifier and Type | Method and Description |
---|---|
void |
collectDependencies(java.util.HashSet<DbObject> dependencies)
Find and collect all DbObjects, this Prepared depends on.
|
java.lang.String |
getPlanSQL(int sqlFlags)
Get the SQL statement with the execution plan.
|
java.lang.String |
getStatementName()
Return the name of this statement.
|
Table |
getTable()
Return the target table.
|
int |
getType()
Get the command type as defined in CommandInterface
|
void |
setColumns(Column[] columns) |
void |
setCommand(Command command)
Set the command.
|
void |
setKeys(Column[] keys) |
void |
setQuery(Query query) |
void |
setTable(Table table) |
long |
update(ResultTarget deltaChangeCollector,
DataChangeDeltaTable.ResultOption deltaChangeCollectionMode)
Execute the statement with specified delta change collector and collection mode.
|
addRow
isCacheable, isTransactional, prepare, queryMeta, update
checkCanceled, checkParameters, getCteCleanups, getCurrentRowNumber, getDatabase, getObjectId, getParameters, getPersistedObjectId, getSession, getSimpleSQL, getSQL, getSQLTokens, isQuery, isReadOnly, isRetryable, isWithParamValues, needRecompile, query, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toString
public Merge(SessionLocal session, boolean isReplace)
public void setCommand(Command command)
Prepared
setCommand
in class Prepared
command
- the new commandpublic Table getTable()
DataChangeStatement
getTable
in class DataChangeStatement
public void setTable(Table table)
public void setColumns(Column[] columns)
public void setKeys(Column[] keys)
public void setQuery(Query query)
public long update(ResultTarget deltaChangeCollector, DataChangeDeltaTable.ResultOption deltaChangeCollectionMode)
DataChangeStatement
update
in class DataChangeStatement
deltaChangeCollector
- target resultdeltaChangeCollectionMode
- collection modepublic java.lang.String getPlanSQL(int sqlFlags)
Prepared
getPlanSQL
in class Prepared
sqlFlags
- formatting flagspublic int getType()
Prepared
public java.lang.String getStatementName()
DataChangeStatement
getStatementName
in class DataChangeStatement
public void collectDependencies(java.util.HashSet<DbObject> dependencies)
Prepared
collectDependencies
in class Prepared
dependencies
- collection of dependencies to populate