com.ibm.commerce.ordermanagement.objects
Class ReturnDenyReasonAccessBean

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

public class ReturnDenyReasonAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ReturnDenyReasonAccessBeanData

This table stores denial reasons for return merchandise authorization (RMA) items. These are the reasons for which an RMA item was not automatically approved by the system. This access bean corresponds to the database table 'RTNDNYRSN'.

See Also:
Serialized Form

Constructor Summary
ReturnDenyReasonAccessBean()
Zero argument constructor used to initialize the access bean.
ReturnDenyReasonAccessBean(java.lang.Integer arg0, java.lang.String arg1)
constructor
ReturnDenyReasonAccessBean(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 findByRMAItemId(java.lang.Long rmaItemId) Retrieves all the return deny reasons attached to an RMA item. The SQL query used to fetch the requested row from the RTNDNYRSN table is:
SELECT * FROM RMAIDNYRSN , RTNDNYRSN T1 where T1.RTNDNYRSN_ID = RMAIDNYRSN.RTNDNYRSN_ID AND RMAIDNYRSN.RMAITEM_ID = ?
java.util.Enumeration findByStoreIdorStoreGroupIdOrderDescByStoreEnt(java.lang.Integer storeId, java.lang.Integer storeGroupId) Retrieves all the return deny reasons defined for a store and its corresponding store group. The SQL query used to fetch the requested row from the RTNDNYRSN table is:
SELECT * FROM RTNDNYRSN T1 where (T1.Storeent_id = ? or T1.Storeent_id=?) and T1.MarkForDelete=0
java.lang.String getCode()
This method provides access to the RTNDNYRSN.CODE column of DB2 type CHAR(10) NOT NULL.
ReturnDenyReasonDescriptionAccessBean getDescription(java.lang.Integer languageId)
java.lang.String getMarkForDelete()
This method provides access to the RTNDNYRSN.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getMarkForDeleteInEJBType()
This method provides access to the RTNDNYRSN.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getRtnDnyRsnId()
This method provides access to the RTNDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getRtnDnyRsnIdInEJBType()
This method provides access to the RTNDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getStoreentId()
This method provides access to the RTNDNYRSN.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreentIdInEJBType()
This method provides access to the RTNDNYRSN.STOREENT_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_rtnDnyRsnId(java.lang.String newValue)
Set the primary key for this object
void setMarkForDelete(java.lang.Integer newValue)
This method accesses a non-CMP field
void setMarkForDelete(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
void setStoreentId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreentId(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

ReturnDenyReasonAccessBean

public ReturnDenyReasonAccessBean()
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.ReturnDenyReason com.ibm.commerce.ordermanagement.objimpl.ReturnDenyReasonHomeBase.findByPrimaryKey(com.ibm.commerce.ordermanagement.objects.ReturnDenyReasonKey) 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_rtnDnyRsnId( java.lang.Integer )

ReturnDenyReasonAccessBean

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

ReturnDenyReasonAccessBean

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

findByRMAItemId

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

Retrieves all the return deny reasons attached to an RMA item.
The SQL query used to fetch the requested row from the
RTNDNYRSN table is:
SELECT * FROM RMAIDNYRSN , RTNDNYRSN T1 where T1.RTNDNYRSN_ID = RMAIDNYRSN.RTNDNYRSN_ID AND RMAIDNYRSN.RMAITEM_ID = ?

Parameters:
rmaItemId - java.lang.Long RMA item ID
Returns:
An Enumeration of all the ReturnDenyReasonAccessBeans 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 - The javax.naming.NamingException exception

findByStoreIdorStoreGroupIdOrderDescByStoreEnt

public java.util.Enumeration findByStoreIdorStoreGroupIdOrderDescByStoreEnt(java.lang.Integer storeId,
                                                                            java.lang.Integer storeGroupId)
                                                                     throws java.rmi.RemoteException,
                                                                            javax.ejb.FinderException,
                                                                            javax.naming.NamingException

Retrieves all the return deny reasons defined for a store and its corresponding store group.
The SQL query used to fetch the requested row from the
RTNDNYRSN table is:
SELECT * FROM RTNDNYRSN T1 where (T1.Storeent_id = ? or T1.Storeent_id=?) and T1.MarkForDelete=0

Parameters:
storeId - java.lang.Integer Store ID
storeGroupId - java.lang.Integer Store Group ID
Returns:
An Enumeration of all the ReturnDenyReasonAccessBeans 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 - The javax.naming.NamingException exception

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

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 RTNDNYRSN.CODE column of DB2 type CHAR(10) NOT NULL.

The following is a description of this column:

Code used to reference the denial reason across stores.

Specified by:
getCode in interface ReturnDenyReasonAccessBeanData
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 ReturnDenyReasonAccessBeanData

getMarkForDelete

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

This method provides access to the RTNDNYRSN.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this denial reason has been marked for deletion:&l

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

getMarkForDeleteInEJBType

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

This method provides access to the RTNDNYRSN.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this denial reason has been marked for deletion:&l

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

setMarkForDelete

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

setMarkForDelete

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

getStoreentId

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

This method provides access to the RTNDNYRSN.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Store Entity of the owner.

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

getStoreentIdInEJBType

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

This method provides access to the RTNDNYRSN.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Store Entity of the owner.

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

setStoreentId

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

setStoreentId

public void setStoreentId(java.lang.Integer 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 RTNDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

Specified by:
getRtnDnyRsnId in interface ReturnDenyReasonAccessBeanData
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 RTNDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

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 ReturnDenyReasonAccessBeanData

setRtnDnyRsnId

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

getDescription

public ReturnDenyReasonDescriptionAccessBean getDescription(java.lang.Integer languageId)
                                                     throws javax.ejb.CreateException,
                                                            javax.ejb.FinderException,
                                                            java.rmi.RemoteException,
                                                            javax.naming.NamingException
Parameters:
languageId - java.lang.Integer
Returns:
com.ibm.commerce.ordermanagement.objects.ReturnDenyReasonDescriptionAccessBean
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

Feedback