All Packages    This Package  Previous  Next  

Class sqlj.runtime.error.ProfileRefErrors

java.lang.Object
   |
   +----sqlj.runtime.error.Errors
           |
           +----sqlj.runtime.error.ProfileRefErrors

public class ProfileRefErrors
extends Errors
The ProfileRefErrors class contains error formatting routines used by the reference profile implementation. It contains a series of static methods which return strings or raise exceptions whose that have been localized for the local environment.


Variable Index

 o EXCEPTION_IN_CONSTRUCTOR
 o EXPECTED_CALLABLE_STATEMENT
 o EXPECTED_EXECUTE_QUERY
 o EXPECTED_EXECUTE_UPDATE
 o EXPECTED_FOR_UPDATE
 o EXPECTED_PREPARED_STATEMENT
 o INCOMPATIBLE_TYPE
 o INVALID_ITERATOR
 o NO_CALLABLE_STATEMENT
 o NO_PREPARED_STATEMENT
 o UNEXPECTED_CALL
 o UNEXPECTED_PARAMS

Constructor Index

 o ProfileRefErrors()

Method Index

 o raise_EXCEPTION_IN_CONSTRUCTOR(String, Throwable)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_EXPECTED_CALLABLE_STATEMENT(String)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_EXPECTED_EXECUTE_QUERY(String)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_EXPECTED_EXECUTE_UPDATE(String)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_EXPECTED_FOR_UPDATE(int, String)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_EXPECTED_PREPARED_STATEMENT(String)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_INCOMPATIBLE_TYPE(Class, Class)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_INVALID_ITERATOR(Class)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_NO_CALLABLE_STATEMENT()
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_NO_PREPARED_STATEMENT()
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_UNEXPECTED_CALL(String)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_UNEXPECTED_PARAMS(String, int, int)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Variables

 o EXPECTED_EXECUTE_UPDATE
 public static final String EXPECTED_EXECUTE_UPDATE
 o EXPECTED_PREPARED_STATEMENT
 public static final String EXPECTED_PREPARED_STATEMENT
 o EXPECTED_FOR_UPDATE
 public static final String EXPECTED_FOR_UPDATE
 o NO_CALLABLE_STATEMENT
 public static final String NO_CALLABLE_STATEMENT
 o NO_PREPARED_STATEMENT
 public static final String NO_PREPARED_STATEMENT
 o INCOMPATIBLE_TYPE
 public static final String INCOMPATIBLE_TYPE
 o UNEXPECTED_CALL
 public static final String UNEXPECTED_CALL
 o EXPECTED_EXECUTE_QUERY
 public static final String EXPECTED_EXECUTE_QUERY
 o UNEXPECTED_PARAMS
 public static final String UNEXPECTED_PARAMS
 o EXPECTED_CALLABLE_STATEMENT
 public static final String EXPECTED_CALLABLE_STATEMENT
 o INVALID_ITERATOR
 public static final String INVALID_ITERATOR
 o EXCEPTION_IN_CONSTRUCTOR
 public static final String EXCEPTION_IN_CONSTRUCTOR

Constructors

 o ProfileRefErrors
 public ProfileRefErrors()

Methods

 o raise_EXPECTED_EXECUTE_UPDATE
 public static void raise_EXPECTED_EXECUTE_UPDATE(String sqlString) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Parameters:
sqlString - text of statement to execute
Throws: SQLException
this method always throws a SQLException
 o raise_EXPECTED_PREPARED_STATEMENT
 public static void raise_EXPECTED_PREPARED_STATEMENT(String sqlString) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Parameters:
sqlString - text of statement to execute
Throws: SQLException
this method always throws a SQLException
 o raise_EXPECTED_FOR_UPDATE
 public static void raise_EXPECTED_FOR_UPDATE(int columnNum,
                                              String className) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Parameters:
columNum - the column number of the iterator argument
className - the found clas name of the class found
Throws: SQLException
this method always throws a SQLException
 o raise_NO_CALLABLE_STATEMENT
 public static void raise_NO_CALLABLE_STATEMENT() throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Throws: SQLException
this method always throws a SQLException
 o raise_NO_PREPARED_STATEMENT
 public static void raise_NO_PREPARED_STATEMENT() throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Throws: SQLException
this method always throws a SQLException
 o raise_INCOMPATIBLE_TYPE
 public static void raise_INCOMPATIBLE_TYPE(Class expected,
                                            Class found) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Parameters:
expected - the class of the expected type
found - the class of the found type
Throws: SQLException
this method always throws a SQLException
 o raise_UNEXPECTED_CALL
 public static void raise_UNEXPECTED_CALL(String methodName) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Parameters:
methodName - the name of the method unexpectedly called.
Throws: SQLException
this method always throws a SQLException
 o raise_EXPECTED_EXECUTE_QUERY
 public static void raise_EXPECTED_EXECUTE_QUERY(String sqlString) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Parameters:
sqlString - text of statement to execute
Throws: SQLException
this method always throws a SQLException
 o raise_UNEXPECTED_PARAMS
 public static void raise_UNEXPECTED_PARAMS(String sqlString,
                                            int expected,
                                            int found) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Parameters:
sqlString - text of statement to execute
expected - the expected number of parameters
found - the actual number of parameters
Throws: SQLException
this method always throws a SQLException
 o raise_EXPECTED_CALLABLE_STATEMENT
 public static void raise_EXPECTED_CALLABLE_STATEMENT(String sqlString) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Parameters:
sqlString - text of statement to execute
Throws: SQLException
this method always throws a SQLException
 o raise_INVALID_ITERATOR
 public static void raise_INVALID_ITERATOR(Class iterClass) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Throws: SQLException
this method always throws a SQLException
 o raise_EXCEPTION_IN_CONSTRUCTOR
 public static void raise_EXCEPTION_IN_CONSTRUCTOR(String constructorDesc,
                                                   Throwable e) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Throws: SQLException
this method always throws a SQLException

All Packages    This Package  Previous  Next