org.axiondb.engine.commands

Class UpsertCommand

public class UpsertCommand extends ChildTableUpdater

An UPSERT or MERGE command.

Version: $Revision: 1.35 $ $Date: 2006/01/10 21:02:37 $

Author: Ahimanikya Satapathy

Constructor Summary
UpsertCommand()
Method Summary
voidaddUpdateColumn(ColumnIdentifier col)
voidaddUpdateValue(Selectable val)
protected voidbuildBindVariables()
booleanexecute(Database database)
AxionResultSetexecuteQuery(Database database)
Unsupported, use UpsertCommandinstead.
intexecuteUpdate(Database db)
SelectablegetCondition()
UpsertCommand.ExceptionWhenClausegetExceptionWhenClause()
IteratorgetInsertValueIterator()
IteratorgetUpdateValueIterator()
SubSelectCommandgetUsingSubSelectCommand()
protected RowDecoratormakeTargetRowDecorator()
protected voidresolve(Database db)
voidsetColumnsForInsert(List columnForInsert)
voidsetCondition(Selectable condition)
voidsetExceptionWhenClause(DMLWhenClause w, TableIdentifier t, List cols, List vals)
voidsetSelectCommand(SubSelectCommand command)
voidsetSourceTable(TableIdentifier table)
voidsetTargetTable(TableIdentifier table)
voidsetUsingSubSelectAlias(String alias)
voidsetUsingSubSelectCommand(SubSelectCommand command)
voidsetValuesForInsert(List valuesForInsert)

Constructor Detail

UpsertCommand

public UpsertCommand()

Method Detail

addUpdateColumn

public void addUpdateColumn(ColumnIdentifier col)

addUpdateValue

public void addUpdateValue(Selectable val)

buildBindVariables

protected void buildBindVariables()

execute

public boolean execute(Database database)

executeQuery

public AxionResultSet executeQuery(Database database)
Unsupported, use UpsertCommandinstead.

Throws: UnsupportedOperationException

executeUpdate

public int executeUpdate(Database db)

getCondition

public Selectable getCondition()

getExceptionWhenClause

public UpsertCommand.ExceptionWhenClause getExceptionWhenClause()

getInsertValueIterator

public Iterator getInsertValueIterator()

getUpdateValueIterator

public Iterator getUpdateValueIterator()

getUsingSubSelectCommand

public SubSelectCommand getUsingSubSelectCommand()

makeTargetRowDecorator

protected final RowDecorator makeTargetRowDecorator()

resolve

protected void resolve(Database db)

setColumnsForInsert

public void setColumnsForInsert(List columnForInsert)

setCondition

public void setCondition(Selectable condition)

setExceptionWhenClause

public void setExceptionWhenClause(DMLWhenClause w, TableIdentifier t, List cols, List vals)

setSelectCommand

public void setSelectCommand(SubSelectCommand command)

setSourceTable

public void setSourceTable(TableIdentifier table)

setTargetTable

public void setTargetTable(TableIdentifier table)

setUsingSubSelectAlias

public void setUsingSubSelectAlias(String alias)

setUsingSubSelectCommand

public void setUsingSubSelectCommand(SubSelectCommand command)

setValuesForInsert

public void setValuesForInsert(List valuesForInsert)