com.ibm.commerce.ordermanagement.objects
Class RMAItemDenyReasonAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.ordermanagement.objects.RMAItemDenyReasonAccessBean
All Implemented Interfaces:
RMAItemDenyReasonAccessBeanData

public class RMAItemDenyReasonAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements RMAItemDenyReasonAccessBeanData

A joint table which specifies reasons for denying a return merchandise authorization (RMA) item. This access bean corresponds to the database table 'RMAIDNYRSN'.

See Also:
Serialized Form

Constructor Summary
RMAItemDenyReasonAccessBean()
Zero argument constructor used to initialize the access bean.
RMAItemDenyReasonAccessBean(javax.ejb.EJBObject o)
constructor
RMAItemDenyReasonAccessBean(java.lang.Long arg0, java.lang.Integer arg1)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByRmaItemIdForUpdate(java.lang.Long rmaItemId) Retrieves all the RMA item denial reason for a particular RMA item. The SQL query used to fetch the requested row from the RMAIDNYRSN table is:
SELECT * FROM RMAIDNYRSN T1 WHERE T1.RMAITEM_ID = ? FOR UPDATE
java.lang.String getRmaItemId()
This method provides access to the RMAIDNYRSN.RMAITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getRmaItemIdInEJBType()
This method provides access to the RMAIDNYRSN.RMAITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getRtnDnyRsnId()
This method provides access to the RMAIDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getRtnDnyRsnIdInEJBType()
This method provides access to the RMAIDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_rmaItemId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_rtnDnyRsnId(java.lang.String newValue)
Set the primary key for this object
void setRmaItemId(java.lang.Long newValue)
This method accesses a non-CMP field
void setRmaItemId(java.lang.String newValue)
This method accesses a non-CMP field
void setRtnDnyRsnId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setRtnDnyRsnId(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

RMAItemDenyReasonAccessBean

public RMAItemDenyReasonAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.ordermanagement.objects.RMAItemDenyReason com.ibm.commerce.ordermanagement.objimpl.RMAItemDenyReasonHomeBase.findByPrimaryKey(com.ibm.commerce.ordermanagement.objects.RMAItemDenyReasonKey) 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_rmaItemId( java.lang.Long ) setInitKey_rtnDnyRsnId( java.lang.Integer )

RMAItemDenyReasonAccessBean

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

RMAItemDenyReasonAccessBean

public RMAItemDenyReasonAccessBean(java.lang.Long arg0,
                                   java.lang.Integer arg1)
                            throws javax.naming.NamingException,
                                   javax.ejb.CreateException,
                                   java.rmi.RemoteException,
                                   javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Integer
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByRmaItemIdForUpdate

public java.util.Enumeration findByRmaItemIdForUpdate(java.lang.Long rmaItemId)
                                               throws java.rmi.RemoteException,
                                                      javax.ejb.FinderException,
                                                      javax.naming.NamingException

Retrieves all the RMA item denial reason for a particular RMA item.
The SQL query used to fetch the requested row from the
RMAIDNYRSN table is:
SELECT * FROM RMAIDNYRSN T1 WHERE T1.RMAITEM_ID = ? FOR UPDATE

Parameters:
rmaItemId - java.lang.Long RMA item ID
Returns:
An Enumeration of all the RMAItemDenyReasonAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_rmaItemId

public void setInitKey_rmaItemId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_rtnDnyRsnId

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

getRmaItemId

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

This method provides access to the RMAIDNYRSN.RMAITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID of the RMA item.

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

getRmaItemIdInEJBType

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

This method provides access to the RMAIDNYRSN.RMAITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID of the RMA item.

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

setRmaItemId

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

setRmaItemId

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

getRtnDnyRsnId

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

This method provides access to the RMAIDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The ID of the reason to deny authorization for the RMA.

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

getRtnDnyRsnIdInEJBType

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

This method provides access to the RMAIDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The ID of the reason to deny authorization for the RMA.

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

setRtnDnyRsnId

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

setRtnDnyRsnId

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

Feedback