APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.rowset

public Class JdbcRowSetResourceBundle

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.*, java.util.*

This class is used to help in localization of resources, especially the exception strings.
Author
Amit Handa

Field Summary

Modifier and TypeField and Description
private static final String
DOT

The variable which will represent dot

private static String
fileName

This String variable stores the location of the resource bundle location.

private static volatile JdbcRowSetResourceBundle
jpResBundle

The constructor initializes to this object

private static final String
PATH

The variable where the default resource bundle will be placed.

private static final String
PROPERTIES

The variable which will represent the properties the suffix or extension of the resource bundle.

private transient PropertyResourceBundle
propResBundle

This variable will hold the PropertyResourceBundle of the text to be internationalized.

pack-priv static final long
private static final String
SLASH

The variable which will represent the slash.

private static final String
UNDERSCORE

The variable to represent underscore

Constructor Summary

AccessConstructor and Description
private
JdbcRowSetResourceBundle()

The constructor which initializes the resource bundle.

Method Summary

Modifier and TypeMethod and Description
public static JdbcRowSetResourceBundle
getJdbcRowSetResourceBundle()

This method is used to get a handle to the initialized instance of this class.

public Enumeration<E>

Returns:

an enumeration of keys which have messages translated to corresponding locales.
getKeys
()

This method returns an enumerated handle of the keys which correspond to values translated to various locales.

public Object

Returns:

value in locale specific language according to the key passed.
handleGetObject
(String key)

This method takes the key as an argument and returns the corresponding value reading it from the Resource Bundle loaded earlier.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DOTback to summary
private static final String DOT

The variable which will represent dot

fileNameback to summary
private static String fileName

This String variable stores the location of the resource bundle location.

jpResBundleback to summary
private static volatile JdbcRowSetResourceBundle jpResBundle

The constructor initializes to this object

PATHback to summary
private static final String PATH

The variable where the default resource bundle will be placed.

PROPERTIESback to summary
private static final String PROPERTIES

The variable which will represent the properties the suffix or extension of the resource bundle.

propResBundleback to summary
private transient PropertyResourceBundle propResBundle

This variable will hold the PropertyResourceBundle of the text to be internationalized.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID
SLASHback to summary
private static final String SLASH

The variable which will represent the slash.

UNDERSCOREback to summary
private static final String UNDERSCORE

The variable to represent underscore

Constructor Detail

JdbcRowSetResourceBundleback to summary
private JdbcRowSetResourceBundle() throws IOException

The constructor which initializes the resource bundle. Note this is a private constructor and follows Singleton Design Pattern.

Exceptions
IOException:
if unable to load the ResourceBundle according to locale or the default one.

Method Detail

getJdbcRowSetResourceBundleback to summary
public static JdbcRowSetResourceBundle getJdbcRowSetResourceBundle() throws IOException

This method is used to get a handle to the initialized instance of this class. Note that at any time there is only one instance of this class initialized which will be returned.

Exceptions
IOException:
if unable to find the RowSetResourceBundle.properties
getKeysback to summary
public Enumeration<E> getKeys()

This method returns an enumerated handle of the keys which correspond to values translated to various locales.

Returns:Enumeration<E>

an enumeration of keys which have messages translated to corresponding locales.

Annotations
@SuppressWarnings:rawtypes
handleGetObjectback to summary
public Object handleGetObject(String key)

This method takes the key as an argument and returns the corresponding value reading it from the Resource Bundle loaded earlier.

Returns:Object

value in locale specific language according to the key passed.