saffron
Class PreparedExecution

java.lang.Object
  |
  +--saffron.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/main/saffron/PreparedExecution.java#2 $
Author:
John V. Sichi

Field Summary
private  Statement.Argument[] arguments
           
private  ClassDeclaration decl
           
private  ParseTree parseTree
           
private  Type rowType
           
private  Statement statement
           
 
Constructor Summary
(package private) PreparedExecution(Statement statement, ClassDeclaration decl, ParseTree parseTree, Statement.Argument[] arguments, Type rowType)
           
 
Method Summary
 Object execute()
          Execute the prepared result.
 String getCode()
           
 Type getRowType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statement

private final Statement statement

decl

private final ClassDeclaration decl

parseTree

private final ParseTree parseTree

arguments

private final Statement.Argument[] arguments

rowType

private Type rowType
Constructor Detail

PreparedExecution

PreparedExecution(Statement statement,
                  ClassDeclaration decl,
                  ParseTree parseTree,
                  Statement.Argument[] arguments,
                  Type rowType)
Method Detail

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

getCode

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

getRowType

public Type getRowType()

SourceForge.net_Logo