planetj.dataengine.operation
Class OperationMessageManager

java.lang.Object
  extended byplanetj.dataengine.operation.OperationMessageManager
All Implemented Interfaces:
IPossibleValue

public class OperationMessageManager
extends java.lang.Object
implements IPossibleValue

Manages user Messages for Operations.


Field Summary
 
Fields inherited from interface planetj.database.possiblevalues.IPossibleValue
DISPLAY_ORDER, DISPLAY_VALUE, DISPLAY_VALUE_SQL_TYPE, ERROR_MESSAGE_KEY_DELETE, ERROR_MESSAGE_KEY_INSERT, ERROR_MESSAGE_KEY_UPDATE, FIELD_NAME, KEY, LIBRARY_NAME, OWNER_ID, POSSIBLE_VALUES_TABLE_NAME, SYSTEM_ALIAS, TABLE_NAME, TYPE, TYPE_CONFIG_PROPERTY, TYPE_POSSIBLE_VALUE, TYPE_USER_MESSAGE, TYPE_WOW_UPDATE, USER_MESSAGE_KEY_DELETE, USER_MESSAGE_KEY_INSERT, USER_MESSAGE_KEY_UPDATE, VALUE
 
Method Summary
 java.lang.String getErrorMessage(java.lang.String alias, java.lang.String lib, java.lang.String table, int operationType, Row row, java.lang.Exception exception)
          Returns a user message, based on the operation type passed in.
 java.lang.String getLibraryName()
          Gets the name of the library containing this table.
 java.lang.String getMessage(java.lang.String alias, java.lang.String lib, java.lang.String table, int operationType, Row row)
          Returns a user message, based on the operation type passed in.
 java.lang.String getMessageWithSubstitutions(java.lang.String message, Row row)
          Replace any parameters in the message with actual substitution text.
 java.lang.String getTableName()
          Gets the default table name.
static void setSingleton(OperationMessageManager singleton)
          Sets the singleton instance of the OperationManager.
static OperationMessageManager singleton()
          Gets the singleton instance of OperationMessageManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTableName

public java.lang.String getTableName()
Gets the default table name.


getMessage

public java.lang.String getMessage(java.lang.String alias,
                                   java.lang.String lib,
                                   java.lang.String table,
                                   int operationType,
                                   Row row)
Returns a user message, based on the operation type passed in.


getErrorMessage

public java.lang.String getErrorMessage(java.lang.String alias,
                                        java.lang.String lib,
                                        java.lang.String table,
                                        int operationType,
                                        Row row,
                                        java.lang.Exception exception)
Returns a user message, based on the operation type passed in.


getMessageWithSubstitutions

public java.lang.String getMessageWithSubstitutions(java.lang.String message,
                                                    Row row)
Replace any parameters in the message with actual substitution text.


setSingleton

public static void setSingleton(OperationMessageManager singleton)
Sets the singleton instance of the OperationManager. This only needs to be done if the OperationManager class has been overridden. The singleton instance is not synchronized, so this method should only be invoked during initialization.


singleton

public static OperationMessageManager singleton()
Gets the singleton instance of OperationMessageManager


getLibraryName

public java.lang.String getLibraryName()
Gets the name of the library containing this table. If no library name is set, the default is used.