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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rel
private final SaffronRel rel
PreparedExplanation
PreparedExplanation(SaffronRel rel)
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)