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
Method Summary |
static void |
activate(DataBean targetBean,
CommandContext context)
This method activates the databean. |
static void |
activate(DataBean targetBean,
com.ibm.commerce.beans.HttpServletRequest request)
This method populates 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,
com.ibm.commerce.beans.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 |
DataBeanManager
public DataBeanManager()
- DataBeanManager constructor.
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
- DataBean - a databean to be populatedcommandContext
- CommandContext - a commandContext associated with this request
activate
public static void activate(DataBean targetBean,
com.ibm.commerce.beans.HttpServletRequest request)
throws com.ibm.commerce.beans.ServletException
- This method populates the databean. It is invokes from a JSP. If an error occurs,
it catches all exceptions and throws a ServletException.
- Parameters:
targetBean
- DataBean - data bean to be populated
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.
- Parameters:
target
- com.ibm.commerce.beans.DataBean
silentActivate
public static void silentActivate(DataBean targetBean,
com.ibm.commerce.beans.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
- DataBean - data bean to be populatedrequest
- HttpServletRequest - request used to invoke the JSP