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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parseTree
private final ParseTree parseTree
rowType
private final SaffronType rowType
isDml
private final boolean isDml
boundMethod
private final BoundMethod boundMethod
PreparedExecution
PreparedExecution(ParseTree parseTree,
SaffronType rowType,
boolean isDml,
BoundMethod boundMethod)
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)