|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.util.ExceptionHelper
A helper class which endorse dealing with exceptions.
Constructor Summary | |
ExceptionHelper()
|
Method Summary | |
static PersistenceBrokerSQLException |
generateException(java.sql.SQLException ex,
java.lang.String sql,
ClassDescriptor cld,
Logger logger,
java.lang.Object obj)
Method which support the conversion of SQLException to
OJB's runtime exception (with additional message details). |
static PersistenceBrokerSQLException |
generateException(java.sql.SQLException ex,
java.lang.String sql,
ClassDescriptor cld,
ValueContainer[] values,
Logger logger,
java.lang.Object obj)
Method which support the conversion of SQLException to
OJB's runtime exception (with additional message details). |
static PersistenceBrokerSQLException |
generateException(java.lang.String message,
java.sql.SQLException ex,
java.lang.String sql,
ClassDescriptor cld,
ValueContainer[] values,
Logger logger,
java.lang.Object obj)
Method which support the conversion of SQLException to
OJB's runtime exception (with additional message details). |
static PersistenceBrokerSQLException |
generateException(java.lang.String message,
java.sql.SQLException ex,
java.lang.String sql,
Logger logger)
Method which support the conversion of SQLException to
OJB's runtime exception (with additional message details). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExceptionHelper()
Method Detail |
public static PersistenceBrokerSQLException generateException(java.lang.String message, java.sql.SQLException ex, java.lang.String sql, Logger logger)
SQLException
to
OJB's runtime exception (with additional message details).
message
- The error message to use, if null a standard message is used.ex
- The exception to convert (mandatory).sql
- The used sql-statement or null.logger
- The Logger
to log an detailed message
to the specified Logger
or null to skip logging message.
PersistenceBrokerSQLException
based on the specified
arguments.public static PersistenceBrokerSQLException generateException(java.sql.SQLException ex, java.lang.String sql, ClassDescriptor cld, Logger logger, java.lang.Object obj)
SQLException
to
OJB's runtime exception (with additional message details).
ex
- The exception to convert (mandatory).sql
- The used sql-statement or null.cld
- The ClassDescriptor
of the target object or null.logger
- The Logger
to log an detailed message
to the specified Logger
or null to skip logging message.obj
- The target object or null.
PersistenceBrokerSQLException
based on the specified
arguments.public static PersistenceBrokerSQLException generateException(java.sql.SQLException ex, java.lang.String sql, ClassDescriptor cld, ValueContainer[] values, Logger logger, java.lang.Object obj)
SQLException
to
OJB's runtime exception (with additional message details).
ex
- The exception to convert (mandatory).sql
- The used sql-statement or null.cld
- The ClassDescriptor
of the target object or null.values
- The values set in prepared statement or null.logger
- The Logger
to log an detailed message
to the specified Logger
or null to skip logging message.obj
- The target object or null.
PersistenceBrokerSQLException
based on the specified
arguments.public static PersistenceBrokerSQLException generateException(java.lang.String message, java.sql.SQLException ex, java.lang.String sql, ClassDescriptor cld, ValueContainer[] values, Logger logger, java.lang.Object obj)
SQLException
to
OJB's runtime exception (with additional message details).
message
- The error message to use, if null a standard message is used.ex
- The exception to convert (mandatory).sql
- The used sql-statement or null.cld
- The ClassDescriptor
of the target object or null.values
- The values set in prepared statement or null.logger
- The Logger
to log an detailed message
to the specified Logger
or null to skip logging message.obj
- The target object or null.
PersistenceBrokerSQLException
based on the specified
arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |