com.ibm.commerce.catalog.objects
Class CatalogGroupDescriptionAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.catalog.objects.CatalogGroupDescriptionAccessBean
All Implemented Interfaces:
CatalogGroupDescriptionAccessBeanData

public class CatalogGroupDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CatalogGroupDescriptionAccessBeanData

This table holds the language-dependent information related to a CatalogGroup. This access bean corresponds to the database table 'CATGRPDESC'.

See Also:
Serialized Form

Constructor Summary
CatalogGroupDescriptionAccessBean()
Zero argument constructor used to initialize the access bean.
CatalogGroupDescriptionAccessBean(javax.ejb.EJBObject o)
constructor
CatalogGroupDescriptionAccessBean(java.lang.Long argCatalogGroupReferenceNumber, java.lang.Integer language_id, java.lang.String name)
Maps to a corresponding ejbCreate method in the home interface of the EJB.
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByCatalogGroupIdsAndLanguageId(java.lang.Long[] arCatalogGroupIds, java.lang.Integer nLanguageId)
Finds the catalog group description with the catalog group IDs and the language ID.
java.util.Enumeration findByLocaleAndStore(java.lang.String locale, java.lang.Integer storeId)
Finds the catalog group description with the locale and the store ID.
java.lang.Long getCatalogGroupReferenceNumber()
getCatalogGroupReferenceNumber
java.lang.String getDisplay()
This method provides access to the CATGRPDESC.DISPLAY column of DB2 type VARCHAR(254).
java.lang.String getFullIImage()
This method provides access to the CATGRPDESC.FULLIMAGE column of DB2 type VARCHAR(254).
java.lang.String getKeyWord()
This method provides access to the CATGRPDESC.KEYWORD column of DB2 type VARCHAR(254).
java.lang.String getLongDescription()
This method accesses a non-CMP field
java.lang.String getMemberGroupId()
This method accesses a non-CMP field
java.lang.Long getMemberGroupIdInEJBType()
This method accesses a non-CMP field
java.lang.String getName()
This method provides access to the CATGRPDESC.NAME column of DB2 type VARCHAR(254) NOT NULL.
java.lang.String getNote()
getNote
java.lang.String getPublished()
This method provides access to the CATGRPDESC.PUBLISHED column of DB2 type INTEGER NOT NULL.
java.lang.Integer getPublishedInEJBType()
This method provides access to the CATGRPDESC.PUBLISHED column of DB2 type INTEGER NOT NULL.
java.lang.String getShortDescription()
This method provides access to the CATGRPDESC.SHORTDESCRIPTION column of DB2 type VARCHAR(254).
java.lang.String getThumbNail()
This method provides access to the CATGRPDESC.THUMBNAIL column of DB2 type VARCHAR(254).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCatalogGroupReferenceNumber(java.lang.Long newValue)
This method accesses a non-CMP field
void setDisplay(java.lang.String newValue)
This method accesses a non-CMP field
void setFullIImage(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_catalogGroupReferenceNumber(java.lang.String newValue)
Set the primary key for this object
void setInitKey_language_id(java.lang.String newValue)
Set the primary key for this object
void setKeyWord(java.lang.String newValue)
This method accesses a non-CMP field
void setLongDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setMemberGroupId(java.lang.Long newValue)
This method accesses a non-CMP field
void setMemberGroupId(java.lang.String newValue)
This method accesses a non-CMP field
void setName(java.lang.String newValue)
This method accesses a non-CMP field
void setNote(java.lang.String newValue)
This method accesses a non-CMP field
void setPublished(java.lang.Integer newValue)
This method accesses a non-CMP field
void setPublished(java.lang.String newValue)
This method accesses a non-CMP field
void setShortDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setThumbNail(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

CatalogGroupDescriptionAccessBean

public CatalogGroupDescriptionAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.catalog.objects.CatalogGroupDescription com.ibm.commerce.catalog.objimpl.CatalogGroupDescriptionHomeBase.findByPrimaryKey(com.ibm.commerce.catalog.objects.CatalogGroupDescriptionKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_language_id( java.lang.Integer ) setInitKey_catalogGroupReferenceNumber( java.lang.Long )

CatalogGroupDescriptionAccessBean

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

CatalogGroupDescriptionAccessBean

public CatalogGroupDescriptionAccessBean(java.lang.Long argCatalogGroupReferenceNumber,
                                         java.lang.Integer language_id,
                                         java.lang.String name)
                                  throws javax.ejb.CreateException,
                                         java.rmi.RemoteException,
                                         javax.naming.NamingException

Maps to a corresponding ejbCreate method in the home interface of the EJB. Creates an access to the catalog group description according to the catalog group ID, the language ID, and the name.

Parameters:
argCatalogGroupReferenceNumber - The catalog group reference number. java.lang.Long
language_id - The language ID. java.lang.Integer
name - The name. java.lang.String
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
Method Detail

findByCatalogGroupIdsAndLanguageId

public java.util.Enumeration findByCatalogGroupIdsAndLanguageId(java.lang.Long[] arCatalogGroupIds,
                                                                java.lang.Integer nLanguageId)
                                                         throws java.rmi.RemoteException,
                                                                javax.ejb.FinderException,
                                                                javax.naming.NamingException

Finds the catalog group description with the catalog group IDs and the language ID.

SQL:
SELECT FULLIMAGE, KEYWORD, DISPLAY, LANGUAGE_ID, SHORTDESCRIPTION, CATGROUP_ID, PUBLISHED, NAME, THUMBNAIL FROM CATGRPDESC WHERE LANGUAGE_ID = nLanguageId AND CATGROUP_ID IN (arCatalogGroupIds)

Parameters:
arCatalogGroupIds - The catalog group reference number. java.lang.Long[]
nLanguageId - The language ID. java.lang.Integer
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByLocaleAndStore

public java.util.Enumeration findByLocaleAndStore(java.lang.String locale,
                                                  java.lang.Integer storeId)
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

Finds the catalog group description with the locale and the store ID.

SQL:
SELECT CATGRPDESC.FULLIMAGE, CATGRPDESC.KEYWORD, CATGRPDESC.DISPLAY, CATGRPDESC.LANGUAGE_ID, CATGRPDESC.SHORTDESCRIPTION, CATGRPDESC.CATGROUP_ID, CATGRPDESC.PUBLISHED, CATGRPDESC.NAME, CATGRPDESC.THUMBNAIL FROM CATGRPDESC WHERE CATGRPDESC.PUBLISHED = 1 AND CATGRPDESC.LANGUAGE_ID in (select LANGUAGE_ID from language where localename = locale AND CATGRPDESC.CATGROUP_ID in (select CATGROUP_ID FROM CATENTRY CATENTRY, STORECENT STORECENT, CATGPENREL CATGPENREL where STORECENT.STOREENT_ID = storeId AND ( CATENTRY.CATENTTYPE_ID LIKE 'ProductBean%' OR (CATENTRY.CATENTTYPE_ID LIKE 'ItemBean%' AND CATENTRY.CATENTRY_ID NOT IN (SELECT CATENTRY_ID FROM ATTRIBUTE))) AND CATENTRY.BUYABLE = 1 AND STORECENT.CATENTRY_ID = CATENTRY.CATENTRY_ID AND CATGPENREL.CATENTRY_ID = STORECENT.CATENTRY_ID))

Parameters:
locale - The locale. java.lang.String
storeId - The store ID. java.lang.Integer
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_language_id

public void setInitKey_language_id(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_catalogGroupReferenceNumber

public void setInitKey_catalogGroupReferenceNumber(java.lang.String newValue)

Set the primary key for this object

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

defaultJNDIName

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

instantiateEJB

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

instantiateEJBByPrimaryKey

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

commitCopyHelper

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

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

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

refreshCopyHelper

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

Load data from the EJBObject.

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

getKeyWord

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

This method provides access to the CATGRPDESC.KEYWORD column of DB2 type VARCHAR(254).

The following is a description of this column:

A keyword used for searching.

Specified by:
getKeyWord in interface CatalogGroupDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setKeyWord

public void setKeyWord(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setKeyWord in interface CatalogGroupDescriptionAccessBeanData

getFullIImage

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

This method provides access to the CATGRPDESC.FULLIMAGE column of DB2 type VARCHAR(254).

The following is a description of this column:

The full image path of this CatalogGroup.

Specified by:
getFullIImage in interface CatalogGroupDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setFullIImage

public void setFullIImage(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setFullIImage in interface CatalogGroupDescriptionAccessBeanData

getPublished

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

This method provides access to the CATGRPDESC.PUBLISHED column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates whether this CatalogGroup should be displayed for the language indicated by LANGUAGE_ID: 0=no, 1=yes.

Specified by:
getPublished in interface CatalogGroupDescriptionAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getPublishedInEJBType

public java.lang.Integer getPublishedInEJBType()
                                        throws java.rmi.RemoteException,
                                               javax.ejb.CreateException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

This method provides access to the CATGRPDESC.PUBLISHED column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates whether this CatalogGroup should be displayed for the language indicated by LANGUAGE_ID: 0=no, 1=yes.

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

setPublished

public void setPublished(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setPublished in interface CatalogGroupDescriptionAccessBeanData

setPublished

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

getMemberGroupId

public java.lang.String getMemberGroupId()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getMemberGroupId in interface CatalogGroupDescriptionAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getMemberGroupIdInEJBType

public java.lang.Long getMemberGroupIdInEJBType()
                                         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

setMemberGroupId

public void setMemberGroupId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setMemberGroupId in interface CatalogGroupDescriptionAccessBeanData

setMemberGroupId

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

getDisplay

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

This method provides access to the CATGRPDESC.DISPLAY column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getDisplay in interface CatalogGroupDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setDisplay

public void setDisplay(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setDisplay in interface CatalogGroupDescriptionAccessBeanData

getLongDescription

public java.lang.String getLongDescription()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getLongDescription in interface CatalogGroupDescriptionAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLongDescription

public void setLongDescription(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setLongDescription in interface CatalogGroupDescriptionAccessBeanData

getThumbNail

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

This method provides access to the CATGRPDESC.THUMBNAIL column of DB2 type VARCHAR(254).

The following is a description of this column:

The thumbnail image path of this CatalogGroup.

Specified by:
getThumbNail in interface CatalogGroupDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setThumbNail

public void setThumbNail(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setThumbNail in interface CatalogGroupDescriptionAccessBeanData

getShortDescription

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

This method provides access to the CATGRPDESC.SHORTDESCRIPTION column of DB2 type VARCHAR(254).

The following is a description of this column:

A short description of this CatalogGroup.

Specified by:
getShortDescription in interface CatalogGroupDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setShortDescription

public void setShortDescription(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setShortDescription in interface CatalogGroupDescriptionAccessBeanData

getName

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

This method provides access to the CATGRPDESC.NAME column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The language-dependent name of this CatalogGroup.

Specified by:
getName in interface CatalogGroupDescriptionAccessBeanData
Returns:
java.lang.String
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
Specified by:
setName in interface CatalogGroupDescriptionAccessBeanData

getCatalogGroupReferenceNumber

public java.lang.Long getCatalogGroupReferenceNumber()
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.CreateException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException
getCatalogGroupReferenceNumber
Specified by:
getCatalogGroupReferenceNumber in interface CatalogGroupDescriptionAccessBeanData
Returns:
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCatalogGroupReferenceNumber

public void setCatalogGroupReferenceNumber(java.lang.Long newValue)
This method accesses a non-CMP field
Specified by:
setCatalogGroupReferenceNumber in interface CatalogGroupDescriptionAccessBeanData

getNote

public java.lang.String getNote()
                         throws java.rmi.RemoteException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException
getNote
Specified by:
getNote in interface CatalogGroupDescriptionAccessBeanData
Returns:
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setNote

public void setNote(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setNote in interface CatalogGroupDescriptionAccessBeanData

Feedback