All Packages    This Package  Previous  Next  

Class sqlj.runtime.error.Errors

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

public class Errors
extends Object
The Errors class contains error formatting routines used by the jsql.runtime package hierarchy. It contains a series of static methods which return localized strings or raise exceptions with localized messages.


Variable Index

 o DEFAULT_SQLSTATE
The default SQLState for exceptions raised by the raise_XXX methods.
 o INVALID_CLASS_DECLARATION_SQLSTATE
SQLState value of exceptions raised when a generated iterator or connection context class id found to have missing or inaccessible members, or does not otherwise conform to the standard.
 o INVALID_COLUMN_NAME_SQLSTATE
SQLState value of exceptions raised when a required named iterator column is not found in the associated runtime query.
 o INVALID_PROFILE_STATE_SQLSTATE
SQLState value of exceptions raised when a profile cannot be loaded, or the profile loaded contains invalid data.
 o UNSUPPORTED_FEATURE_SQLSTATE
SQLState value of exceptions raised when a SQL operation is executed or a class method is called that a runtime implementation does not support.

Constructor Index

 o Errors()

Method Index

 o getText(ResourceBundle, String)
Returns the string corresponding to the message with the given key in the given resource bundle.
 o getText(ResourceBundle, String, Object)
Returns the string corresponding to the message with the given key in the given resource bundle.
 o getText(ResourceBundle, String, Object, Object)
Returns the string corresponding to the message with the given key in the given resource bundle.
 o getText(ResourceBundle, String, Object, Object, Object)
Returns the string corresponding to the message with the given key in the given resource bundle.
 o getText(ResourceBundle, String, Object[])
Returns the string corresponding to the message with the given key in the given resource bundle.
 o raiseError(String, ResourceBundle, String)
Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle.
 o raiseError(String, ResourceBundle, String, Object)
Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle.
 o raiseError(String, ResourceBundle, String, Object, Object)
Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle.
 o raiseError(String, ResourceBundle, String, Object, Object, Object)
Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle.
 o raiseError(String, ResourceBundle, String, Object[])
Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle.

Variables

 o DEFAULT_SQLSTATE
 public static final String DEFAULT_SQLSTATE
The default SQLState for exceptions raised by the raise_XXX methods. This is "42000", syntax error or access rule violation.

 o UNSUPPORTED_FEATURE_SQLSTATE
 public static final String UNSUPPORTED_FEATURE_SQLSTATE
SQLState value of exceptions raised when a SQL operation is executed or a class method is called that a runtime implementation does not support.

 o INVALID_CLASS_DECLARATION_SQLSTATE
 public static final String INVALID_CLASS_DECLARATION_SQLSTATE
SQLState value of exceptions raised when a generated iterator or connection context class id found to have missing or inaccessible members, or does not otherwise conform to the standard.

 o INVALID_COLUMN_NAME_SQLSTATE
 public static final String INVALID_COLUMN_NAME_SQLSTATE
SQLState value of exceptions raised when a required named iterator column is not found in the associated runtime query.

 o INVALID_PROFILE_STATE_SQLSTATE
 public static final String INVALID_PROFILE_STATE_SQLSTATE
SQLState value of exceptions raised when a profile cannot be loaded, or the profile loaded contains invalid data.

Constructors

 o Errors
 public Errors()

Methods

 o raiseError
 public static void raiseError(String sqlState,
                               ResourceBundle bundle,
                               String key) throws SQLException
Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle. The message must have no replacement arguments.

Throws: SQLException
always thrown as a result of this method.
 o raiseError
 public static void raiseError(String sqlState,
                               ResourceBundle bundle,
                               String key,
                               Object arg1) throws SQLException
Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle. The message must have exactly one replacement argument, as passed.

Throws: SQLException
always thrown as a result of this method.
 o raiseError
 public static void raiseError(String sqlState,
                               ResourceBundle bundle,
                               String key,
                               Object arg1,
                               Object arg2) throws SQLException
Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle. The message must have exactly two replacement arguments, as passed.

Throws: SQLException
always thrown as a result of this method.
 o raiseError
 public static void raiseError(String sqlState,
                               ResourceBundle bundle,
                               String key,
                               Object arg1,
                               Object arg2,
                               Object arg3) throws SQLException
Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle. The message must have exactly three replacement arguments, as passed.

Throws: SQLException
always thrown as a result of this method.
 o raiseError
 public static void raiseError(String sqlState,
                               ResourceBundle bundle,
                               String key,
                               Object args[]) throws SQLException
Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle. The message must have the same number of replacement arguments as are passed in the object array or arguments.

Throws: SQLException
always thrown as a result of this method.
 o getText
 public static String getText(ResourceBundle bundle,
                              String key)
Returns the string corresponding to the message with the given key in the given resource bundle. The message must have no replacement arguments.

 o getText
 public static String getText(ResourceBundle bundle,
                              String key,
                              Object arg)
Returns the string corresponding to the message with the given key in the given resource bundle. The message must have exactly one replacement argument as are passed in the parameters.

 o getText
 public static String getText(ResourceBundle bundle,
                              String key,
                              Object arg1,
                              Object arg2)
Returns the string corresponding to the message with the given key in the given resource bundle. The message must have exactly two replacement arguments as are passed in the parameters.

 o getText
 public static String getText(ResourceBundle bundle,
                              String key,
                              Object arg1,
                              Object arg2,
                              Object arg3)
Returns the string corresponding to the message with the given key in the given resource bundle. The message must have exactly three replacement arguments as are passed in the parameters.

 o getText
 public static String getText(ResourceBundle bundle,
                              String key,
                              Object args[])
Returns the string corresponding to the message with the given key in the given resource bundle. The message must have the same number of replacement arguments as are passed in the object array or arguments.


All Packages    This Package  Previous  Next