public class PoolUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Class<Throwable> |
sqlExceptionClass |
| Constructor and Description |
|---|
PoolUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
fillLogParams(String sql,
Map<Object,Object> logParams)
Returns sql statement used in this prepared statement together with the parameters.
|
static SQLException |
generateSQLException(String reason,
Throwable t) |
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).
|
public static String fillLogParams(String sql, Map<Object,Object> logParams)
sql - base sql statementlogParams - parameters to print outprotected static String safePrint(Object... o)
o - items to printprotected static String prettyPrint(Object obj)
obj - item to printpublic static String stringifyException(Throwable t)
t - exceptionpublic static SQLException generateSQLException(String reason, Throwable t)
Copyright © 2009-2013 JolBox. All Rights Reserved.