com.ls.util.resource
Class BundleAccess

java.lang.Object
  |
  +--com.ls.util.resource.BundleAccess

public class BundleAccess
extends Object

Class for retrieving database error codes

Version:
$Revision: 1.2 $
Author:
Last modified by $Author: TBerk $

Constructor Summary
BundleAccess()
           
 
Method Summary
static String getErrorAction(String strErrorMessage, String strPropertyFile)
          getErrorAction gets the error action out of the error messages property file
static String getErrorCause(String strErrorMessage, String strPropertyFile)
          getErrorCause gets the error cause out of the error messages property file
static String getErrorDescription(String strErrorMessage, String strPropertyFile)
          getErrorDescription gets the error description out of the error messages property file
static String getErrorID(String strErrorMessage, String strPropertyFile)
          getErrorID returns the error ID
static boolean setPropertyFile(String strPropertyFile, String startsWith)
          Loads the ressource bundle with the indicated property file if not already loaded and fills the corresponding entries into hashtables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleAccess

public BundleAccess()
Method Detail

getErrorDescription

public static String getErrorDescription(String strErrorMessage,
                                         String strPropertyFile)
getErrorDescription gets the error description out of the error messages property file
Parameters:
strErrorMessage - The Error Message
strPropertyFile - The Property File Name
Returns:
The Error Description

getErrorAction

public static String getErrorAction(String strErrorMessage,
                                    String strPropertyFile)
getErrorAction gets the error action out of the error messages property file
Parameters:
strErrorMessage - The Error Message
strPropertyFile - The Property File Name
Returns:
The Error Action

getErrorCause

public static String getErrorCause(String strErrorMessage,
                                   String strPropertyFile)
getErrorCause gets the error cause out of the error messages property file
Parameters:
strErrorMessage - The Error Message
strPropertyFile - The Property File Name
Returns:
The Error Cause

setPropertyFile

public static boolean setPropertyFile(String strPropertyFile,
                                      String startsWith)
Loads the ressource bundle with the indicated property file if not already loaded and fills the corresponding entries into hashtables
Parameters:
strPropertyFile - The Property File Name
startsWith - Error starting code . Ex: "ORA-"
Returns:
true if operation succeded, else false

getErrorID

public static String getErrorID(String strErrorMessage,
                                String strPropertyFile)
getErrorID returns the error ID
Parameters:
strErrorMessage - The Error Message
strPropertyFile - The Property File Name
Returns:
The Error ID