com.ibm.commerce.common.objects
Class QuantityUnitMappingAccessBean

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

public class QuantityUnitMappingAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements QuantityUnitMappingAccessBeanData

This bean provides access to the QTYUNITMAP table.

The following is a description of this table:

Each row of this table maps a QuantityUnit (defined in the QTYUNIT table) to a unit of measurement code defined in an external standard.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
QuantityUnitMappingAccessBean()
          Default constructor.
QuantityUnitMappingAccessBean(javax.ejb.EJBObject ejbObject)
          Creates an access bean for the specified EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 QuantityUnitMappingAccessBean findByQuantityUnitAndUOMStandard(java.lang.String argQuantityUnitId, java.lang.String argUOMStandard)
          Retrieves all QuantityUnitMappingAccessBean according to the search criteria
 java.lang.String getField1()
          This method provides access to the QTYUNITMAP.FIELD1 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getQuantityUnitId()
          This method provides access to the QTYUNITMAP.QTYUNIT_ID column of DB2 type CHAR(16) NOT NULL.
 java.lang.String getUomCode()
          This method provides access to the QTYUNITMAP.UOMCODE column of DB2 type VARCHAR(16) NOT NULL.
 java.lang.String getUomStandard()
          This method provides access to the QTYUNITMAP.UOMSTANDARD column of DB2 type VARCHAR(32) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setField1(java.lang.String aField1)
          This method provides access to the QTYUNITMAP.FIELD1 column of DB2 type VARCHAR(254) NULL.
 void setInitKey_uomCode(java.lang.String aInitKey_uomCode)
          Set the primary key for this object
 void setInitKey_uomStandard(java.lang.String aInitKey_uomStandard)
          Set the primary key for this object
 void setQuantityUnitId(java.lang.String aQuantityUnitId)
          This method provides access to the QTYUNITMAP.QTYUNIT_ID column of DB2 type CHAR(16) NOT NULL.
 void setUomCode(java.lang.String aUomCode)
          This method provides access to the QTYUNITMAP.UOMCODE column of DB2 type VARCHAR(16) NOT NULL.
 void setUomStandard(java.lang.String aUomStandard)
          This method provides access to the QTYUNITMAP.UOMSTANDARD column of DB2 type VARCHAR(32) 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

QuantityUnitMappingAccessBean

public QuantityUnitMappingAccessBean()

Default constructor. Maps to findByPrimaryKey.


QuantityUnitMappingAccessBean

public QuantityUnitMappingAccessBean(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
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

findByQuantityUnitAndUOMStandard

public QuantityUnitMappingAccessBean findByQuantityUnitAndUOMStandard(java.lang.String argQuantityUnitId,
                                                                      java.lang.String argUOMStandard)
                                                               throws java.rmi.RemoteException,
                                                                      javax.ejb.FinderException,
                                                                      javax.naming.NamingException

Retrieves all QuantityUnitMappingAccessBean according to the search criteria

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

SELECT * FROM QTYUNITMAP T1 WHERE T1.QTYUNIT_ID=? AND T1.UOMSTANDARD =?

Parameters:
argQuantityUnitId - Quantity unit id
argUOMStandard - UOM Standard
Returns:
com.ibm.commerce.common.objects.QuantityUnitMappingAccessBean
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 QTYUNITMAP.FIELD1 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Customizable.

Specified by:
getField1 in interface QuantityUnitMappingAccessBeanData
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 QTYUNITMAP.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 QuantityUnitMappingAccessBeanData
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

getUomCode

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

This method provides access to the QTYUNITMAP.UOMCODE column of DB2 type VARCHAR(16) NOT NULL.

The following is a description of this column:

The unit of measurement code for the external standard.

Specified by:
getUomCode in interface QuantityUnitMappingAccessBeanData
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

getUomStandard

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

This method provides access to the QTYUNITMAP.UOMSTANDARD column of DB2 type VARCHAR(32) NOT NULL.

The following is a description of this column:

The external standard.

Specified by:
getUomStandard in interface QuantityUnitMappingAccessBeanData
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 QTYUNITMAP.FIELD1 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Customizable.

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

setInitKey_uomCode

public void setInitKey_uomCode(java.lang.String aInitKey_uomCode)

Set the primary key for this object

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

setInitKey_uomStandard

public void setInitKey_uomStandard(java.lang.String aInitKey_uomStandard)

Set the primary key for this object

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

setQuantityUnitId

public void setQuantityUnitId(java.lang.String aQuantityUnitId)

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

The following is a description of this column:

The QuantityUnit.

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

setUomCode

public void setUomCode(java.lang.String aUomCode)

This method provides access to the QTYUNITMAP.UOMCODE column of DB2 type VARCHAR(16) NOT NULL.

The following is a description of this column:

The unit of measurement code for the external standard.

Specified by:
setUomCode in interface QuantityUnitMappingAccessBeanData
Parameters:
aUomCode - java.lang.String
Returns:
void

setUomStandard

public void setUomStandard(java.lang.String aUomStandard)

This method provides access to the QTYUNITMAP.UOMSTANDARD column of DB2 type VARCHAR(32) NOT NULL.

The following is a description of this column:

The external standard.

Specified by:
setUomStandard in interface QuantityUnitMappingAccessBeanData
Parameters:
aUomStandard - java.lang.String
Returns:
void