simpledb.planner
Interface UpdatePlanner

All Known Implementing Classes:
BasicUpdatePlanner, IndexUpdatePlanner

public interface UpdatePlanner

The interface implemented by the planners for SQL insert, delete, and modify statements.

Author:
Edward Sciore

Method Summary
 int executeCreateIndex(CreateIndexData data, Transaction tx)
          Executes the specified create index statement, and returns the number of affected records.
 int executeCreateTable(CreateTableData data, Transaction tx)
          Executes the specified create table statement, and returns the number of affected records.
 int executeCreateView(CreateViewData data, Transaction tx)
          Executes the specified create view statement, and returns the number of affected records.
 int executeDelete(DeleteData data, Transaction tx)
          Executes the specified delete statement, and returns the number of affected records.
 int executeInsert(InsertData data, Transaction tx)
          Executes the specified insert statement, and returns the number of affected records.
 int executeModify(ModifyData data, Transaction tx)
          Executes the specified modify statement, and returns the number of affected records.
 

Method Detail

executeInsert

int executeInsert(InsertData data,
                  Transaction tx)
Executes the specified insert statement, and returns the number of affected records.

Parameters:
data - the parsed representation of the insert statement
tx - the calling transaction
Returns:
the number of affected records

executeDelete

int executeDelete(DeleteData data,
                  Transaction tx)
Executes the specified delete statement, and returns the number of affected records.

Parameters:
data - the parsed representation of the delete statement
tx - the calling transaction
Returns:
the number of affected records

executeModify

int executeModify(ModifyData data,
                  Transaction tx)
Executes the specified modify statement, and returns the number of affected records.

Parameters:
data - the parsed representation of the modify statement
tx - the calling transaction
Returns:
the number of affected records

executeCreateTable

int executeCreateTable(CreateTableData data,
                       Transaction tx)
Executes the specified create table statement, and returns the number of affected records.

Parameters:
data - the parsed representation of the create table statement
tx - the calling transaction
Returns:
the number of affected records

executeCreateView

int executeCreateView(CreateViewData data,
                      Transaction tx)
Executes the specified create view statement, and returns the number of affected records.

Parameters:
data - the parsed representation of the create view statement
tx - the calling transaction
Returns:
the number of affected records

executeCreateIndex

int executeCreateIndex(CreateIndexData data,
                       Transaction tx)
Executes the specified create index statement, and returns the number of affected records.

Parameters:
data - the parsed representation of the create index statement
tx - the calling transaction
Returns:
the number of affected records


Copyright © 2011. All Rights Reserved.