query
Class Insert

java.lang.Object
  extended by query.Insert
All Implemented Interfaces:
Plan

 class Insert
extends java.lang.Object
implements Plan

Execution plan for inserting tuples.


Constructor Summary
Insert(AST_Insert tree)
          Optimizes the plan, given the parsed query.
 
Method Summary
 void execute()
          Executes the plan and prints applicable output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Insert

public Insert(AST_Insert tree)
       throws QueryException
Optimizes the plan, given the parsed query.

Throws:
QueryException - if table doesn't exists or values are invalid
Method Detail

execute

public void execute()
Executes the plan and prints applicable output.

Specified by:
execute in interface Plan