org.osconsulting.l10n.msgstore
Class DBBasedMessageStore
java.lang.Object
org.osconsulting.l10n.msgstore.DBBasedMessageStore
- All Implemented Interfaces:
- MessageStore
public class DBBasedMessageStore
- extends java.lang.Object
- implements MessageStore
Constructor Summary |
DBBasedMessageStore(java.util.HashMap<java.lang.String,java.lang.String> properties)
|
Method Summary |
java.lang.String |
getLocalizedMessage(java.lang.String key,
java.util.Locale locale)
(non-Javadoc) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONNECTION_URL
public static final java.lang.String CONNECTION_URL
- See Also:
- Constant Field Values
CONNECTION_NAME
public static final java.lang.String CONNECTION_NAME
- See Also:
- Constant Field Values
CONNECTION_PWD
public static final java.lang.String CONNECTION_PWD
- See Also:
- Constant Field Values
DRIVER_NAME
public static final java.lang.String DRIVER_NAME
- See Also:
- Constant Field Values
MSG_QUERY_STR
public static final java.lang.String MSG_QUERY_STR
- See Also:
- Constant Field Values
DS_JNDI_NAME
public static final java.lang.String DS_JNDI_NAME
- See Also:
- Constant Field Values
DBBasedMessageStore
public DBBasedMessageStore(java.util.HashMap<java.lang.String,java.lang.String> properties)
throws JErrConfigError
- Parameters:
configProperties
- Property file containing database connection parameters
- Throws:
JErrConfigError
getLocalizedMessage
public java.lang.String getLocalizedMessage(java.lang.String key,
java.util.Locale locale)
throws JErrConfigError
- (non-Javadoc)
- Specified by:
getLocalizedMessage
in interface MessageStore
- Parameters:
key
- - the key of the localized messagelocale
- - Locale used to find the localized error message matching closest to this locale
- Returns:
- - the localized error message.
- Throws:
JErrConfigError
- See Also:
main.java.org.osconsulting.jerr.handler.MessageStore#getLocalizedMessage(main.java.org.osconsulting.jerr.JErrorCode, java.util.Locale)
Copyright © 2006-2007. All Rights Reserved.