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.

See Also:
Serialized Form

Constructor Summary
ReturnDenyReasonAccessBean()
          constructor
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 arg0)           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 arg0, java.lang.Integer arg1)           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 arg0)
           
 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 provides access to the RTNDNYRSN.CODE column of DB2 type CHAR(10) NOT NULL.
 void setInitKey_rtnDnyRsnId(java.lang.String newValue)
          Set the primary key for this object
 void setMarkForDelete(java.lang.Integer newValue)
          This method provides access to the RTNDNYRSN.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMarkForDelete(java.lang.String newValue)
          This method provides access to the RTNDNYRSN.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setRtnDnyRsnId(java.lang.Integer newValue)
          This method provides access to the RTNDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.
 void setRtnDnyRsnId(java.lang.String newValue)
          This method provides access to the RTNDNYRSN.RTNDNYRSN_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.Integer newValue)
          This method provides access to the RTNDNYRSN.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.String newValue)
          This method provides access to the RTNDNYRSN.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnDenyReasonAccessBean

public ReturnDenyReasonAccessBean()
constructor

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 arg0)
                                      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 = ?

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 arg0,
                                                                            java.lang.Integer arg1)
                                                                     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

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 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:
newValue - java.lang.String
Returns:
void

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 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:
setMarkForDelete in interface ReturnDenyReasonAccessBeanData
Parameters:
newValue - String
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)

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

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

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 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:
newValue - String
Returns:
void

setStoreentId

public void setStoreentId(java.lang.Integer newValue)

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

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 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:
newValue - String
Returns:
void

setRtnDnyRsnId

public void setRtnDnyRsnId(java.lang.Integer newValue)

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

getDescription

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