com.ibm.commerce.ordermanagement.objects
Class ReturnDenyReasonAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.ordermanagement.objects.ReturnDenyReasonAccessBean
All Implemented Interfaces:
ReturnDenyReasonAccessBeanData, java.io.Serializable

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

This bean provides access to the RTNDNYRSN table.

The following is a description of this table:

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.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
ReturnDenyReasonAccessBean()
          Default constructor.
ReturnDenyReasonAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
ReturnDenyReasonAccessBean(java.lang.Integer storeEntityID, java.lang.String code)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 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 aDescription)
           
 java.lang.String getMarkForDelete()
          This method provides access to the RTNDNYRSN.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getMarkForDeleteInEJBType()
          This method provides access to the RTNDNYRSN.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 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.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCode(java.lang.String aCode)
          This method provides access to the RTNDNYRSN.CODE column of DB2 type CHAR(10) NOT NULL.
 void setInitKey_rtnDnyRsnId(java.lang.String aInitKey_rtnDnyRsnId)
          Set the primary key for this object
 void setMarkForDelete(java.lang.Integer aMarkForDelete)
          This method provides access to the RTNDNYRSN.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setMarkForDelete(java.lang.String aMarkForDelete)
          This method provides access to the RTNDNYRSN.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setRtnDnyRsnId(java.lang.Integer aRtnDnyRsnId)
          This method provides access to the RTNDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.
 void setRtnDnyRsnId(java.lang.String aRtnDnyRsnId)
          This method provides access to the RTNDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.Integer aStoreentId)
          This method provides access to the RTNDNYRSN.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.String aStoreentId)
          This method provides access to the RTNDNYRSN.STOREENT_ID column of DB2 type INTEGER 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

ReturnDenyReasonAccessBean

public ReturnDenyReasonAccessBean()

Default constructor. Maps to findByPrimaryKey.


ReturnDenyReasonAccessBean

public ReturnDenyReasonAccessBean(javax.ejb.EJBObject ejbObject)
                           throws java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
ejbObject - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

ReturnDenyReasonAccessBean

public ReturnDenyReasonAccessBean(java.lang.Integer storeEntityID,
                                  java.lang.String code)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.ejb.FinderException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
storeEntityID - java.lang.Integer Store Entity ID
code - java.lang.String Code
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException 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

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

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

getDescription

public ReturnDenyReasonDescriptionAccessBean getDescription(java.lang.Integer aDescription)
                                                     throws javax.ejb.CreateException,
                                                            javax.ejb.FinderException,
                                                            java.rmi.RemoteException,
                                                            javax.naming.NamingException
Parameters:
aDescription - 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

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.

The following is a description of this column:

Indicates if this denial reason has been marked for deletion:
0 = No.
1 = Yes, this denial reason has been marked for deletion.

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

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.

The following is a description of this column:

Indicates if this denial reason has been marked for deletion:
0 = No.
1 = Yes, this denial reason has been marked for deletion.

Returns:
java.lang.Integer
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

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

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

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

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

setCode

public void setCode(java.lang.String aCode)

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:
setCode in interface ReturnDenyReasonAccessBeanData
Parameters:
aCode - java.lang.String
Returns:
void

setInitKey_rtnDnyRsnId

public void setInitKey_rtnDnyRsnId(java.lang.String aInitKey_rtnDnyRsnId)

Set the primary key for this object

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

setMarkForDelete

public void setMarkForDelete(java.lang.Integer aMarkForDelete)

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

The following is a description of this column:

Indicates if this denial reason has been marked for deletion:
0 = No.
1 = Yes, this denial reason has been marked for deletion.

Parameters:
aMarkForDelete - java.lang.Integer
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.String aMarkForDelete)

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

The following is a description of this column:

Indicates if this denial reason has been marked for deletion:
0 = No.
1 = Yes, this denial reason has been marked for deletion.

Specified by:
setMarkForDelete in interface ReturnDenyReasonAccessBeanData
Parameters:
aMarkForDelete - java.lang.String
Returns:
void

setRtnDnyRsnId

public void setRtnDnyRsnId(java.lang.Integer aRtnDnyRsnId)

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.

Parameters:
aRtnDnyRsnId - java.lang.Integer
Returns:
void

setRtnDnyRsnId

public void setRtnDnyRsnId(java.lang.String aRtnDnyRsnId)

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:
setRtnDnyRsnId in interface ReturnDenyReasonAccessBeanData
Parameters:
aRtnDnyRsnId - java.lang.String
Returns:
void

setStoreentId

public void setStoreentId(java.lang.Integer aStoreentId)

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.

Parameters:
aStoreentId - java.lang.Integer
Returns:
void

setStoreentId

public void setStoreentId(java.lang.String aStoreentId)

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:
setStoreentId in interface ReturnDenyReasonAccessBeanData
Parameters:
aStoreentId - java.lang.String
Returns:
void