|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.jdbc.sql.SQLExceptions
public class SQLExceptions
Helper class for converting a SQLException
into
the appropriate OpenJPA type.
Constructor Summary | |
---|---|
SQLExceptions()
|
Method Summary | |
---|---|
static OpenJPAException |
getStore(Localizer.Message msg,
SQLException se,
DBDictionary dict)
Convert the specified exception into a StoreException . |
static OpenJPAException |
getStore(SQLException se)
Convert the specified exception into a StoreException . |
static OpenJPAException |
getStore(SQLException se,
DBDictionary dict)
Convert the specified exception into a StoreException . |
static OpenJPAException |
getStore(SQLException se,
Object failed)
Convert the specified exception into a OpenJPAException . |
static OpenJPAException |
getStore(SQLException se,
Object failed,
DBDictionary dict)
Convert the specified exception into a StoreException . |
static OpenJPAException |
getStore(String msg,
SQLException se,
DBDictionary dict)
Convert the specified exception into a StoreException . |
static OpenJPAException |
getStore(String msg,
SQLException se,
Object failed,
DBDictionary dict)
Convert the specified exception into a StoreException . |
static OpenJPAException |
narrow(String msg,
SQLException se,
DBDictionary dict)
Narrows the given SQLException to a specific type of StoreException by analyzing the
SQLState code supplied by SQLException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLExceptions()
Method Detail |
---|
public static OpenJPAException getStore(SQLException se)
StoreException
.
public static OpenJPAException getStore(SQLException se, Object failed)
OpenJPAException
.
public static OpenJPAException getStore(SQLException se, DBDictionary dict)
StoreException
.
public static OpenJPAException getStore(SQLException se, Object failed, DBDictionary dict)
StoreException
.
public static OpenJPAException getStore(Localizer.Message msg, SQLException se, DBDictionary dict)
StoreException
.
public static OpenJPAException getStore(String msg, SQLException se, DBDictionary dict)
StoreException
.
public static OpenJPAException getStore(String msg, SQLException se, Object failed, DBDictionary dict)
StoreException
.
public static OpenJPAException narrow(String msg, SQLException se, DBDictionary dict)
StoreException
by analyzing the
SQLState code supplied by SQLException. Each database-specific
dictionary
can supply a set of error codes that will
map to a specific specific type of StoreException via
getSQLStates()
method.
The default behavior is to return generic StoreException
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation is deprecated and will be removed in the next release of WebLogic Server.