public class UpsertCommand extends ChildTableUpdater
| Constructor and Description |
|---|
UpsertCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdateColumn(ColumnIdentifier col) |
void |
addUpdateValue(Selectable val) |
protected void |
buildBindVariables() |
boolean |
execute(Database database)
Executes an SQL statement that may return multiple results.
|
AxionResultSet |
executeQuery(Database database)
Unsupported, use
executeUpdate(org.axiondb.Database)instead. |
int |
executeUpdate(Database db)
Executes an SQL that may add, delete or modify zero or more rows within the
database, such as an INSERT, UPDATE or DELETE statement.
|
Selectable |
getCondition() |
org.axiondb.engine.commands.UpsertCommand.ExceptionWhenClause |
getExceptionWhenClause() |
java.util.Iterator |
getInsertValueIterator() |
java.util.Iterator |
getUpdateValueIterator() |
SubSelectCommand |
getUsingSubSelectCommand() |
protected RowDecorator |
makeTargetRowDecorator() |
protected void |
resolve(Database db) |
void |
setColumnsForInsert(java.util.List columnForInsert) |
void |
setCondition(Selectable condition) |
void |
setExceptionWhenClause(DMLWhenClause w,
TableIdentifier t,
java.util.List cols,
java.util.List vals) |
void |
setSelectCommand(SubSelectCommand command) |
void |
setSourceTable(TableIdentifier table) |
void |
setTargetTable(TableIdentifier table) |
void |
setUsingSubSelectAlias(java.lang.String alias) |
void |
setUsingSubSelectCommand(SubSelectCommand command) |
void |
setValuesForInsert(java.util.List valuesForInsert) |
deleteOrSetNullChildRows, deleteOrSetNullChildRows, updateOrSetNullChildRows, updateOrSetNullChildRowsassertNotReadOnly, attemptToConvertValue, bindAll, clearBindings, createResolveSelectableVisitor, executeQuery, getBindVariableIterator, getBindVariableIterator, getBindVariables, getBindVariableVisitor, getColIdentifierList, getCommitSize, getEffectedRowCount, getResultSet, getRowIterator, makeRowDecorator, populateDefaultValues, populateSequenceColumns, resolveGeneratedColumns, resolveGeneratedColumns, resolveSelectable, resolveSelectable, resolveSelectableList, resolveSelectableList, setBindVariableVisitor, setDeferAllConstraintIfRequired, setEffectedRowCount, setResultSet, updateGeneratedValuespublic void addUpdateColumn(ColumnIdentifier col)
public void addUpdateValue(Selectable val)
public boolean execute(Database database) throws AxionException
AxionCommandResultSets were generated,
false otherwiseAxionExceptionStatement.execute(java.lang.String),
PreparedStatement.execute()public AxionResultSet executeQuery(Database database) throws AxionException
executeUpdate(org.axiondb.Database)instead.ResultSetjava.lang.UnsupportedOperationExceptionAxionExceptionStatement.executeQuery(java.lang.String),
PreparedStatement.executeQuery()public int executeUpdate(Database db) throws AxionException
AxionCommandAxionExceptionStatement.executeUpdate(java.lang.String),
PreparedStatement.executeUpdate()public void setColumnsForInsert(java.util.List columnForInsert)
public void setCondition(Selectable condition)
public Selectable getCondition()
public void setExceptionWhenClause(DMLWhenClause w, TableIdentifier t, java.util.List cols, java.util.List vals)
public org.axiondb.engine.commands.UpsertCommand.ExceptionWhenClause getExceptionWhenClause()
public void setSelectCommand(SubSelectCommand command)
public void setSourceTable(TableIdentifier table)
public void setTargetTable(TableIdentifier table)
public void setUsingSubSelectAlias(java.lang.String alias)
public void setUsingSubSelectCommand(SubSelectCommand command)
public SubSelectCommand getUsingSubSelectCommand()
public void setValuesForInsert(java.util.List valuesForInsert)
protected void buildBindVariables()
buildBindVariables in class BaseAxionCommandpublic java.util.Iterator getInsertValueIterator()
public java.util.Iterator getUpdateValueIterator()
protected void resolve(Database db) throws AxionException
AxionExceptionprotected final RowDecorator makeTargetRowDecorator()