public class Merge extends CommandWithValues implements DataChangeStatement
valuesExpressionListcreate, parameters, prepareAlways, session, sqlStatement| Constructor and Description |
|---|
Merge(Session 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(boolean alwaysQuote)
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
|
boolean |
isCacheable() |
boolean |
isTransactional()
Check if this command is transactional.
|
void |
prepare()
Prepare this statement.
|
ResultInterface |
queryMeta()
Get an empty result set containing the meta data.
|
void |
setColumns(Column[] columns) |
void |
setCommand(Command command)
Set the command.
|
void |
setDeltaChangeCollector(ResultTarget deltaChangeCollector,
DataChangeDeltaTable.ResultOption deltaChangeCollectionMode)
Set the delta change collector and collection mode.
|
void |
setKeys(Column[] keys) |
void |
setQuery(Query query) |
void |
setTable(Table table) |
int |
update()
Execute the statement.
|
addRowcheckCanceled, checkParameters, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getSession, getSimpleSQL, getSQL, getSQL, isQuery, isReadOnly, needRecompile, query, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSQLpublic Merge(Session session, boolean isReplace)
public void setCommand(Command command)
PreparedsetCommand in class Preparedcommand - the new commandpublic Table getTable()
DataChangeStatementgetTable in interface DataChangeStatementpublic void setTable(Table table)
public void setColumns(Column[] columns)
public void setKeys(Column[] keys)
public void setQuery(Query query)
public void setDeltaChangeCollector(ResultTarget deltaChangeCollector, DataChangeDeltaTable.ResultOption deltaChangeCollectionMode)
DataChangeStatementsetDeltaChangeCollector in interface DataChangeStatementdeltaChangeCollector - target resultdeltaChangeCollectionMode - collection modepublic int update()
Preparedupdate in interface DataChangeStatementupdate in class Preparedpublic java.lang.String getPlanSQL(boolean alwaysQuote)
PreparedgetPlanSQL in class PreparedalwaysQuote - quote all identifierspublic void prepare()
Preparedprepare in interface DataChangeStatementprepare in class Preparedpublic boolean isTransactional()
PreparedisTransactional in class Preparedpublic ResultInterface queryMeta()
Preparedpublic int getType()
Preparedpublic java.lang.String getStatementName()
DataChangeStatementgetStatementName in interface DataChangeStatementpublic boolean isCacheable()
isCacheable in class Preparedpublic void collectDependencies(java.util.HashSet<DbObject> dependencies)
PreparedcollectDependencies in class Prepareddependencies - collection of dependencies to populate