| Modifier and Type | Class and Description |
|---|---|
| public abstract class | MergeUsing.
Abstract WHEN command of the MERGE statement. |
| public class | |
| public class | |
| public class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Expression | onCondition
ON condition expression. |
| pack-priv TableFilter | sourceTableFilter
Source table filter. |
| private final HashSet | targetRowidsRemembered
Contains _ROWID_ of processed rows. |
| pack-priv TableFilter | targetTableFilter
Target table filter. |
| private ArrayList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public void | collectDependencies(HashSet<DbObject>
collection of dependencies to populate dependencies)Overrides org. Find and collect all DbObjects, this Prepared depends on. |
| pack-priv void | |
| private int | |
| public Expression | |
| public StringBuilder | getPlanSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Overrides org. Appends the SQL statement with the execution plan. |
| public TableFilter | |
| public String | getStatementName()
Implements abstract org. Return the name of this statement. |
| public Table | getTable()
Implements abstract org. Return the target table. |
| public TableFilter | |
| public int | getType()
Implements abstract org. Get the command type as defined in CommandInterface |
| public ArrayList | |
| private int | merge(boolean nullRow, ResultTarget deltaChangeCollector, DataChangeDeltaTable.
|
| public void | |
| public void | |
| public void | |
| public long | update(ResultTarget
target result deltaChangeCollector, DataChangeDeltaTable.collection mode deltaChangeCollectionModeImplements abstract org. Execute the statement with specified delta change collector and collection mode. |
| onCondition | back to summary |
|---|---|
| pack-priv Expression onCondition ON condition expression. | |
| sourceTableFilter | back to summary |
|---|---|
| pack-priv TableFilter sourceTableFilter Source table filter. | |
| targetRowidsRemembered | back to summary |
|---|---|
| private final HashSet<Long> targetRowidsRemembered Contains _ROWID_ of processed rows. Row identities are remembered to prevent duplicate updates of the same row. | |
| targetTableFilter | back to summary |
|---|---|
| pack-priv TableFilter targetTableFilter Target table filter. | |
| when | back to summary |
|---|---|
| private ArrayList<MergeUsing. | |
| MergeUsing | back to summary |
|---|---|
| public MergeUsing(SessionLocal session, TableFilter targetTableFilter) | |
| addWhen | back to summary |
|---|---|
| public void addWhen(MergeUsing. Adds WHEN command.
| |
| checkRights | back to summary |
|---|---|
| private void checkRights() | |
| collectDependencies | back to summary |
|---|---|
| public void collectDependencies(HashSet<DbObject> dependencies) Overrides org. Doc from org. Find and collect all DbObjects, this Prepared depends on. | |
| doPrepare | back to summary |
|---|---|
| pack-priv void doPrepare() Implements abstract org.
| |
| evaluateTriggerMasks | back to summary |
|---|---|
| private int evaluateTriggerMasks() | |
| getOnCondition | back to summary |
|---|---|
| public Expression getOnCondition() | |
| getPlanSQL | back to summary |
|---|---|
| public StringBuilder getPlanSQL(StringBuilder builder, int sqlFlags) Overrides org. Doc from org. Appends the SQL statement with the execution plan.
| |
| getSourceTableFilter | back to summary |
|---|---|
| public TableFilter getSourceTableFilter() | |
| getStatementName | back to summary |
|---|---|
| public String getStatementName() Implements abstract org. Doc from org. Return the name of this statement. | |
| getTable | back to summary |
|---|---|
| public Table getTable() Implements abstract org. Doc from org. Return the target table. | |
| getTargetTableFilter | back to summary |
|---|---|
| public TableFilter getTargetTableFilter() | |
| getType | back to summary |
|---|---|
| public int getType() Implements abstract org. Doc from org. Get the command type as defined in CommandInterface
| |
| getWhen | back to summary |
|---|---|
| public ArrayList | |
| merge | back to summary |
|---|---|
| private int merge(boolean nullRow, ResultTarget deltaChangeCollector, DataChangeDeltaTable. | |
| setOnCondition | back to summary |
|---|---|
| public void setOnCondition(Expression condition) | |
| setSourceTableFilter | back to summary |
|---|---|
| public void setSourceTableFilter(TableFilter sourceTableFilter) | |
| setTargetTableFilter | back to summary |
|---|---|
| public void setTargetTableFilter(TableFilter targetTableFilter) | |
| update | back to summary |
|---|---|
| public long update(ResultTarget deltaChangeCollector, DataChangeDeltaTable. Implements abstract org. Doc from org. Execute the statement with specified delta change collector and collection mode.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Expression | andCondition
AND condition of the command. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract void | |
| pack-priv void | collectDependencies(ExpressionVisitor
the expression visitor visitor)Find and collect all DbObjects, this When object depends on. |
| pack-priv abstract int | |
| public StringBuilder | getSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Implements org. Appends the SQL statement of this object to the specified builder. |
| pack-priv abstract void | merge(SessionLocal
the session session, ResultTarget target result deltaChangeCollector, DataChangeDeltaTable.collection mode deltaChangeCollectionModeMerges rows. |
| pack-priv boolean | Returns: false if this clause may be removedthe session session)Prepares WHEN command. |
| public void |
| andCondition | back to summary |
|---|---|
| pack-priv Expression andCondition AND condition of the command. | |
| When | back to summary |
|---|---|
| pack-priv When() | |
| checkRights | back to summary |
|---|---|
| pack-priv abstract void checkRights() Checks user's INSERT, UPDATE, DELETE permission in appropriate cases. | |
| collectDependencies | back to summary |
|---|---|
| pack-priv void collectDependencies(ExpressionVisitor visitor) Find and collect all DbObjects, this When object depends on.
| |
| evaluateTriggerMasks | back to summary |
|---|---|
| pack-priv abstract int evaluateTriggerMasks() Evaluates trigger mask (UPDATE, INSERT, DELETE).
| |
| getSQL | back to summary |
|---|---|
| public StringBuilder getSQL(StringBuilder builder, int sqlFlags) Implements org. Doc from org. Appends the SQL statement of this object to the specified builder.
| |
| merge | back to summary |
|---|---|
| pack-priv abstract void merge(SessionLocal session, ResultTarget deltaChangeCollector, DataChangeDeltaTable. Merges rows.
| |
| prepare | back to summary |
|---|---|
| pack-priv boolean prepare(SessionLocal session) Prepares WHEN command.
| |
| setAndCondition | back to summary |
|---|---|
| public void setAndCondition(Expression andCondition) Sets the specified AND condition.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | checkRights()
Implements abstract org. Checks user's INSERT, UPDATE, DELETE permission in appropriate cases. |
| pack-priv int | evaluateTriggerMasks()
Implements abstract org. Evaluates trigger mask (UPDATE, INSERT, DELETE). |
| public StringBuilder | getSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Overrides org. Implements org. Appends the SQL statement of this object to the specified builder. |
| pack-priv void | merge(SessionLocal
the session session, ResultTarget target result deltaChangeCollector, DataChangeDeltaTable.collection mode deltaChangeCollectionModeImplements abstract org. Merges rows. |
| WhenMatchedThenDelete | back to summary |
|---|---|
| public WhenMatchedThenDelete() | |
| checkRights | back to summary |
|---|---|
| pack-priv void checkRights() Implements abstract org. Doc from org. Checks user's INSERT, UPDATE, DELETE permission in appropriate cases.
| |
| evaluateTriggerMasks | back to summary |
|---|---|
| pack-priv int evaluateTriggerMasks() Implements abstract org. Doc from org. Evaluates trigger mask (UPDATE, INSERT, DELETE).
| |
| getSQL | back to summary |
|---|---|
| public StringBuilder getSQL(StringBuilder builder, int sqlFlags) Overrides org. Implements org. Doc from org. Appends the SQL statement of this object to the specified builder.
| |
| merge | back to summary |
|---|---|
| pack-priv void merge(SessionLocal session, ResultTarget deltaChangeCollector, DataChangeDeltaTable. Implements abstract org. Doc from org. Merges rows.
| |
| Modifier and Type | Field and Description |
|---|---|
| private SetClauseList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | checkRights()
Implements abstract org. Checks user's INSERT, UPDATE, DELETE permission in appropriate cases. |
| pack-priv void | collectDependencies(ExpressionVisitor
the expression visitor visitor)Overrides org. Find and collect all DbObjects, this When object depends on. |
| pack-priv int | evaluateTriggerMasks()
Implements abstract org. Evaluates trigger mask (UPDATE, INSERT, DELETE). |
| public StringBuilder | getSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Overrides org. Implements org. Appends the SQL statement of this object to the specified builder. |
| pack-priv void | merge(SessionLocal
the session session, ResultTarget target result deltaChangeCollector, DataChangeDeltaTable.collection mode deltaChangeCollectionModeImplements abstract org. Merges rows. |
| pack-priv boolean | prepare(SessionLocal
the session session)Overrides org. Prepares WHEN command. |
| public void |
| setClauseList | back to summary |
|---|---|
| private SetClauseList setClauseList | |
| WhenMatchedThenUpdate | back to summary |
|---|---|
| public WhenMatchedThenUpdate() | |
| checkRights | back to summary |
|---|---|
| pack-priv void checkRights() Implements abstract org. Doc from org. Checks user's INSERT, UPDATE, DELETE permission in appropriate cases.
| |
| collectDependencies | back to summary |
|---|---|
| pack-priv void collectDependencies(ExpressionVisitor visitor) Overrides org. Doc from org. Find and collect all DbObjects, this When object depends on.
| |
| evaluateTriggerMasks | back to summary |
|---|---|
| pack-priv int evaluateTriggerMasks() Implements abstract org. Doc from org. Evaluates trigger mask (UPDATE, INSERT, DELETE).
| |
| getSQL | back to summary |
|---|---|
| public StringBuilder getSQL(StringBuilder builder, int sqlFlags) Overrides org. Implements org. Doc from org. Appends the SQL statement of this object to the specified builder.
| |
| merge | back to summary |
|---|---|
| pack-priv void merge(SessionLocal session, ResultTarget deltaChangeCollector, DataChangeDeltaTable. Implements abstract org. Doc from org. Merges rows.
| |
| prepare | back to summary |
|---|---|
| pack-priv boolean prepare(SessionLocal session) Overrides org. Doc from org. Prepares WHEN command.
| |
| setSetClauseList | back to summary |
|---|---|
| public void setSetClauseList(SetClauseList setClauseList) | |
| Modifier and Type | Field and Description |
|---|---|
| private Column[] | |
| private final Boolean | |
| private final Expression[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | checkRights()
Implements abstract org. Checks user's INSERT, UPDATE, DELETE permission in appropriate cases. |
| pack-priv void | collectDependencies(ExpressionVisitor
the expression visitor visitor)Overrides org. Find and collect all DbObjects, this When object depends on. |
| pack-priv int | evaluateTriggerMasks()
Implements abstract org. Evaluates trigger mask (UPDATE, INSERT, DELETE). |
| public StringBuilder | getSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Overrides org. Implements org. Appends the SQL statement of this object to the specified builder. |
| pack-priv void | merge(SessionLocal
the session session, ResultTarget target result deltaChangeCollector, DataChangeDeltaTable.collection mode deltaChangeCollectionModeImplements abstract org. Merges rows. |
| pack-priv boolean | prepare(SessionLocal
the session session)Overrides org. Prepares WHEN command. |
| columns | back to summary |
|---|---|
| private Column[] columns | |
| overridingSystem | back to summary |
|---|---|
| private final Boolean overridingSystem | |
| values | back to summary |
|---|---|
| private final Expression[] values | |
| WhenNotMatched | back to summary |
|---|---|
| public WhenNotMatched(Column[] columns, Boolean overridingSystem, Expression[] values) | |
| checkRights | back to summary |
|---|---|
| pack-priv void checkRights() Implements abstract org. Doc from org. Checks user's INSERT, UPDATE, DELETE permission in appropriate cases.
| |
| collectDependencies | back to summary |
|---|---|
| pack-priv void collectDependencies(ExpressionVisitor visitor) Overrides org. Doc from org. Find and collect all DbObjects, this When object depends on.
| |
| evaluateTriggerMasks | back to summary |
|---|---|
| pack-priv int evaluateTriggerMasks() Implements abstract org. Doc from org. Evaluates trigger mask (UPDATE, INSERT, DELETE).
| |
| getSQL | back to summary |
|---|---|
| public StringBuilder getSQL(StringBuilder builder, int sqlFlags) Overrides org. Implements org. Doc from org. Appends the SQL statement of this object to the specified builder.
| |
| merge | back to summary |
|---|---|
| pack-priv void merge(SessionLocal session, ResultTarget deltaChangeCollector, DataChangeDeltaTable. Implements abstract org. Doc from org. Merges rows.
| |
| prepare | back to summary |
|---|---|
| pack-priv boolean prepare(SessionLocal session) Overrides org. Doc from org. Prepares WHEN command.
| |