com.ibm.commerce.common.objects
Class QuantityUnitMappingAccessBean

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

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

Each row of this table maps a QuantityUnit (defined in the QTYUNIT table) to a unit of measurement code defined in an external standard. This access bean corresponds to the database table 'QTYUNITMAP'.

See Also:
Serialized Form

Constructor Summary
QuantityUnitMappingAccessBean()
Zero argument constructor used to initialize the access bean.
QuantityUnitMappingAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
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).
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setField1(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_uomCode(java.lang.String newValue)
Set the primary key for this object
void setInitKey_uomStandard(java.lang.String newValue)
Set the primary key for this object
void setQuantityUnitId(java.lang.String newValue)
This method accesses a non-CMP field
void setUomCode(java.lang.String newValue)
This method accesses a non-CMP field
void setUomStandard(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

QuantityUnitMappingAccessBean

public QuantityUnitMappingAccessBean()
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.QuantityUnitMapping com.ibm.commerce.common.objimpl.QuantityUnitMappingHomeBase.findByPrimaryKey(com.ibm.commerce.common.objects.QuantityUnitMappingKey) 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_uomCode( java.lang.String ) setInitKey_uomStandard( java.lang.String )

QuantityUnitMappingAccessBean

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

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.QuantityUnitMapping
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_uomCode

public void setInitKey_uomCode(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_uomStandard

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

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

setUomCode

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

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

setUomStandard

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

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

The following is a description of this column:

Customizable.

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

setField1

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

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
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 QuantityUnitMappingAccessBeanData

Feedback