com.ibm.tivoli.maximo.dbmanage

Class MaximoMessage

  • java.lang.Object
    • com.ibm.tivoli.maximo.dbmanage.MaximoMessage


  • public class MaximoMessage
    extends java.lang.Object
    This class is designed to return text for messages.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      org.apache.log4j.Level getLevel(MXException mxe) 
      static MaximoMessage getMaximoMessage() 
      java.lang.String getMessage(java.lang.String group, java.lang.String key, java.lang.Object[] param)
      Generate the text for the message specified by the group & key and fill in the parameters.
      java.lang.String getMessage(java.lang.Throwable e)
      Get the text for an exception.
      java.lang.String getMessageWithDefault(java.lang.String group, java.lang.String key, java.lang.String defaultMessage, java.lang.Object[] param)
      Generate the text for the message specified by the group & key and fill in the parameters.
      static void setDatabaseConnection(java.sql.Connection dc) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setDatabaseConnection

        public static void setDatabaseConnection(java.sql.Connection dc)
      • getMaximoMessage

        public static MaximoMessage getMaximoMessage()
      • getMessage

        public java.lang.String getMessage(java.lang.String group,
                                           java.lang.String key,
                                           java.lang.Object[] param)
        Generate the text for the message specified by the group & key and fill in the parameters.
        Parameters:
        group -
        key -
        param -
        Returns:
        The completed message.
      • getMessageWithDefault

        public java.lang.String getMessageWithDefault(java.lang.String group,
                                                      java.lang.String key,
                                                      java.lang.String defaultMessage,
                                                      java.lang.Object[] param)
        Generate the text for the message specified by the group & key and fill in the parameters. Use the default message text if the message is not found in the message table.
        Parameters:
        group -
        key -
        defaultMessage -
        param -
        Returns:
        The completed message.
      • getMessage

        public final java.lang.String getMessage(java.lang.Throwable e)
        Get the text for an exception. Ignores chained exceptions.
      • getLevel

        public org.apache.log4j.Level getLevel(MXException mxe)
        Parameters:
        mxe -
        Returns: