com.jolbox.bonecp
Class PoolUtil
java.lang.Object
com.jolbox.bonecp.PoolUtil
public class PoolUtil
- extends java.lang.Object
A bunch of generic routines used internally by the pool.
- Author:
- wallacew
|
Method Summary |
static java.lang.String |
fillLogParams(java.lang.String sql,
java.util.Map<java.lang.Object,java.lang.Object> logParams)
Returns sql statement used in this prepared statement together with the parameters. |
static java.lang.String |
stringifyException(java.lang.Throwable t)
For backwards compatibility with JDK1.5 (SQLException doesn't accept the original exception). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PoolUtil
public PoolUtil()
fillLogParams
public static java.lang.String fillLogParams(java.lang.String sql,
java.util.Map<java.lang.Object,java.lang.Object> logParams)
- Returns sql statement used in this prepared statement together with the parameters.
- Parameters:
sql - base sql statementlogParams - parameters to print out
- Returns:
- returns printable statement
stringifyException
public static java.lang.String stringifyException(java.lang.Throwable t)
- For backwards compatibility with JDK1.5 (SQLException doesn't accept the original exception).
- Parameters:
t - exception
- Returns:
- printStackTrace converted to a string
Copyright © 2009-2011 JolBox. All Rights Reserved.