[Proxool-cvs] proxool/src/java/org/logicalcobwebs/proxool AbstractProxyStatement.java,1.18,1.19 Conn
UNMAINTAINED!
Brought to you by:
billhorsman
Update of /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11741/src/java/org/logicalcobwebs/proxool Modified Files: AbstractProxyStatement.java ConnectionInfo.java ConnectionInfoIF.java ProxyConnection.java ProxyConnectionIF.java Log Message: Added lastSqlCall when trace is on. Index: AbstractProxyStatement.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/AbstractProxyStatement.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** AbstractProxyStatement.java 2 Jun 2004 20:04:54 -0000 1.18 --- AbstractProxyStatement.java 26 Sep 2005 10:01:31 -0000 1.19 *************** *** 183,186 **** --- 183,187 ---- // Send to any listener connectionPool.onExecute(sqlLog.toString(), (System.currentTimeMillis() - startTime), exception); + ((ProxyConnection) proxyConnection).setLastSqlCall(sqlLog.toString()); } *************** *** 266,269 **** --- 267,273 ---- Revision history: $Log$ + Revision 1.19 2005/09/26 10:01:31 billhorsman + Added lastSqlCall when trace is on. + Revision 1.18 2004/06/02 20:04:54 billhorsman Fixed sql log: boolean and date now supported, and last parameter is included Index: ConnectionInfo.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/ConnectionInfo.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ConnectionInfo.java 30 Oct 2003 00:05:50 -0000 1.6 --- ConnectionInfo.java 26 Sep 2005 10:01:31 -0000 1.7 *************** *** 43,46 **** --- 43,47 ---- private String delegateHashcode; + private String lastSqlCall; public Date getBirthDate() { *************** *** 153,156 **** --- 154,165 ---- return new Long(((ConnectionInfoIF) o).getId()).compareTo(new Long(getId())); } + + public String getLastSqlCall() { + return lastSqlCall; + } + + public void setLastSqlCall(String lastSqlCall) { + this.lastSqlCall = lastSqlCall; + } } *************** *** 159,162 **** --- 168,174 ---- Revision history: $Log$ + Revision 1.7 2005/09/26 10:01:31 billhorsman + Added lastSqlCall when trace is on. + Revision 1.6 2003/10/30 00:05:50 billhorsman now implements Comparable (using ID) Index: ConnectionInfoIF.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/ConnectionInfoIF.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ConnectionInfoIF.java 30 Oct 2003 00:05:50 -0000 1.10 --- ConnectionInfoIF.java 26 Sep 2005 10:01:31 -0000 1.11 *************** *** 147,150 **** --- 147,157 ---- String getDelegateUrl(); + /** + * A log of the last SQL used on this connection. Only populated + * if {@link org.logicalcobwebs.proxool.ConnectionPoolDefinitionIF#isTrace()} + * is enabled. + * @return the most recent SQL to be used + */ + String getLastSqlCall(); } *************** *** 152,155 **** --- 159,165 ---- Revision history: $Log$ + Revision 1.11 2005/09/26 10:01:31 billhorsman + Added lastSqlCall when trace is on. + Revision 1.10 2003/10/30 00:05:50 billhorsman now implements Comparable (using ID) Index: ProxyConnection.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/ProxyConnection.java,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** ProxyConnection.java 4 May 2005 16:24:13 -0000 1.34 --- ProxyConnection.java 26 Sep 2005 10:01:31 -0000 1.35 *************** *** 62,65 **** --- 62,66 ---- private DecimalFormat idFormat = new DecimalFormat("0000"); + private String lastSqlCall; /** * Whether we have invoked a method that requires us to reset *************** *** 468,470 **** --- 469,478 ---- } + public String getLastSqlCall() { + return lastSqlCall; + } + + public void setLastSqlCall(String lastSqlCall) { + this.lastSqlCall = lastSqlCall; + } } Index: ProxyConnectionIF.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/ProxyConnectionIF.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ProxyConnectionIF.java 4 May 2005 16:24:13 -0000 1.5 --- ProxyConnectionIF.java 26 Sep 2005 10:01:31 -0000 1.6 *************** *** 125,128 **** --- 125,129 ---- ConnectionPoolDefinitionIF getDefinition(); + } *************** *** 131,134 **** --- 132,138 ---- Revision history: $Log$ + Revision 1.6 2005/09/26 10:01:31 billhorsman + Added lastSqlCall when trace is on. + Revision 1.5 2005/05/04 16:24:13 billhorsman include a reference to the definition so we can spot it changing. |