Ontimize 5.2072EN

com.ontimize.db
Class DBErrorMessages

java.lang.Object
  extended bycom.ontimize.db.DBErrorMessages

public class DBErrorMessages
extends java.lang.Object

This class allows to associate the SQLStates for database exceptions with error messages. These error messages are returned by TableEntity, for this reason messages must not be translated . A generic file exists in this package with SQLStates standard messages

Title:

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0

Field Summary
static boolean DEBUG
           
 
Method Summary
static java.lang.String getSQLStateMessage(java.lang.String sqlState)
          Gets the message associates with a sql state.
static java.lang.String getVendorCodeMessage(int vendorCode)
           
static void setSQLStateMessages(java.lang.String uriProperties)
          Sets the values for sql state messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG
Method Detail

setSQLStateMessages

public static void setSQLStateMessages(java.lang.String uriProperties)
                                throws java.io.IOException
Sets the values for sql state messages. The file format is:
sqlstate=message

Parameters:
uriProperties -
Throws:
java.io.IOException

getSQLStateMessage

public static java.lang.String getSQLStateMessage(java.lang.String sqlState)
Gets the message associates with a sql state. If this message is not founded or is not defined in the properties file return null

Parameters:
sqlState -
Returns:

getVendorCodeMessage

public static java.lang.String getVendorCodeMessage(int vendorCode)

Ontimize