- java.lang.Object
-
- org.hsqldb.jdbc.JDBCUtil
-
public final class JDBCUtil extends java.lang.ObjectProvides driver constants and a gateway from internal HsqlExceptions to external SQLExceptions.- Since:
- HSQLDB 1.7.2
- Author:
- Campbell Burnet (campbell-burnet@users dot sourceforge.net), Fred Toussi (fredt@users dot sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description JDBCUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.sql.SQLExceptionconnectionClosedException()static java.sql.SQLExceptioninvalidArgument()static java.sql.SQLExceptioninvalidArgument(int id)static java.sql.SQLExceptioninvalidArgument(java.lang.String name)static java.sql.SQLExceptionnullArgument()static java.sql.SQLExceptionoutOfRangeArgument()static java.sql.SQLExceptionoutOfRangeArgument(java.lang.String name)static java.sql.SQLExceptionsqlException(int id)static java.sql.SQLExceptionsqlException(int id, int add)static java.sql.SQLExceptionsqlException(int id, java.lang.String message)static java.sql.SQLExceptionsqlException(int id, java.lang.String message, java.lang.Throwable cause)static java.sql.SQLExceptionsqlException(java.lang.String msg, java.lang.String sqlstate, int code, java.lang.Throwable cause)static java.sql.SQLExceptionsqlException(java.lang.Throwable t)static java.sql.SQLExceptionsqlException(org.hsqldb.HsqlException e)static java.sql.SQLExceptionsqlException(org.hsqldb.HsqlException e, java.lang.Throwable cause)static java.sql.SQLExceptionsqlException(org.hsqldb.result.Result r)static java.sql.SQLExceptionsqlExceptionSQL(int id)static java.sql.SQLWarningsqlWarning(org.hsqldb.result.Result r)
-
-
-
Method Detail
-
sqlException
public static java.sql.SQLException sqlException(org.hsqldb.HsqlException e)
-
sqlException
public static java.sql.SQLException sqlException(org.hsqldb.HsqlException e, java.lang.Throwable cause)
-
sqlException
public static java.sql.SQLException sqlException(int id)
-
sqlExceptionSQL
public static java.sql.SQLException sqlExceptionSQL(int id)
-
sqlException
public static java.sql.SQLException sqlException(int id, java.lang.String message)
-
sqlException
public static java.sql.SQLException sqlException(int id, java.lang.String message, java.lang.Throwable cause)
-
sqlException
public static java.sql.SQLException sqlException(int id, int add)
-
nullArgument
public static java.sql.SQLException nullArgument()
-
invalidArgument
public static java.sql.SQLException invalidArgument()
-
invalidArgument
public static java.sql.SQLException invalidArgument(java.lang.String name)
-
invalidArgument
public static java.sql.SQLException invalidArgument(int id)
-
outOfRangeArgument
public static java.sql.SQLException outOfRangeArgument()
-
outOfRangeArgument
public static java.sql.SQLException outOfRangeArgument(java.lang.String name)
-
connectionClosedException
public static java.sql.SQLException connectionClosedException()
-
sqlWarning
public static java.sql.SQLWarning sqlWarning(org.hsqldb.result.Result r)
-
sqlException
public static java.sql.SQLException sqlException(java.lang.Throwable t)
-
sqlException
public static java.sql.SQLException sqlException(org.hsqldb.result.Result r)
-
sqlException
public static java.sql.SQLException sqlException(java.lang.String msg, java.lang.String sqlstate, int code, java.lang.Throwable cause)
-
-