com.ibm.commerce.common.objects
Class QuantityUnitAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.common.objects.QuantityUnitAccessBean
All Implemented Interfaces:
QuantityUnitAccessBeanData, java.io.Serializable

public class QuantityUnitAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements QuantityUnitAccessBeanData

This bean provides access to the QTYUNIT table.

The following is a description of this table:

Each row of this table represents a QuantityUnit. A QuantityUnit is a unit of measurement, such as kilogram, meter, liter, pound, foot, quart, and so on.
Note: Do not remove the row for the default QTYUNIT_ID C62 (the unitless unit).

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
QuantityUnitAccessBean()
          Default constructor.
QuantityUnitAccessBean(javax.ejb.EJBObject ejbObject)
          Creates an access bean for the specified EJB
QuantityUnitAccessBean(java.lang.String argQuantityUnitId)
          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 findAll()
          Retrieves all QuantityUnitAccessBeans
 java.lang.String getField1()
          This method provides access to the QTYUNIT.FIELD1 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getQuantityUnitId()
          This method provides access to the QTYUNIT.QTYUNIT_ID column of DB2 type CHAR(16) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setField1(java.lang.String aField1)
          This method provides access to the QTYUNIT.FIELD1 column of DB2 type VARCHAR(254) NULL.
 void setInitKey_quantityUnitId(java.lang.String aInitKey_quantityUnitId)
          Set the primary key for this object
 void setQuantityUnitId(java.lang.String aQuantityUnitId)
          This method provides access to the QTYUNIT.QTYUNIT_ID column of DB2 type CHAR(16) NOT 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

QuantityUnitAccessBean

public QuantityUnitAccessBean()

Default constructor. Maps to findByPrimaryKey.


QuantityUnitAccessBean

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

Creates an access bean for the specified EJB

Parameters:
ejbObject - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

QuantityUnitAccessBean

public QuantityUnitAccessBean(java.lang.String argQuantityUnitId)
                       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 QuantityUnitAccessBean with the specified quantity unit

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

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves all QuantityUnitAccessBeans

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

SELECT * FROM QTYUNIT T1 WHERE 1 = 1

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

getField1

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

This method provides access to the QTYUNIT.FIELD1 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Customizable.

Specified by:
getField1 in interface QuantityUnitAccessBeanData
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

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 QTYUNIT.QTYUNIT_ID column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

A uniquely assigned identifier. Several identifiers are defined, as specified in the UN/CEFACT Working Party on Facilitation of International Trade Procedures (WP.4), Recommendation No. 20, Codes for Units of Measure Used in International Trade.

Specified by:
getQuantityUnitId in interface QuantityUnitAccessBeanData
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

setField1

public void setField1(java.lang.String aField1)

This method provides access to the QTYUNIT.FIELD1 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Customizable.

Specified by:
setField1 in interface QuantityUnitAccessBeanData
Parameters:
aField1 - java.lang.String
Returns:
void

setInitKey_quantityUnitId

public void setInitKey_quantityUnitId(java.lang.String aInitKey_quantityUnitId)

Set the primary key for this object

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

setQuantityUnitId

public void setQuantityUnitId(java.lang.String aQuantityUnitId)

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

The following is a description of this column:

A uniquely assigned identifier. Several identifiers are defined, as specified in the UN/CEFACT Working Party on Facilitation of International Trade Procedures (WP.4), Recommendation No. 20, Codes for Units of Measure Used in International Trade.

Specified by:
setQuantityUnitId in interface QuantityUnitAccessBeanData
Parameters:
aQuantityUnitId - java.lang.String
Returns:
void