com.ibm.commerce.utf.objects
Class PAttributeDescAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.utf.objects.PAttributeDescAccessBean
All Implemented Interfaces:
PAttributeDescAccessBeanData, java.io.Serializable

public class PAttributeDescAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PAttributeDescAccessBeanData

This bean provides access to the PATTRDESC table.

The following is a description of this table:

This table contains personalization Attribute descriptions.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
PAttributeDescAccessBean()
          Default constructor.
PAttributeDescAccessBean(javax.ejb.EJBObject aEJBObject)
          Creates an access bean for the specified EJB.
PAttributeDescAccessBean(java.lang.Long aPAttributeId, java.lang.Integer aLanguageId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByAttributeAndLang(java.lang.Long aPAttributeId, java.lang.Integer aLanguageId)
          Retrieves the PAttributeDescAccessBeans that match the specified PAttribute and Language.
 java.util.Enumeration findByLang(java.lang.Integer aLanguageId)
          Retrieves the PAttributeDescAccessBeans that match the specified Language.
 java.lang.String getLangId()
          This method provides access to the PATTRDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLangIdInEJBType()
          This method provides access to the PATTRDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getPattributeId()
          This method provides access to the PATTRDESC.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getPattributeIdInEJBType()
          This method provides access to the PATTRDESC.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getShortDesc()
          This method provides access to the PATTRDESC.DESCRIPTION column of DB2 type VARCHAR(1024) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_langId(java.lang.String aInitKey_langId)
          Set the primary key for this object
 void setInitKey_pattributeId(java.lang.String aInitKey_pattributeId)
          Set the primary key for this object
 void setLangId(java.lang.Integer aLangId)
          This method provides access to the PATTRDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLangId(java.lang.String aLangId)
          This method provides access to the PATTRDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setPattributeId(java.lang.Long aPattributeId)
          This method provides access to the PATTRDESC.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 void setPattributeId(java.lang.String aPattributeId)
          This method provides access to the PATTRDESC.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.
 void setShortDesc(java.lang.String aShortDesc)
          This method provides access to the PATTRDESC.DESCRIPTION column of DB2 type VARCHAR(1024) 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

PAttributeDescAccessBean

public PAttributeDescAccessBean()

Default constructor. Maps to findByPrimaryKey.


PAttributeDescAccessBean

public PAttributeDescAccessBean(javax.ejb.EJBObject aEJBObject)
                         throws java.rmi.RemoteException

Creates an access bean for the specified EJB.

Parameters:
aEJBObject - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

PAttributeDescAccessBean

public PAttributeDescAccessBean(java.lang.Long aPAttributeId,
                                java.lang.Integer aLanguageId)
                         throws javax.ejb.CreateException,
                                java.rmi.RemoteException,
                                javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
aPAttributeId - the PAttribute ID
aLanguageId - the Language ID
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException 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

findByAttributeAndLang

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

Retrieves the PAttributeDescAccessBeans that match the specified PAttribute and Language.

The SQL query used to fetch all the required row from the PATTRDESC table is:
SELECT * FROM PATTRDESC T1 WHERE
T1.PATTRIBUTE_ID = ? AND T1.LANGUAGE_ID = ?

Parameters:
aPAttributeId - the PAttribute ID
aLanguageId - the Language ID
Returns:
An Enumeration of all the PAttributeDescAccessBeans representing 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 - The javax.naming.NamingException exception

findByLang

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

Retrieves the PAttributeDescAccessBeans that match the specified Language.

The SQL query used to fetch all the required row from the PATTRDESC table is:
SELECT * FROM PATTRDESC T1 WHERE
T1.LANGUAGE_ID = ?

Parameters:
aLanguageId - the Language ID
Returns:
An Enumeration of all the PAttributeDescAccessBeans representing 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 - The javax.naming.NamingException exception

getLangId

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

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

The following is a description of this column:

Language this description pertains to. For a list of language components, see the LANGUAGE table.

Specified by:
getLangId in interface PAttributeDescAccessBeanData
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

getLangIdInEJBType

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

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

The following is a description of this column:

Language this description pertains to. For a list of language components, see the LANGUAGE table.

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

getPattributeId

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

This method provides access to the PATTRDESC.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Identifier of the personalization Attribute.

Specified by:
getPattributeId in interface PAttributeDescAccessBeanData
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

getPattributeIdInEJBType

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

This method provides access to the PATTRDESC.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Identifier of the personalization Attribute.

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

getShortDesc

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

This method provides access to the PATTRDESC.DESCRIPTION column of DB2 type VARCHAR(1024) NULL.

The following is a description of this column:

A brief description of the personalization Attribute.

Specified by:
getShortDesc in interface PAttributeDescAccessBeanData
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

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

setInitKey_langId

public void setInitKey_langId(java.lang.String aInitKey_langId)

Set the primary key for this object

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

setInitKey_pattributeId

public void setInitKey_pattributeId(java.lang.String aInitKey_pattributeId)

Set the primary key for this object

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

setLangId

public void setLangId(java.lang.Integer aLangId)

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

The following is a description of this column:

Language this description pertains to. For a list of language components, see the LANGUAGE table.

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

setLangId

public void setLangId(java.lang.String aLangId)

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

The following is a description of this column:

Language this description pertains to. For a list of language components, see the LANGUAGE table.

Specified by:
setLangId in interface PAttributeDescAccessBeanData
Parameters:
aLangId - java.lang.String
Returns:
void

setPattributeId

public void setPattributeId(java.lang.Long aPattributeId)

This method provides access to the PATTRDESC.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Identifier of the personalization Attribute.

Parameters:
aPattributeId - java.lang.Long
Returns:
void

setPattributeId

public void setPattributeId(java.lang.String aPattributeId)

This method provides access to the PATTRDESC.PATTRIBUTE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Identifier of the personalization Attribute.

Specified by:
setPattributeId in interface PAttributeDescAccessBeanData
Parameters:
aPattributeId - java.lang.String
Returns:
void

setShortDesc

public void setShortDesc(java.lang.String aShortDesc)

This method provides access to the PATTRDESC.DESCRIPTION column of DB2 type VARCHAR(1024) NULL.

The following is a description of this column:

A brief description of the personalization Attribute.

Specified by:
setShortDesc in interface PAttributeDescAccessBeanData
Parameters:
aShortDesc - java.lang.String
Returns:
void