CatalogSchemaManager Class
- public class CatalogSchemaManager
extends Object
Utility class used for accessing named Product Catalog schema definition resources
within a named ResourceBundle
resource file.
By default, the wlcs-catalog
resource file is used.
Related Topics
ResourceBundle
-
Hierarchy
-
Object
CatalogSchemaManager
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CatalogSchemaManager
public CatalogSchemaManager(String
bundle)
- This is an abstract class.
getInteger(String) Method
public Integer
getInteger(String
key)
throws MissingResourceException
, NumberFormatException
Get an Integer resource referenced by a key.
Parameters
-
key
- the name of the resource
Returns
- the resource as an Integer
Exceptions
-
MissingResourceException
- if the resource bundle could not be found
-
NumberFormatException
- if the resource specified by the key is not valid
getKeys() Method
public Enumeration
getKeys()
throws MissingResourceException
Get all the keys for the resource bundle.
Returns
- the Enumeration of keys.
Exceptions
-
MissingResourceException
- if the resource bundle could not be found
getObject(String) Method
public Object
getObject(String
key)
throws MissingResourceException
Get an Object resource referenced by a key.
Parameters
-
key
- the name of the resource
Returns
- the resource as an Object
Exceptions
-
MissingResourceException
- if the resource bundle could not be found
getPreparedStatement(Connection, String) Method
public PreparedStatement
getPreparedStatement(Connection
con,
String
key)
throws MissingResourceException
, SQLException
Create a PreparedStatemetn from a string resource referenced by a key.
Parameters
-
con
- the Database Connection
-
key
- the name of the resource
Returns
- the resource as a String
Exceptions
-
MissingResourceException
- if the resource bundle could not be found
-
SQLException
- on statement preparation error
getString(String) Method
public String
getString(String
key)
throws MissingResourceException
Get a string resource referenced by a key.
Parameters
-
key
- the name of the resource
Returns
- the resource as a String
Exceptions
-
MissingResourceException
- if the resource bundle could not be found
getStringArray(String) Method
public String
[] getStringArray(String
key)
throws MissingResourceException
Get a string array resource referenced by a key.
Parameters
-
key
- the name of the resource
Returns
- the resource as a String[]
Exceptions
-
MissingResourceException
- if the resource bundle could not be found
loadResourceBundle() Method
protected void loadResourceBundle()
throws MissingResourceException
Load the resource bundle.
Exceptions
-
MissingResourceException
- if the resource bundle could not be found