simpledb.planner
Class BasicUpdatePlanner

java.lang.Object
  extended by simpledb.planner.BasicUpdatePlanner
All Implemented Interfaces:
UpdatePlanner

public class BasicUpdatePlanner
extends Object
implements UpdatePlanner

The basic planner for SQL update statements.

Author:
sciore

Constructor Summary
BasicUpdatePlanner()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicUpdatePlanner

public BasicUpdatePlanner()
Method Detail

executeDelete

public int executeDelete(DeleteData data,
                         Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified delete statement, and returns the number of affected records.

Specified by:
executeDelete in interface UpdatePlanner
Parameters:
data - the parsed representation of the delete statement
tx - the calling transaction
Returns:
the number of affected records

executeModify

public int executeModify(ModifyData data,
                         Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified modify statement, and returns the number of affected records.

Specified by:
executeModify in interface UpdatePlanner
Parameters:
data - the parsed representation of the modify statement
tx - the calling transaction
Returns:
the number of affected records

executeInsert

public int executeInsert(InsertData data,
                         Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified insert statement, and returns the number of affected records.

Specified by:
executeInsert in interface UpdatePlanner
Parameters:
data - the parsed representation of the insert statement
tx - the calling transaction
Returns:
the number of affected records

executeCreateTable

public int executeCreateTable(CreateTableData data,
                              Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified create table statement, and returns the number of affected records.

Specified by:
executeCreateTable in interface UpdatePlanner
Parameters:
data - the parsed representation of the create table statement
tx - the calling transaction
Returns:
the number of affected records

executeCreateView

public int executeCreateView(CreateViewData data,
                             Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified create view statement, and returns the number of affected records.

Specified by:
executeCreateView in interface UpdatePlanner
Parameters:
data - the parsed representation of the create view statement
tx - the calling transaction
Returns:
the number of affected records

executeCreateIndex

public int executeCreateIndex(CreateIndexData data,
                              Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified create index statement, and returns the number of affected records.

Specified by:
executeCreateIndex in interface UpdatePlanner
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.