|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jolbox.bonecp.PoolUtil
public class PoolUtil
A bunch of generic routines used internally by the pool.
| Constructor Summary | |
|---|---|
PoolUtil()
|
|
| Method Summary | |
|---|---|
static String |
fillLogParams(String sql,
Map<Object,Object> logParams)
Returns sql statement used in this prepared statement together with the parameters. |
protected static String |
prettyPrint(Object obj)
Helper method |
protected static String |
safePrint(Object... o)
Helper method |
static String |
stringifyException(Throwable t)
For backwards compatibility with JDK1.5 (SQLException doesn't accept the original exception). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoolUtil()
| Method Detail |
|---|
public static String fillLogParams(String sql,
Map<Object,Object> logParams)
sql - base sql statementlogParams - parameters to print out
protected static String safePrint(Object... o)
o - items to print
protected static String prettyPrint(Object obj)
obj - item to print
public static String stringifyException(Throwable t)
t - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||