com.ibm.commerce.common.objects
Class StoreCategoryAccessBean

java.lang.Object
  AbstractEntityAccessBean
      com.ibm.commerce.common.objects.StoreCategoryAccessBean

public class StoreCategoryAccessBean
extends AbstractEntityAccessBean

Each row of this table represents a StoreCategory. StoreCategories can be used to group Stores of similar types together for display purposes. For example, in order to display all clothing stores in a mall together in the mall directory, you could create a clothing StoreCategory. This access bean corresponds to the database table 'STORECGRY'. StoreCategoryAccessBean

See Also:
Serialized Form

Constructor Summary
StoreCategoryAccessBean()
constructor
StoreCategoryAccessBean(javax.ejb.EJBObject o)
StoreCategoryAccessBean constructor
Method Summary
void commitCopyHelper()
commitCopyHelper
java.lang.String defaultJNDIName()
defaultJNDIName
java.util.Enumeration findAll()
Retrieves all of the StoreCategoryAccessBeans
StoreCategoryAccessBean findByName(java.lang.String name)
Retrieves the StoreCategoryAccessBean with the specified name
StoreCategoryDescriptionAccessBean getDescription(java.lang.Integer languageId)
Gets the StoreCategoryDescriptionAccessBean for the given language ID
java.lang.String getName()
getName
java.lang.String getRemark()
This method accesses a non-CMP field
java.lang.Integer getStoreCategoryId()
This method accesses a non-CMP field
protected void instantiateEJB()
instantiateEJB
protected boolean instantiateEJBByPrimaryKey()
instantiateEJBByPrimaryKey
void refreshCopyHelper()
refreshCopyHelper
void setInitKey_storeCategoryId(java.lang.Integer newValue)
setInitKey_storeCategoryId
void setName(java.lang.String newValue)
This method accesses a non-CMP field
void setRemark(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

StoreCategoryAccessBean

public StoreCategoryAccessBean()
constructor

StoreCategoryAccessBean

public StoreCategoryAccessBean(javax.ejb.EJBObject o)
                        throws java.rmi.RemoteException
StoreCategoryAccessBean constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException
Method Detail

getName

public java.lang.String getName()
                         throws java.rmi.RemoteException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException
getName
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setName

public void setName(java.lang.String newValue)
This method accesses a non-CMP field

getRemark

public java.lang.String getRemark()
                           throws java.rmi.RemoteException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setRemark

public void setRemark(java.lang.String newValue)
This method accesses a non-CMP field

getStoreCategoryId

public java.lang.Integer getStoreCategoryId()
                                     throws java.rmi.RemoteException,
                                            javax.ejb.CreateException,
                                            javax.ejb.FinderException,
                                            javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_storeCategoryId

public void setInitKey_storeCategoryId(java.lang.Integer newValue)
setInitKey_storeCategoryId

Set the primary key for this object

Parameters:
newValue - java.lang.Integer
Returns:
void

defaultJNDIName

public java.lang.String defaultJNDIName()
defaultJNDIName
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws javax.naming.NamingException,
                              javax.ejb.FinderException,
                              java.rmi.RemoteException
instantiateEJB
Returns:
void
Throws:
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws javax.ejb.CreateException,
                                             java.rmi.RemoteException,
                                             javax.naming.NamingException
instantiateEJBByPrimaryKey
Returns:
boolean
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
refreshCopyHelper

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException
commitCopyHelper

Update(flush) data to the EJBObject (persistent storage).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

findAll

public java.util.Enumeration findAll()
                              throws javax.naming.NamingException,
                                     javax.ejb.FinderException,
                                     java.rmi.RemoteException

Retrieves all of the StoreCategoryAccessBeans

The SQL query used to fetch the requested row from the STORECAT table is:

SELECT * FROM STORECAT

Returns:
An Enumeration of StoreCategoryAccessBeans representing the rows that match the search criteria
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

getDescription

public StoreCategoryDescriptionAccessBean getDescription(java.lang.Integer languageId)
                                                  throws javax.naming.NamingException,
                                                         javax.ejb.FinderException,
                                                         javax.ejb.CreateException,
                                                         java.rmi.RemoteException
Gets the StoreCategoryDescriptionAccessBean for the given language ID
Parameters:
languageId - The ID for the language of the description
Returns:
A com.ibm.commerce.common.objects.StoreCategoryDescrptionAccessBean object
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

findByName

public StoreCategoryAccessBean findByName(java.lang.String name)
                                   throws javax.naming.NamingException,
                                          javax.ejb.FinderException,
                                          java.rmi.RemoteException

Retrieves the StoreCategoryAccessBean with the specified name

The SQL query used to fetch the requested row from the STORECAT table is:

SELECT * FROM STORECAT T1 WHERE (T1.NAME = ?)

Parameters:
name - The name of the category
Returns:
The StoreCategory representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

Feedback