net.sf.saffron.oj.stmt
Class PreparedExecution

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

public class PreparedExecution
extends Object
implements PreparedResult

PreparedExecution is a PreparedResult of a statement for which Java code was generated by preparation.

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

Field Summary
private  BoundMethod boundMethod
           
private  boolean isDml
           
private  ParseTree parseTree
           
private  SaffronType rowType
           
 
Constructor Summary
(package private) PreparedExecution(ParseTree parseTree, SaffronType rowType, boolean isDml, BoundMethod boundMethod)
           
 
Method Summary
 Object execute()
          Execute the prepared result.
 String getCode()
           
 Method getMethod()
           
 SaffronType getRowType()
           
 boolean isDml()
           
 void setArgs(Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parseTree

private final ParseTree parseTree

rowType

private final SaffronType rowType

isDml

private final boolean isDml

boundMethod

private final BoundMethod boundMethod
Constructor Detail

PreparedExecution

PreparedExecution(ParseTree parseTree,
                  SaffronType rowType,
                  boolean isDml,
                  BoundMethod boundMethod)
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.

getRowType

public SaffronType getRowType()

getMethod

public Method getMethod()

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

setArgs

public void setArgs(Object[] args)

SourceForge.net_Logo