| java.lang.Object net.sourceforge.jtds.jdbc.Messages
Messages | final public class Messages (Code) | | Support class for Messages.properties .
author: David D. Kilzer author: Mike Hutchinson version: $Id: Messages.java,v 1.8 2005/04/20 16:49:22 alin_sinpalean Exp $ |
Method Summary | |
public static String | get(String key) Get runtime message using supplied key. | public static String | get(String key, Object param1) Get runtime message using supplied key and substitute parameter
into message.
Parameters: key - The key of the message in Messages.properties Parameters: param1 - The object to insert into message. | static String | get(String key, Object param1, Object param2) Get runtime message using supplied key and substitute parameters
into message.
Parameters: key - The key of the message in Messages.properties Parameters: param1 - The object to insert into message. Parameters: param2 - The object to insert into message. | static void | loadDriverProperties(Map propertyMap, Map descriptionMap) Retrieve the list of driver property names and driver property
descriptions from Messages.properties and populate
them into
Map objects. |
get | public static String get(String key)(Code) | | Get runtime message using supplied key.
Parameters: key - The key of the message in Messages.properties The selected message as a String . |
get | public static String get(String key, Object param1)(Code) | | Get runtime message using supplied key and substitute parameter
into message.
Parameters: key - The key of the message in Messages.properties Parameters: param1 - The object to insert into message. The selected message as a String . |
get | static String get(String key, Object param1, Object param2)(Code) | | Get runtime message using supplied key and substitute parameters
into message.
Parameters: key - The key of the message in Messages.properties Parameters: param1 - The object to insert into message. Parameters: param2 - The object to insert into message. The selected message as a String . |
loadDriverProperties | static void loadDriverProperties(Map propertyMap, Map descriptionMap)(Code) | | Retrieve the list of driver property names and driver property
descriptions from Messages.properties and populate
them into
Map objects.
The keys used to populate both propertyMap and
descriptionMap are guaranteed to match up as long
as the properties defined in Messages.properties
are well-formed.
Parameters: propertyMap - The map of property names to be populated. Parameters: descriptionMap - The map of property descriptions to be populated. |
|
|