net.sf.farrago.db
Class FarragoDbSessionExecutingStmtInfo

java.lang.Object
  extended by net.sf.farrago.db.FarragoDbSessionExecutingStmtInfo
All Implemented Interfaces:
FarragoSessionExecutingStmtInfo

public class FarragoDbSessionExecutingStmtInfo
extends Object
implements FarragoSessionExecutingStmtInfo

Implements the FarragoSessionExecutingStmtInfo interface in the context of a FarragoDbStmtContext.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/db/FarragoDbSessionExecutingStmtInfo.java#8 $
Author:
Jason Ouellette

Field Summary
private  FarragoDatabase database
           
private  long id
           
private  List<String> objectsInUse
           
private  List<Object> parameters
           
private  String sql
           
private  long startTime
           
private  FarragoSessionStmtContext stmt
           
 
Constructor Summary
FarragoDbSessionExecutingStmtInfo(FarragoSessionStmtContext stmt, FarragoDatabase database, String sql, List<Object> parameters, List<String> objectsInUse)
           
 
Method Summary
(package private)  FarragoDatabase getDatabase()
           
 long getId()
          Returns the unique identifier for this executing statement.
 List<String> getObjectsInUse()
          Returns an array of catalog object mofIds in use by this statement.
 List<Object> getParameters()
          Returns any dynamic parameters used to execute this statement.
 String getSql()
          Returns the SQL statement being executed.
 long getStartTime()
          Returns time the statement began executing, in ms.
 FarragoSessionStmtContext getStmtContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private long id

stmt

private FarragoSessionStmtContext stmt

database

private FarragoDatabase database

sql

private String sql

startTime

private long startTime

parameters

private List<Object> parameters

objectsInUse

private List<String> objectsInUse
Constructor Detail

FarragoDbSessionExecutingStmtInfo

FarragoDbSessionExecutingStmtInfo(FarragoSessionStmtContext stmt,
                                  FarragoDatabase database,
                                  String sql,
                                  List<Object> parameters,
                                  List<String> objectsInUse)
Method Detail

getStmtContext

public FarragoSessionStmtContext getStmtContext()
Specified by:
getStmtContext in interface FarragoSessionExecutingStmtInfo
Returns:
the executing statement itself, as a FarragoSessionStmtContext

getDatabase

FarragoDatabase getDatabase()

getId

public long getId()
Description copied from interface: FarragoSessionExecutingStmtInfo
Returns the unique identifier for this executing statement.

Specified by:
getId in interface FarragoSessionExecutingStmtInfo
Returns:
Unique statement ID

getSql

public String getSql()
Description copied from interface: FarragoSessionExecutingStmtInfo
Returns the SQL statement being executed.

Specified by:
getSql in interface FarragoSessionExecutingStmtInfo
Returns:
SQL statement

getParameters

public List<Object> getParameters()
Description copied from interface: FarragoSessionExecutingStmtInfo
Returns any dynamic parameters used to execute this statement.

Specified by:
getParameters in interface FarragoSessionExecutingStmtInfo
Returns:
List of dynamic parameters to the statement

getStartTime

public long getStartTime()
Description copied from interface: FarragoSessionExecutingStmtInfo
Returns time the statement began executing, in ms.

Specified by:
getStartTime in interface FarragoSessionExecutingStmtInfo
Returns:
Start time in ms

getObjectsInUse

public List<String> getObjectsInUse()
Description copied from interface: FarragoSessionExecutingStmtInfo
Returns an array of catalog object mofIds in use by this statement.

Specified by:
getObjectsInUse in interface FarragoSessionExecutingStmtInfo
Returns:
List of catalog object mofIds