com.ibm.commerce.common.objects
Class NumberUsageAccessBean

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

public class NumberUsageAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements NumberUsageAccessBeanData

Each row defines a NumberUsage object. Numbers such as quantities and monetary amounts can be rounded and formatted differently depending on their associated NumberUsage objects. The CurrencyManager and QuantityManager cache this information. This access bean corresponds to the database table 'NUMBRUSG'.

See Also:
Serialized Form

Constructor Summary
NumberUsageAccessBean()
Default constructor.
NumberUsageAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findAll()
Retrieves all NumberUsageAccessBeans
java.util.Enumeration findByCode(java.lang.String argCode)
Retrieves all NumberUsageAccessBean by number usage argCode
java.lang.String getCode()
This method provides access to the NUMBRUSG.CODE column of DB2 type CHAR(60).
java.lang.String getNumberUsageId()
This method provides access to the NUMBRUSG.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getNumberUsageIdInEJBType()
This method provides access to the NUMBRUSG.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCode(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_numberUsageId(java.lang.String newValue)
Set the primary key for this object
void setNumberUsageId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setNumberUsageId(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

NumberUsageAccessBean

public NumberUsageAccessBean()

Default constructor. Maps to findByPrimaryKey.


NumberUsageAccessBean

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

findAll

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

Retrieves all NumberUsageAccessBeans

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

SELECT * FROM NUMBRUSG 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

findByCode

public java.util.Enumeration findByCode(java.lang.String argCode)
                                 throws java.rmi.RemoteException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

Retrieves all NumberUsageAccessBean by number usage argCode

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

SELECT * FROM NUMBRUSG T1 WHERE T1.CODE = ?

Parameters:
argCode - Code
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_numberUsageId

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

getCode

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

This method provides access to the NUMBRUSG.CODE column of DB2 type CHAR(60).

The following is a description of this column:

Applications can specify this value to identify their application specific NumberUsages. It is suggested that Java package naming conventions be used to facilitate application integration. Values starting with &quo

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

setCode

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

getNumberUsageId

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

This method provides access to the NUMBRUSG.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key. Negative values are reserved for IBM. WebSphere Commerce defines and uses the following values:&l

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

getNumberUsageIdInEJBType

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

This method provides access to the NUMBRUSG.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key. Negative values are reserved for IBM. WebSphere Commerce defines and uses the following values:&l

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setNumberUsageId

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

setNumberUsageId

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

Feedback