net.sf.farrago.query
Class FarragoExecutableStmtImpl
java.lang.Object
org.eigenbase.util.CompoundClosableAllocation
net.sf.farrago.util.FarragoCompoundAllocation
net.sf.farrago.query.FarragoExecutableStmtImpl
- All Implemented Interfaces:
- FarragoSessionExecutableStmt, FarragoAllocation, FarragoAllocationOwner, ClosableAllocation, ClosableAllocationOwner
- Direct Known Subclasses:
- FarragoExecutableExplainStmt, FarragoExecutableFennelStmt
abstract class FarragoExecutableStmtImpl
- extends FarragoCompoundAllocation
- implements FarragoSessionExecutableStmt
FarragoExecutableStmtImpl is an abstract base for implementations of
FarragoSessionExecutableStmt.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/query/FarragoExecutableStmtImpl.java#20 $
- Author:
- John V. Sichi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tracer
protected static final Logger tracer
isDml
private final boolean isDml
tableModOp
private final TableModificationRelBase.Operation tableModOp
dynamicParamRowType
private final RelDataType dynamicParamRowType
tableAccessMap
private final TableAccessMap tableAccessMap
FarragoExecutableStmtImpl
protected FarragoExecutableStmtImpl(RelDataType dynamicParamRowType,
boolean isDml,
TableModificationRelBase.Operation tableModOp,
TableAccessMap tableAccessMap)
isDml
public boolean isDml()
- Specified by:
isDml
in interface FarragoSessionExecutableStmt
- Returns:
- true if this statement is DML; false if a query
getTableModOp
public TableModificationRelBase.Operation getTableModOp()
- Specified by:
getTableModOp
in interface FarragoSessionExecutableStmt
- Returns:
- the table modification operation type if this is a table
modification statement; otherwise null
getDynamicParamRowType
public RelDataType getDynamicParamRowType()
- Specified by:
getDynamicParamRowType
in interface FarragoSessionExecutableStmt
- Returns:
- type descriptor for row of dynamic parameters expected by this
stmt
getReferencedObjectIds
public Set<String> getReferencedObjectIds()
- Specified by:
getReferencedObjectIds
in interface FarragoSessionExecutableStmt
- Returns:
- Set of MOFID's of objects accessed when this stmt is executed
getReferencedObjectModTime
public String getReferencedObjectModTime(String mofid)
- Specified by:
getReferencedObjectModTime
in interface FarragoSessionExecutableStmt
- Returns:
- the modification time of an object accessed by this statement, or
null if the modification time is not available
getTableAccessMap
public TableAccessMap getTableAccessMap()
- Specified by:
getTableAccessMap
in interface FarragoSessionExecutableStmt
- Returns:
- map of access modes for all tables referenced
getResultSetTypeMap
public Map<String,RelDataType> getResultSetTypeMap()
- Description copied from interface:
FarragoSessionExecutableStmt
- Map from result set name to row type.
- Specified by:
getResultSetTypeMap
in interface FarragoSessionExecutableStmt
getIterCalcTypeMap
public Map<String,RelDataType> getIterCalcTypeMap()
- Description copied from interface:
FarragoSessionExecutableStmt
- Map from IterCalcRel tag to row type.
- Specified by:
getIterCalcTypeMap
in interface FarragoSessionExecutableStmt