Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » sql » [javadoc | source]
org.apache.openjpa.jdbc.sql
public class: SQLExceptions [javadoc | source]
java.lang.Object
   org.apache.openjpa.jdbc.sql.SQLExceptions
Helper class for converting a SQLException into the appropriate OpenJPA type.
Method from org.apache.openjpa.jdbc.sql.SQLExceptions Summary:
getStore,   getStore,   getStore,   getStore,   getStore,   getStore,   getStore,   narrow
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.sql.SQLExceptions Detail:
 public static OpenJPAException getStore(SQLException se) 
 public static OpenJPAException getStore(SQLException se,
    Object failed) 
 public static OpenJPAException getStore(SQLException se,
    DBDictionary dict) 
 public static OpenJPAException getStore(SQLException se,
    Object failed,
    DBDictionary dict) 
 public static OpenJPAException getStore(Message msg,
    SQLException se,
    DBDictionary dict) 
 public static OpenJPAException getStore(String msg,
    SQLException se,
    DBDictionary dict) 
 public static OpenJPAException getStore(String msg,
    SQLException se,
    Object failed,
    DBDictionary dict) 
 public 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. 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 .