com.ibm.commerce.utf.objects
Class PAttributeDescAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.utf.objects.PAttributeDescAccessBean
All Implemented Interfaces:
PAttributeDescAccessBeanData

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

This table contains personalization attribute descriptions. This access bean corresponds to the database table 'PATTRDESC'.

See Also:
Serialized Form

Constructor Summary
PAttributeDescAccessBean()
Zero argument constructor used to initialize the access bean.
PAttributeDescAccessBean(javax.ejb.EJBObject o)
constructor
PAttributeDescAccessBean(java.lang.Long argPattributeId, java.lang.Integer argLangId)
Creates an access bean with the specified attributes.
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByAttributeAndLang(java.lang.Long argAttributeId, java.lang.Integer argLangId)
Retrieves the PAttributeDescAccessBeans that match the specified PAttribute and Language.
java.util.Enumeration findByLang(java.lang.Integer argLangId)
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).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_langId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_pattributeId(java.lang.String newValue)
Set the primary key for this object
void setLangId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setLangId(java.lang.String newValue)
This method accesses a non-CMP field
void setPattributeId(java.lang.Long newValue)
This method accesses a non-CMP field
void setPattributeId(java.lang.String newValue)
This method accesses a non-CMP field
void setShortDesc(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

PAttributeDescAccessBean

public PAttributeDescAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.utf.objects.PAttributeDesc com.ibm.commerce.utf.objects.PAttributeDescHome.findByPrimaryKey(com.ibm.commerce.utf.objects.PAttributeDescKey) 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_langId( java.lang.Integer ) setInitKey_pattributeId( java.lang.Long )

PAttributeDescAccessBean

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

PAttributeDescAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
argPattributeId - the PAttribute ID
argLangId - 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

findByAttributeAndLang

public java.util.Enumeration findByAttributeAndLang(java.lang.Long argAttributeId,
                                                    java.lang.Integer argLangId)
                                             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:
argAttributeId - the PAttribute ID
argLangId - 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

findByLang

public java.util.Enumeration findByLang(java.lang.Integer argLangId)
                                 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:
argLangId - 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

setInitKey_langId

public void setInitKey_langId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_pattributeId

public void setInitKey_pattributeId(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

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setShortDesc

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

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLangId

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

setLangId

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

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPattributeId

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

setPattributeId

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

Feedback