com.ibm.commerce.catalog.objects
Class PackageAttributeAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.catalog.objects.PackageAttributeAccessBean
All Implemented Interfaces:
PackageAttributeAccessBeanData, java.io.Serializable

public class PackageAttributeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PackageAttributeAccessBeanData

This bean provides access to the PKGATTR table.

The following is a description of this table:

This table holds the attributes of Packages. Package Attributes are inherited from the Attributes of the Products that are contained within Packages.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
PackageAttributeAccessBean()
          Default constructor.
PackageAttributeAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
PackageAttributeAccessBean(java.lang.Long argPackageAttributeReferenceNumber)
          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).
 java.util.Enumeration findByPackageAndLanguage(java.lang.Long aPackageReferenceNumber, java.lang.Integer aLanguageId)
          This method returns an Enumeration of PackageAttributeAccessBean with the given PackageReferenceNumber and LanguageId.
 java.util.Enumeration findByPackageReferenceNumber(java.lang.Long aPackageReferenceNumber)
          This method returns an Enumeration of PackageAttributeAccessBean with the given PackageReferenceNumber.
 AttributeAccessBean getAttribute()
          The method returns the product attribute.
 java.lang.String getAttributeID()
          This method provides access to the PKGATTR.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getAttributeIDInEJBType()
          This method provides access to the PKGATTR.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getLanguage_id()
          This method provides access to the PKGATTR.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLanguage_idInEJBType()
          This method provides access to the PKGATTR.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getOid()
          This method provides access to the PKGATTR.OID column of DB2 type CHARACTER (32) NULL.
 java.lang.String getPackageReferenceNumber()
          This method provides access to the PKGATTR.CATENTRY_ID column of DB2 type BIGINT NULL.
 java.lang.Long getPackageReferenceNumberInEJBType()
          This method provides access to the PKGATTR.CATENTRY_ID column of DB2 type BIGINT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAttributeID(java.lang.Long aAttributeID)
          This method provides access to the PKGATTR.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 void setAttributeID(java.lang.String aAttributeID)
          This method provides access to the PKGATTR.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_packageAttributeReferenceNumber(java.lang.String aInitKey_packageAttributeReferenceNumber)
          Set the primary key for this object
 void setLanguage_id(java.lang.Integer aLanguage_id)
          This method provides access to the PKGATTR.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLanguage_id(java.lang.String aLanguage_id)
          This method provides access to the PKGATTR.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setOid(java.lang.String aOId)
          This method provides access to the PKGATTR.OID column of DB2 type CHARACTER (32) NULL.
 void setPackageReferenceNumber(java.lang.Long aPackageReferenceNumber)
          This method provides access to the PKGATTR.CATENTRY_ID column of DB2 type BIGINT NULL.
 void setPackageReferenceNumber(java.lang.String aPackageReferenceNumber)
          This method provides access to the PKGATTR.CATENTRY_ID column of DB2 type BIGINT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, 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
 

Constructor Detail

PackageAttributeAccessBean

public PackageAttributeAccessBean()

Default constructor. It is used to initialize the access bean.


PackageAttributeAccessBean

public PackageAttributeAccessBean(javax.ejb.EJBObject ejbObject)
                           throws java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
ejbObject - a PackageAttribute EJBObject reference
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

PackageAttributeAccessBean

public PackageAttributeAccessBean(java.lang.Long argPackageAttributeReferenceNumber)
                           throws javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.naming.NamingException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
argPackageAttributeReferenceNumber - The Package attribute reference number. java.lang.Long
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

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).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByPackageAndLanguage

public java.util.Enumeration findByPackageAndLanguage(java.lang.Long aPackageReferenceNumber,
                                                      java.lang.Integer aLanguageId)
                                               throws java.rmi.RemoteException,
                                                      javax.ejb.FinderException,
                                                      javax.naming.NamingException

This method returns an Enumeration of PackageAttributeAccessBean with the given PackageReferenceNumber and LanguageId.

SQL:
SELECT * FROM ATTRVALUE WHERE PKGATTR.CATENTRY_ID = aPackageReferenceNumber and PKGATTR.LANGUAGE_ID = aLanguageId

Parameters:
aPackageReferenceNumber - The Package reference number. java.lang.Long
aLanguageId - 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 - The javax.naming.NamingException exception

findByPackageReferenceNumber

public java.util.Enumeration findByPackageReferenceNumber(java.lang.Long aPackageReferenceNumber)
                                                   throws java.rmi.RemoteException,
                                                          javax.ejb.FinderException,
                                                          javax.naming.NamingException

This method returns an Enumeration of PackageAttributeAccessBean with the given PackageReferenceNumber.

SQL:
SELECT * FROM ATTRVALUE WHERE PKGATTR.CATENTRY_ID = aPackageReferenceNumber

Parameters:
aPackageReferenceNumber - The Package reference number. java.lang.Long
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getAttribute

public AttributeAccessBean getAttribute()
                                 throws javax.naming.NamingException,
                                        javax.ejb.CreateException,
                                        javax.ejb.FinderException,
                                        java.rmi.RemoteException

The method returns the product attribute.

Returns:
com.ibm.commerce.catalog.objects.AttributeAccessBean
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getAttributeID

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

This method provides access to the PKGATTR.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference to an Attribute of a Product that is contained within the Package.

Specified by:
getAttributeID in interface PackageAttributeAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getAttributeIDInEJBType

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

This method provides access to the PKGATTR.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference to an Attribute of a Product that is contained within the Package.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getLanguage_id

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

This method provides access to the PKGATTR.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language that this Attribute pertains to.

Specified by:
getLanguage_id in interface PackageAttributeAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getLanguage_idInEJBType

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

This method provides access to the PKGATTR.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language that this Attribute pertains to.

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

getOid

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

This method provides access to the PKGATTR.OID column of DB2 type CHARACTER (32) NULL.

The following is a description of this column:

Reserved for IBM internal use..

Specified by:
getOid in interface PackageAttributeAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPackageReferenceNumber

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

This method provides access to the PKGATTR.CATENTRY_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The reference number of the Package.

Specified by:
getPackageReferenceNumber in interface PackageAttributeAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPackageReferenceNumberInEJBType

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

This method provides access to the PKGATTR.CATENTRY_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The reference number of the Package.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

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

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setAttributeID

public void setAttributeID(java.lang.Long aAttributeID)

This method provides access to the PKGATTR.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference to an Attribute of a Product that is contained within the Package.

Parameters:
aAttributeID - The reference number of an Attribute of a Product that is contained within the Package. java.lang.Long
Returns:
void

setAttributeID

public void setAttributeID(java.lang.String aAttributeID)

This method provides access to the PKGATTR.ATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference to an Attribute of a Product that is contained within the Package.

Specified by:
setAttributeID in interface PackageAttributeAccessBeanData
Parameters:
aAttributeID - The reference number of an Attribute of a Product that is contained within the Package. java.lang.String
Returns:
void

setInitKey_packageAttributeReferenceNumber

public void setInitKey_packageAttributeReferenceNumber(java.lang.String aInitKey_packageAttributeReferenceNumber)

Set the primary key for this object

Parameters:
aInitKey_packageAttributeReferenceNumber - The reference number of the Package Attribute. java.lang.String
Returns:
void

setLanguage_id

public void setLanguage_id(java.lang.Integer aLanguage_id)

This method provides access to the PKGATTR.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language that this Attribute pertains to.

Parameters:
aLanguage_id - The language id. java.lang.Integer
Returns:
void

setLanguage_id

public void setLanguage_id(java.lang.String aLanguage_id)

This method provides access to the PKGATTR.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language that this Attribute pertains to.

Specified by:
setLanguage_id in interface PackageAttributeAccessBeanData
Parameters:
aLanguage_id - The language id. java.lang.String
Returns:
void

setOid

public void setOid(java.lang.String aOId)

This method provides access to the PKGATTR.OID column of DB2 type CHARACTER (32) NULL.

The following is a description of this column:

Reserved for IBM internal use..

Specified by:
setOid in interface PackageAttributeAccessBeanData
Parameters:
aOId - The OId. java.lang.String
Returns:
void

setPackageReferenceNumber

public void setPackageReferenceNumber(java.lang.Long aPackageReferenceNumber)

This method provides access to the PKGATTR.CATENTRY_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The reference number of the Package.

Parameters:
aPackageReferenceNumber - The reference number of the Package. java.lang.Long
Returns:
void

setPackageReferenceNumber

public void setPackageReferenceNumber(java.lang.String aPackageReferenceNumber)

This method provides access to the PKGATTR.CATENTRY_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The reference number of the Package.

Specified by:
setPackageReferenceNumber in interface PackageAttributeAccessBeanData
Parameters:
aPackageReferenceNumber - The reference number of the Package. java.lang.String
Returns:
void