org.hsqldb.jdbc
Class Util

java.lang.Object
  extended by org.hsqldb.jdbc.Util

public class Util
extends Object

Provides driver constants and a gateway from internal HsqlExceptions to external SQLExceptions.

Since:
1.7.2
Author:
Campbell Boucher-Burnet (boucherb@users dot sourceforge.net), Fred Toussi (fredt@users dot sourceforge.net)

Constructor Summary
Util()
           
 
Method Summary
static SQLException connectionClosedException()
           
static SQLException invalidArgument()
           
static SQLException invalidArgument(String name)
           
static SQLException nullArgument()
           
static SQLException outOfRangeArgument()
           
static SQLException outOfRangeArgument(String name)
           
static SQLException sqlException(org.hsqldb.HsqlException e)
           
static SQLException sqlException(org.hsqldb.HsqlException e, Throwable cause)
           
static SQLException sqlException(int id)
           
static SQLException sqlException(int id, int add)
           
static SQLException sqlException(int id, String message)
           
static SQLException sqlException(int id, String message, Throwable cause)
           
static SQLException sqlException(org.hsqldb.result.Result r)
           
static SQLException sqlException(String msg, String sqlstate, int code, Throwable cause)
           
static SQLException sqlException(Throwable t)
           
static SQLException sqlExceptionSQL(int id)
           
static SQLWarning sqlWarning(org.hsqldb.result.Result r)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

sqlException

public static final SQLException sqlException(org.hsqldb.HsqlException e)

sqlException

public static final SQLException sqlException(org.hsqldb.HsqlException e,
                                              Throwable cause)

sqlException

public static final SQLException sqlException(int id)

sqlExceptionSQL

public static final SQLException sqlExceptionSQL(int id)

sqlException

public static final SQLException sqlException(int id,
                                              String message)

sqlException

public static final SQLException sqlException(int id,
                                              String message,
                                              Throwable cause)

sqlException

public static final SQLException sqlException(int id,
                                              int add)

nullArgument

public static SQLException nullArgument()

invalidArgument

public static SQLException invalidArgument()

invalidArgument

public static SQLException invalidArgument(String name)

outOfRangeArgument

public static SQLException outOfRangeArgument()

outOfRangeArgument

public static SQLException outOfRangeArgument(String name)

connectionClosedException

public static SQLException connectionClosedException()

sqlWarning

public static SQLWarning sqlWarning(org.hsqldb.result.Result r)

sqlException

public static SQLException sqlException(Throwable t)

sqlException

public static SQLException sqlException(org.hsqldb.result.Result r)

sqlException

public static final SQLException sqlException(String msg,
                                              String sqlstate,
                                              int code,
                                              Throwable cause)


Copyright © 2001 - 2010 HSQL Development Group.