com.ibm.commerce.beans
Class DataBeanManager

java.lang.Object
  |
  +--com.ibm.commerce.beans.DataBeanManager

public class DataBeanManager
extends java.lang.Object

The DataBean manager is responsible for populating databeans.


Field Summary
static java.lang.String COPYRIGHT
          IBM Copyright notice field.
 
Constructor Summary
DataBeanManager()
          Creates an instance of the DataBean Manager.
 
Method Summary
static void activate(DataBean targetBean, CommandContext context)
          This method activates the databean.
protected static void populateDataBean( CommandDataBean targetBean, CommandContext context)
          This method populate a CommandDataBean by invoking the DataBeanCommand associated with the data bean.
static void silentActivate( DataBean targetBean, HttpServletRequest request)
          This method activates or populate a data bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM Copyright notice field.
See Also:
Constant Field Values
Constructor Detail

DataBeanManager

public DataBeanManager()
Creates an instance of the DataBean Manager.
Method Detail

activate

public static void activate(DataBean targetBean,
CommandContext context)
                     throws ECException
This method activates the databean. This is called from a command where the command context is available. If an error occurs, it catches all exceptions and throws a ECException.
Parameters:
targetBean - a databean to be populated.
Throws:
ECException - if an exception occurs while populating the databean.

populateDataBean

protected static void populateDataBean(CommandDataBean targetBean,
CommandContext context)
                                throws ECException
This method populate a CommandDataBean by invoking the DataBeanCommand associated with the data bean. It determines the correct command to execute by making a query to the DataBeanHelper associated with the DataBean.
Throws:
ECException - if there was a problem populating the databean, all exceptions will be wrapped into and ECException and thrown to the caller.

silentActivate

public static void silentActivate(DataBean targetBean,
                                  HttpServletRequest request)
This method activates or populate a data bean. This is the same as activate except that no exception will be thrown.
Parameters:
targetBean - the data bean to be populated.
request - request used to invoke the JSP.