© 2005 BEA Systems, Inc.

com.beasys.commerce.ebusiness.catalog.util
Class CatalogSchemaManager

java.lang.Object
  extended bycom.beasys.commerce.ebusiness.catalog.util.CatalogSchemaManager

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.

See Also:
ResourceBundle

Constructor Summary
CatalogSchemaManager(String bundle)
          This is an abstract class.
 
Method Summary
 Integer getInteger(String key)
          Get an Integer resource referenced by a key.
 Enumeration getKeys()
          Get all the keys for the resource bundle.
 Object getObject(String key)
          Get an Object resource referenced by a key.
 PreparedStatement getPreparedStatement(Connection con, String key)
          Create a PreparedStatemetn from a string resource referenced by a key.
 String getString(String key)
          Get a string resource referenced by a key.
 String[] getStringArray(String key)
          Get a string array resource referenced by a key.
protected  void loadResourceBundle()
          Load the resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogSchemaManager

public CatalogSchemaManager(String bundle)
This is an abstract class.

Method Detail

getInteger

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
Throws:
MissingResourceException - if the resource bundle could not be found
NumberFormatException - if the resource specified by the key is not valid

getKeys

public Enumeration getKeys()
                    throws MissingResourceException
Get all the keys for the resource bundle.

Returns:
the Enumeration of keys.
Throws:
MissingResourceException - if the resource bundle could not be found

getObject

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
Throws:
MissingResourceException - if the resource bundle could not be found

getPreparedStatement

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
Throws:
MissingResourceException - if the resource bundle could not be found
SQLException - on statement preparation error

getString

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
Throws:
MissingResourceException - if the resource bundle could not be found

getStringArray

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[]
Throws:
MissingResourceException - if the resource bundle could not be found

loadResourceBundle

protected void loadResourceBundle()
                           throws MissingResourceException
Load the resource bundle.

Throws:
MissingResourceException - if the resource bundle could not be found

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved