com.ibm.commerce.messaging.adapters.jcautil

Class JCATraceHelper

  • java.lang.Object
    • com.ibm.commerce.messaging.adapters.jcautil.JCATraceHelper
  • All Implemented Interfaces:
    JCATracing


    public class JCATraceHelper
    extends java.lang.Object
    implements JCATracing
    This class implements the JCATracing interface. This utility class provides tracing services to the J2EE JCA compliant outbound connectors.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Copyright statement.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JCATraceHelper

        public JCATraceHelper()
    • Method Detail

      • generateMsgParms

        public static java.lang.Object[] generateMsgParms(java.lang.Object parm1)
        Create an object array of one item to use as a parameter in a message.
        Parameters:
        parm1 - Value of the first parameter to be substituted into the message text.
        Returns:
        Object[] The object array that contains the input parameter.
      • generateMsgParms

        public static java.lang.Object[] generateMsgParms(java.lang.Object parm1,
                                                          java.lang.Object parm2)
        Create an object array of two items to use as parameters in a message.
        Parameters:
        parm1 - Value of the first parameter to be substituted into the message text.
        parm2 - Value of the first parameter to be substituted into the message text.
        Returns:
        Object[] The object array that contains the input parameters.
      • generateMsgParms

        public static java.lang.Object[] generateMsgParms(java.lang.Object parm1,
                                                          java.lang.Object parm2,
                                                          java.lang.Object parm3)
        Create an object array of three items to use as parameters in a message.
        Parameters:
        parm1 - Value of the first parameter to be substituted into the message text.
        parm2 - Value of the second parameter to be substituted into the message text.
        parm3 - Value of the third parameter to be substituted into the message text.
        Returns:
        Object[] The object array that contains the input parameters.
      • generateMsgParms

        public static java.lang.Object[] generateMsgParms(java.lang.Object parm1,
                                                          java.lang.Object parm2,
                                                          java.lang.Object parm3,
                                                          java.lang.Object parm4)
        Create an object array of four items to use as parameters in a message.
        Parameters:
        parm1 - Value of the first parameter to be substituted into the message text.
        parm2 - Value of the second parameter to be substituted into the message text.
        parm3 - Value of the third parameter to be substituted into the message text.
        parm4 - Value of the fourth parameter to be substituted into the message text.
        Returns:
        Object[] The object array that contains the input parameters.
      • getSystemMessage

        public static java.lang.String getSystemMessage(java.lang.String loggerName,
                                                        java.lang.String msgKey,
                                                        java.lang.Object[] parms)
        Return the textual description of the system message passed as argument using the default local.
        Parameters:
        loggerName - The logger name.
        msgKey - The message key.
        parms - Array of objects used as a placeholder replacement in the message text.
        Returns:
        The system message as a String.
      • getSystemMessage

        public static java.lang.String getSystemMessage(java.lang.String loggerName,
                                                        java.lang.String msgKey,
                                                        java.lang.Object[] parms,
                                                        java.util.Locale locale)
        Return the textual description of the system message passed as argument.
        Parameters:
        loggerName - The logger name.
        msgKey - String The message key.
        parms - Object [] Array of objects used as a placeholder replacement in the message text.
        locale - Locale Used to identify the resource bundle containing the translated message. If null, default locale is used.
        Returns:
        The system message as a String.
      • getSystemResourceBundleName

        public static java.lang.String getSystemResourceBundleName(java.lang.String loggerName)
        Retrieve the resource bundle associated with a system message.
        Parameters:
        loggerName - The logger name of the log to retrieve.
        Returns:
        A String representing the resource bundle.
      • doubleTheApostrophy

        public static java.lang.String doubleTheApostrophy(java.lang.String theString)
        Insert an additional apostrophe if the message text contains an apostrophe. This method is used when message format is required.
        Parameters:
        theString - The message text.
        Returns:
        The parameter String with an additional apostrophe.