net.wgen.op.db
Class CallExecutionInfo

java.lang.Object
  extended bynet.wgen.op.db.CallExecutionInfo
All Implemented Interfaces:
java.io.Serializable

public class CallExecutionInfo
extends java.lang.Object
implements java.io.Serializable

Information about the execution of a DatabaseCall. This is used as an internal field of the DatabaseCall.

Version:
$Id: CallExecutionInfo.html,v 1.2 2007/01/28 04:09:36 paulfeuer Exp $
Author:
Paul Feuer, Wireless Generation, Inc.
See Also:
Serialized Form

Field Summary
private  boolean _error
           
private  java.lang.String _errorMessage
           
private  boolean _executed
          Whether or not this call was executed.
private  java.lang.String _executedAgainst
          The url of the connection that executed this call.
private  java.lang.String _executedAs
          The database user that execute this call.
private  long _executionTimestamp
          Set immediately after the execution or failure of the call.
private  int _totalRows
           
private  long _totalTime
           
 
Constructor Summary
CallExecutionInfo()
           
 
Method Summary
 java.lang.String getErrorMessage()
          The error message, if any.
 java.lang.String getExecutedAgainst()
          The connection url of the database connection that was used to execute the call.
 java.lang.String getExecutedAs()
          The user name of the database connection that was used to execute the call.
 long getExecutionTimestamp()
          The time at which the call was executed or failed.
 int getTotalRows()
          The rows returned in ResultSets by the call.
 long getTotalTime()
          The time elapsed during execution of the call and handling of its outputs.
 boolean isError()
          Whether or not there was an error during the call's execution or output handling.
 boolean isExecuted()
          Whether or not the call was executed.
 void setError(boolean error)
          Whether or not there was an error during the call's execution or output handling.
 void setErrorMessage(java.lang.String errorMessage)
           
 void setExecuted()
          Records that this call has been executed and records the system time in the executionInfo.
 void setExecutedAgainst(java.lang.String executedAgainst)
           
 void setExecutedAs(java.lang.String executedAs)
           
 void setExecutionTimestamp(long executionTimestamp)
          The time at which the call was executed or failed.
 void setTotalRows(int totalRows)
          The rows returned in ResultSets by the call.
 void setTotalTime(long totalTime)
          The total time elapsed by the call execution and the handling of the call's outputs.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_executionTimestamp

private long _executionTimestamp
Set immediately after the execution or failure of the call.


_totalTime

private long _totalTime

_totalRows

private int _totalRows

_executed

private boolean _executed
Whether or not this call was executed.


_error

private boolean _error

_executedAs

private java.lang.String _executedAs
The database user that execute this call.


_executedAgainst

private java.lang.String _executedAgainst
The url of the connection that executed this call.


_errorMessage

private java.lang.String _errorMessage
Constructor Detail

CallExecutionInfo

public CallExecutionInfo()
Method Detail

getExecutionTimestamp

public long getExecutionTimestamp()
The time at which the call was executed or failed.


setExecutionTimestamp

public void setExecutionTimestamp(long executionTimestamp)
The time at which the call was executed or failed. Called by the setExecuted method.

See Also:
setExecuted()

getTotalTime

public long getTotalTime()
The time elapsed during execution of the call and handling of its outputs.


setTotalTime

public void setTotalTime(long totalTime)
The total time elapsed by the call execution and the handling of the call's outputs.

See Also:
CallExecutorDB.processPostCallOptions(DatabaseCall)

getTotalRows

public int getTotalRows()
The rows returned in ResultSets by the call.


setTotalRows

public void setTotalRows(int totalRows)
The rows returned in ResultSets by the call.


isError

public boolean isError()
Whether or not there was an error during the call's execution or output handling.


setError

public void setError(boolean error)
Whether or not there was an error during the call's execution or output handling.


getErrorMessage

public java.lang.String getErrorMessage()
The error message, if any.


setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)

isExecuted

public final boolean isExecuted()
Whether or not the call was executed.


setExecuted

public final void setExecuted()
Records that this call has been executed and records the system time in the executionInfo.


getExecutedAs

public java.lang.String getExecutedAs()
The user name of the database connection that was used to execute the call.


setExecutedAs

public void setExecutedAs(java.lang.String executedAs)

getExecutedAgainst

public java.lang.String getExecutedAgainst()
The connection url of the database connection that was used to execute the call.


setExecutedAgainst

public void setExecutedAgainst(java.lang.String executedAgainst)

toString

public java.lang.String toString()