com.ibm.commerce.marketingcenter.search.objects
Class MCItemSearchJDBCHelperAccessBean
java.lang.Object
|
+--com.ibm.ivj.ejb.runtime.AbstractAccessBean
|
+--com.ibm.ivj.ejb.runtime.AbstractSessionAccessBean
|
+--com.ibm.commerce.marketingcenter.search.objects.MCItemSearchJDBCHelperAccessBean
- All Implemented Interfaces:
- java.io.Serializable
- public class MCItemSearchJDBCHelperAccessBean
- extends com.ibm.ivj.ejb.runtime.AbstractSessionAccessBean
This bean provides method to perform a search on the products using given criteria.
The following fields are returned as the result of the search:
CATENTRY.CATENTRY_ID
CATENTRY.PARTNUMBER
CATENTDESC.NAME
CATENTDESC.SHORTDESCRIPTION
- See Also:
- Serialized Form
Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean |
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef |
Method Summary |
protected java.lang.String |
defaultJNDIName()
Obtain the JNDI name for this EJB |
com.ibm.commerce.marketingcenter.search.helpers.SearchProductListDataBean |
findItems(java.lang.Integer storeId,
java.lang.String locale,
com.ibm.commerce.marketingcenter.campaign.beans.SearchProductDataBean searchProductDataBean,
boolean isFlush,
int startIndex,
int maxRows,
int location)
This finder performs a search on products, and returns the result based on the search criteria. |
protected void |
instantiateEJB()
IBM internal use only. |
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean |
defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, resetEJBRef, resetHomeCache, setEJBRef, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCItemSearchJDBCHelperAccessBean
public MCItemSearchJDBCHelperAccessBean()
- Zero argument constructor used to initialize the access bean.
This constructor corresponds to the following home interface method:
public abstract com.ibm.commerce.marketingcenter.search.objects.MCItemSearchJDBCHelper com.ibm.commerce.marketingcenter.search.objects.MCItemSearchJDBCHelperHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
MCItemSearchJDBCHelperAccessBean
public MCItemSearchJDBCHelperAccessBean(javax.ejb.EJBObject MCItemSearchJDBCHelperEJBObj)
throws java.rmi.RemoteException
- Maps to a corresponding ejbCreate method in the home interface of the EJB.
- Parameters:
MCItemSearchJDBCHelperEJBObj
- - a MCItemSearchJDBCHelper EJBObject reference- Throws:
java.rmi.RemoteException
- - Thrown when the ejbCreate method is failed to invoke.
defaultJNDIName
protected java.lang.String defaultJNDIName()
- Obtain the JNDI name for this EJB
- Overrides:
defaultJNDIName
in class com.ibm.ivj.ejb.runtime.AbstractAccessBean
- Returns:
- java.lang.String - the JNDI name for this EJB
findItems
public com.ibm.commerce.marketingcenter.search.helpers.SearchProductListDataBean findItems(java.lang.Integer storeId,
java.lang.String locale,
com.ibm.commerce.marketingcenter.campaign.beans.SearchProductDataBean searchProductDataBean,
boolean isFlush,
int startIndex,
int maxRows,
int location)
throws javax.naming.NamingException,
java.sql.SQLException,
java.rmi.RemoteException,
javax.ejb.ObjectNotFoundException,
javax.ejb.CreateException
- This finder performs a search on products, and returns the result based on the search criteria.
The search is performed against these tables: CATENTRY, CATENTDESC, LANGUAGE and STORECENT.
These fields are returned as the result set: CATENTRY.CATENTRY_ID, CATENTRY.PARTNUMBER, CATENTDESC.NAME, CATENTDESC.SHORTDESCRIPTION.
- Parameters:
storeId
- - the internal reference number of the storelocale
- - the current locale settingsearchProductDataBean
- - the reference to the data bean which contains the search inputisFlush
- - the flag indicates that if a flush is neededstartIndex
- - the start index of the search resultmaxRows
- - the maximum number of rows in the search result that will be returnedlocation
- - the location of the accelerator panel which triggers the search- Returns:
- com.ibm.commerce.marketingcenter.campaign.beans.SearchProductListDataBean - the list data bean which has all the result data populated
- Throws:
javax.naming.NamingException
- - Thrown when a naming exception is encountered.java.sql.SQLException
- - Thrown when an error occurs during the execution of the SQL prepared statement.java.rmi.RemoteException
- - Thrown when the ejbCreate method is failed to invoke.javax.ejb.ObjectNotFoundException
- - Thrown when the EJB object cannot be found.javax.ejb.CreateException
- - Thrown when the creation of the EJB object failed.
instantiateEJB
protected void instantiateEJB()
throws javax.ejb.CreateException,
java.rmi.RemoteException,
javax.naming.NamingException
- IBM internal use only.
- Overrides:
instantiateEJB
in class com.ibm.ivj.ejb.runtime.AbstractAccessBean