com.jolbox.bonecp
Class PoolUtil

java.lang.Object
  extended by com.jolbox.bonecp.PoolUtil

public class PoolUtil
extends java.lang.Object

A bunch of generic routines used internally by the pool.

Author:
wallacew

Constructor Summary
PoolUtil()
           
 
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
 

Constructor Detail

PoolUtil

public PoolUtil()
Method Detail

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 statement
logParams - 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.