| java.lang.Object org.logicalcobwebs.proxool.AbstractProxyStatement
All known Subclasses: org.logicalcobwebs.proxool.ProxyStatement,
AbstractProxyStatement | abstract class AbstractProxyStatement (Code) | | Contains most of the functionality that we require to manipilate the
statement. The subclass of this defines how we delegate to the
real statement.
version: $Revision: 1.22 $, $Date: 2006/03/03 09:58:26 $ author: bill author: $Author: billhorsman $ (current maintainer) since: Proxool 0.7 |
AbstractProxyStatement | public AbstractProxyStatement(Statement statement, ConnectionPool connectionPool, ProxyConnectionIF proxyConnection, String sqlStatement)(Code) | | Parameters: statement - the real statement that we will delegate to Parameters: connectionPool - the connection pool that we are using Parameters: proxyConnection - the connection that was used to create the statement Parameters: sqlStatement - the SQL statement that was used to create this statement(optional, can be null) so that we can use if for tracing. |
appendToSqlLog | protected void appendToSqlLog()(Code) | | Get the parameters that have been built up and use them to fill in any parameters
withing the sqlStatement and produce a log. If the log already exists (for instance,
if a batch is being peformed) then it is appended to the end.
|
getConnectionPool | protected ConnectionPool getConnectionPool()(Code) | | The connection pool we are using
connectionPool |
getDelegateStatement | public Statement getDelegateStatement()(Code) | | Gets the real Statement that we got from the delegate driver
delegate statement |
getStatement | protected Statement getStatement()(Code) | | The real, delegate statement
statement |
isTrace | protected boolean isTrace()(Code) | | |
putParameter | protected void putParameter(int index, Object value)(Code) | | Add a parameter so that we can show its value when tracing
Parameters: index - within the procedure Parameters: value - an object describing its value |
setSqlStatementIfNull | protected void setSqlStatementIfNull(String sqlStatement)(Code) | | Sets sqlStatement if it isn't already set
Parameters: sqlStatement - the statement we are sending the database |
startExecute | protected void startExecute()(Code) | | |
testException | protected boolean testException(Throwable t)(Code) | | Check to see whether an exception is a fatal one. If it is, then throw the connection
away (and it won't be made available again)
Parameters: t - the exception to test |
trace | protected void trace(long startTime, Exception exception) throws SQLException(Code) | | Trace the call that was just made
Parameters: startTime - so we can log how long it took Parameters: exception - if anything went wrong during execution throws: SQLException - if the ConnectionPool.onExecute onExecute method threw one. |
|
|