Package org.apache.openjpa.jdbc.sql
Class SQLExceptions
java.lang.Object
org.apache.openjpa.jdbc.sql.SQLExceptions
Helper class for converting a
SQLException
into
the appropriate OpenJPA type.- Author:
- Marc Prud'hommeaux
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OpenJPAException
getStore
(String msg, SQLException se, Object failed, DBDictionary dict) Convert the specified exception into aStoreException
.static OpenJPAException
getStore
(String msg, SQLException se, Object failed, DBDictionary dict, int level) Convert the specified exception into aStoreException
.static OpenJPAException
getStore
(String msg, SQLException se, DBDictionary dict) Convert the specified exception into aStoreException
.static OpenJPAException
getStore
(String msg, SQLException se, DBDictionary dict, int level) Convert the specified exception into aStoreException
.static OpenJPAException
getStore
(SQLException se) Convert the specified exception into aStoreException
.static OpenJPAException
getStore
(SQLException se, Object failed) Convert the specified exception into aOpenJPAException
.static OpenJPAException
getStore
(SQLException se, Object failed, DBDictionary dict) Convert the specified exception into aStoreException
.static OpenJPAException
getStore
(SQLException se, Object failed, DBDictionary dict, int level) Convert the specified exception into aStoreException
.static OpenJPAException
getStore
(SQLException se, DBDictionary dict) Convert the specified exception into aStoreException
.static OpenJPAException
getStore
(SQLException se, DBDictionary dict, int level) Convert the specified exception into aStoreException
.static OpenJPAException
getStore
(Localizer.Message msg, SQLException se, DBDictionary dict) Convert the specified exception into aStoreException
.static OpenJPAException
getStore
(Localizer.Message msg, SQLException se, DBDictionary dict, int level) Convert the specified exception into aStoreException
.
-
Constructor Details
-
SQLExceptions
public SQLExceptions()
-
-
Method Details
-
getStore
Convert the specified exception into aStoreException
. -
getStore
Convert the specified exception into aOpenJPAException
. -
getStore
Convert the specified exception into aStoreException
. -
getStore
Convert the specified exception into aStoreException
. -
getStore
Convert the specified exception into aStoreException
. -
getStore
public static OpenJPAException getStore(SQLException se, Object failed, DBDictionary dict, int level) Convert the specified exception into aStoreException
. -
getStore
Convert the specified exception into aStoreException
. -
getStore
public static OpenJPAException getStore(Localizer.Message msg, SQLException se, DBDictionary dict, int level) Convert the specified exception into aStoreException
. -
getStore
Convert the specified exception into aStoreException
. -
getStore
Convert the specified exception into aStoreException
. -
getStore
public static OpenJPAException getStore(String msg, SQLException se, Object failed, DBDictionary dict) Convert the specified exception into aStoreException
. -
getStore
public static OpenJPAException getStore(String msg, SQLException se, Object failed, DBDictionary dict, int level) Convert the specified exception into aStoreException
.
-