com.ibm.commerce.common.objects
Class QuantityUnitDescriptionAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.common.objects.QuantityUnitDescriptionAccessBean
All Implemented Interfaces:
QuantityUnitDescriptionAccessBeanData

public class QuantityUnitDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements QuantityUnitDescriptionAccessBeanData

Each row in this table describes a QuantityUnit in a particular language. This access bean corresponds to the database table 'QTYUNITDSC'.

See Also:
Serialized Form

Constructor Summary
QuantityUnitDescriptionAccessBean()
Zero argument constructor used to initialize the access bean.
QuantityUnitDescriptionAccessBean(javax.ejb.EJBObject o)
constructor
QuantityUnitDescriptionAccessBean(java.lang.String argQuantityUnitId, java.lang.Integer argLanguageId)
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 findByLanguage(java.lang.Integer argLanguageId)
Retrieves all QuantityUnitDescriptionAccessBeans by language id
java.lang.String getDescription()
This method provides access to the QTYUNITDSC.DESCRIPTION column of DB2 type VARCHAR(254).
java.lang.String getLanguage_id()
This method provides access to the QTYUNITDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getLanguage_idInEJBType()
This method provides access to the QTYUNITDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getQuantityUnitId()
This method provides access to the QTYUNITDSC.QTYUNIT_ID column of DB2 type CHAR(16) NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_language_id(java.lang.String newValue)
Set the primary key for this object
void setInitKey_quantityUnitId(java.lang.String newValue)
Set the primary key for this object
void setLanguage_id(java.lang.Integer newValue)
This method accesses a non-CMP field
void setLanguage_id(java.lang.String newValue)
This method accesses a non-CMP field
void setQuantityUnitId(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

QuantityUnitDescriptionAccessBean

public QuantityUnitDescriptionAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.common.objects.QuantityUnitDescription com.ibm.commerce.common.objimpl.QuantityUnitDescriptionHomeBase.findByPrimaryKey(com.ibm.commerce.common.objects.QuantityUnitDescriptionKey) 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_quantityUnitId( java.lang.String )

QuantityUnitDescriptionAccessBean

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

QuantityUnitDescriptionAccessBean

public QuantityUnitDescriptionAccessBean(java.lang.String argQuantityUnitId,
                                         java.lang.Integer argLanguageId)
                                  throws javax.naming.NamingException,
                                         javax.ejb.CreateException,
                                         java.rmi.RemoteException,
                                         javax.ejb.FinderException

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

Creates a QuantityUnitDescriptionAccessBean with the specified quantity unit id and language id

Parameters:
argQuantityUnitId - Quantity unit id
argLanguageId - 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

findByLanguage

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

Retrieves all QuantityUnitDescriptionAccessBeans by language id

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

SELECT * FROM QTYUNITDSC T1 WHERE T1.language_id = ? ORDER BY T1.DESCRIPTION

Parameters:
argLanguageId - Language id
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_quantityUnitId

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

getDescription

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

This method provides access to the QTYUNITDSC.DESCRIPTION column of DB2 type VARCHAR(254).

The following is a description of this column:

The description of the QuantityUnit.

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

setDescription

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

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 QTYUNITDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language of the description. For a list of language components, see the LANGUAGE table.

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

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 QTYUNITDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language of the description. 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

setLanguage_id

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

setLanguage_id

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

getQuantityUnitId

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

This method provides access to the QTYUNITDSC.QTYUNIT_ID column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

The QuantityUnit.

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

setQuantityUnitId

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

Feedback