|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.farrago.jdbc.FarragoJdbcUtil
public class FarragoJdbcUtil
Utility functions for the Farrago JDBC driver.
This class is JDK 1.4 compatible.
| Nested Class Summary | |
|---|---|
static class |
FarragoJdbcUtil.FarragoSqlException
Exception thrown by Farrago JDBC driver. |
private static class |
FarragoJdbcUtil.SerializationChecker
Tests whether an object (in particular an exception) is serializable. |
| Field Summary | |
|---|---|
private static ThreadLocal |
threadChecker
Contains the serialization checker for each thread. |
| Constructor Summary | |
|---|---|
FarragoJdbcUtil()
|
|
| Method Summary | |
|---|---|
static String |
findInputString(Throwable ex)
Walks an exception stack using reflection looking for the original SQL statement that MAY be in the exception stack. |
static SQLException |
newSqlException(String message,
Logger tracer)
Creates a new SQLException. |
static SQLException |
newSqlException(Throwable ex,
Logger tracer)
Converts any Throwable to a SQLException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final ThreadLocal threadChecker
| Constructor Detail |
|---|
public FarragoJdbcUtil()
| Method Detail |
|---|
public static SQLException newSqlException(Throwable ex,
Logger tracer)
ex - Throwable to be convertedtracer - Logger on which to trace exceptions as they are converted;
must not be null
public static SQLException newSqlException(String message,
Logger tracer)
message - detail message, the reason for this exceptiontracer - Logger on which to trace new exceptions; must not be
null
public static String findInputString(Throwable ex)
ex - top of exception stack
null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||