net.sf.saffron.oj.stmt
Class PreparedExplanation

java.lang.Object
  |
  +--net.sf.saffron.oj.stmt.PreparedExplanation
All Implemented Interfaces:
PreparedResult

public class PreparedExplanation
extends Object
implements PreparedResult

PreparedExplanation is a PreparedResult for an EXPLAIN PLAN statement. It's always good to have an explanation prepared.

Version:
$Id: //open/saffron/src/net/sf/saffron/oj/stmt/PreparedExplanation.java#3 $
Author:
John V. Sichi

Field Summary
private  SaffronRel rel
           
 
Constructor Summary
(package private) PreparedExplanation(SaffronRel rel)
           
 
Method Summary
 Object execute()
          Execute the prepared result.
static ResultSet executeStatic(String explanation)
           
 String getCode()
           
 boolean isDml()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rel

private final SaffronRel rel
Constructor Detail

PreparedExplanation

PreparedExplanation(SaffronRel rel)
Method Detail

getCode

public String getCode()
Specified by:
getCode in interface PreparedResult
Returns:
the code generated by preparation

isDml

public boolean isDml()
Specified by:
isDml in interface PreparedResult
Returns:
true iff this result is for a DML statement, in which case the result set is one row with one column containing the number of rows affected.

execute

public Object execute()
Description copied from interface: PreparedResult
Execute the prepared result.

Specified by:
execute in interface PreparedResult
Returns:
producer of rows resulting from execution

executeStatic

public static ResultSet executeStatic(String explanation)

SourceForge.net_Logo