com.ibm.commerce.ordermanagement.objects
Class ReturnReasonAccessBean

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

public class ReturnReasonAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ReturnReasonAccessBeanData

This table stores the reason for customer dissatisfaction with a product. This access bean corresponds to the database table 'RTNREASON'.

See Also:
Serialized Form

Constructor Summary
ReturnReasonAccessBean()
Zero argument constructor used to initialize the access bean.
ReturnReasonAccessBean(javax.ejb.EJBObject o)
constructor
ReturnReasonAccessBean(java.lang.String newCode, java.lang.Integer newStoreentId)
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).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByCodeAndStoreentId(java.lang.String code, java.lang.Integer storeentId) Retrieves all the charge type of a certain code defined for a store or corresponding store group. The SQL query used to fetch the requested row from the RTNREASON table is:
SELECT * FROM RTNREASON T1
java.util.Enumeration findByCodeAndStoreentIdsForCustomer(java.lang.String code, java.lang.Integer storeentId, java.lang.Integer aStoreentId) Retrieves the return reasons defined for a store and its corresponding store group which reflect a customer's perspective on the reason for a return. The SQL query used to fetch the requested row from the RTNREASON table is:
SELECT * FROM RTNREASON T1 WHERE T1.MARKFORDELETE = 0 AND CODE = ? AND (T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?) AND (REASONTYPE = 'C' OR REASONTYPE = 'B')
java.util.Enumeration findByCodeAndStoreentIdsForStore(java.lang.String code, java.lang.Integer storeentId, java.lang.Integer aStoreentId) Retrieves the return reasons of a certain code defined for a store and its corresponding store group which reflect a merchants perspective on the reason for a return. The SQL query used to fetch the requested row from the RTNREASON table is:
SELECT * FROM RTNREASON T1 WHERE T1.MARKFORDELETE = 0 AND CODE = ? AND (T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?) AND (REASONTYPE = 'M' OR REASONTYPE = 'B')
java.util.Enumeration findByStoreentIdsForCustomer(java.lang.Integer storeentId, java.lang.Integer aStoreentId) Retrieves the return reasons defined for a store and its corresponding store group which reflect a customer's perspective on the reason for a return. The SQL query used to fetch the requested row from the RTNREASON table is:
SELECT * FROM RTNREASON T1 WHERE T1.MARKFORDELETE = 0 AND (T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?) AND (REASONTYPE = 'C' OR REASONTYPE ='B')
java.util.Enumeration findByStoreentIdsForStore(java.lang.Integer storeentId, java.lang.Integer aStoreentId) Retrieves the return reasons defined for a store and its corresponding store group which reflect a merchants perspective on the reason for a return. The SQL query used to fetch the requested row from the RTNREASON table is:
SELECT * FROM RTNREASON T1 WHERE T1.MARKFORDELETE = 0 AND (T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?) AND (REASONTYPE = 'M' OR REASONTYPE = 'B')
java.util.Enumeration findByStoreIdAndStoreGroupId(java.lang.Integer storeId, java.lang.Integer storeGroupId) Retrieves all the return reasons defined for a store and its corresponding store group. The SQL query used to fetch the requested row from the RTNREASON table is:
SELECT * FROM RTNREASON T1 WHERE T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?
java.lang.String getCode()
This method provides access to the RTNREASON.CODE column of DB2 type CHAR(30) NOT NULL.
ReturnReasonDescriptionAccessBean getDescription(java.lang.Integer languageId)
java.lang.String getMarkForDelete()
This method provides access to the RTNREASON.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getMarkForDeleteInEJBType()
This method provides access to the RTNREASON.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getReasonType()
This method provides access to the RTNREASON.REASONTYPE column of DB2 type CHAR(1) NOT NULL DEFAULT 'B'.
java.lang.String getRtnReasonId()
This method provides access to the RTNREASON.RTNREASON_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getRtnReasonIdInEJBType()
This method provides access to the RTNREASON.RTNREASON_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getStoreentId()
This method provides access to the RTNREASON.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreentIdInEJBType()
This method provides access to the RTNREASON.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_rtnReasonId(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 setReasonType(java.lang.String newValue)
This method accesses a non-CMP field
void setRtnReasonId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setRtnReasonId(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

ReturnReasonAccessBean

public ReturnReasonAccessBean()
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.ReturnReason com.ibm.commerce.ordermanagement.objimpl.ReturnReasonHomeBase.findByPrimaryKey(com.ibm.commerce.ordermanagement.objects.ReturnReasonKey) 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_rtnReasonId( java.lang.Integer )

ReturnReasonAccessBean

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

ReturnReasonAccessBean

public ReturnReasonAccessBean(java.lang.String newCode,
                              java.lang.Integer newStoreentId)
                       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

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

findByCodeAndStoreentId

public java.util.Enumeration findByCodeAndStoreentId(java.lang.String code,
                                                     java.lang.Integer storeentId)
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException

Retrieves all the charge type of a certain code defined for a store or corresponding store group.
The SQL query used to fetch the requested row from the
RTNREASON table is:
SELECT * FROM RTNREASON T1

Parameters:
code - java.lang.String Code
storeentId - java.lang.Integer Store ID or Store Group ID
Returns:
An Enumeration of all the ReturnReasonAccessBeans 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

findByCodeAndStoreentIdsForCustomer

public java.util.Enumeration findByCodeAndStoreentIdsForCustomer(java.lang.String code,
                                                                 java.lang.Integer storeentId,
                                                                 java.lang.Integer aStoreentId)
                                                          throws java.rmi.RemoteException,
                                                                 javax.ejb.FinderException,
                                                                 javax.naming.NamingException

Retrieves the return reasons defined for a store and its corresponding store group which reflect a customer's perspective on the reason for a return.
The SQL query used to fetch the requested row from the
RTNREASON table is:
SELECT * FROM RTNREASON T1 WHERE T1.MARKFORDELETE = 0 AND CODE = ? AND (T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?) AND (REASONTYPE = 'C' OR REASONTYPE = 'B')

Parameters:
code - java.lang.String Code
aStoreentId - java.lang.Integer Store Group ID
Returns:
An Enumeration of all the ReturnReasonAccessBeans 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

findByCodeAndStoreentIdsForStore

public java.util.Enumeration findByCodeAndStoreentIdsForStore(java.lang.String code,
                                                              java.lang.Integer storeentId,
                                                              java.lang.Integer aStoreentId)
                                                       throws java.rmi.RemoteException,
                                                              javax.ejb.FinderException,
                                                              javax.naming.NamingException

Retrieves the return reasons of a certain code defined for a store and its corresponding store group which reflect a merchants perspective on the reason for a return.
The SQL query used to fetch the requested row from the
RTNREASON table is:
SELECT * FROM RTNREASON T1 WHERE T1.MARKFORDELETE = 0 AND CODE = ? AND (T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?) AND (REASONTYPE = 'M' OR REASONTYPE = 'B')

Parameters:
code - java.lang.String Code
storeentId - java.lang.Integer Store ID
Returns:
An Enumeration of all the ReturnReasonAccessBeans 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

findByStoreIdAndStoreGroupId

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

Retrieves all the return reasons defined for a store and its corresponding store group.
The SQL query used to fetch the requested row from the
RTNREASON table is:
SELECT * FROM RTNREASON T1 WHERE T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?

Parameters:
storeId - java.lang.Integer Store ID
storeGroupId - java.lang.Integer Store Group ID
Returns:
An Enumeration of all the ReturnReasonAccessBeans 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

findByStoreentIdsForCustomer

public java.util.Enumeration findByStoreentIdsForCustomer(java.lang.Integer storeentId,
                                                          java.lang.Integer aStoreentId)
                                                   throws java.rmi.RemoteException,
                                                          javax.ejb.FinderException,
                                                          javax.naming.NamingException

Retrieves the return reasons defined for a store and its corresponding store group which reflect a customer's perspective on the reason for a return.
The SQL query used to fetch the requested row from the
RTNREASON table is:
SELECT * FROM RTNREASON T1 WHERE T1.MARKFORDELETE = 0 AND (T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?) AND (REASONTYPE = 'C' OR REASONTYPE ='B')

Parameters:
storeentId - java.lang.Integer Store ID
Returns:
An Enumeration of all the ReturnReasonAccessBeans 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

findByStoreentIdsForStore

public java.util.Enumeration findByStoreentIdsForStore(java.lang.Integer storeentId,
                                                       java.lang.Integer aStoreentId)
                                                throws java.rmi.RemoteException,
                                                       javax.ejb.FinderException,
                                                       javax.naming.NamingException

Retrieves the return reasons defined for a store and its corresponding store group which reflect a merchants perspective on the reason for a return.
The SQL query used to fetch the requested row from the
RTNREASON table is:
SELECT * FROM RTNREASON T1 WHERE T1.MARKFORDELETE = 0 AND (T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?) AND (REASONTYPE = 'M' OR REASONTYPE = 'B')

Parameters:
storeentId - java.lang.Integer Store ID
aStoreentId - java.lang.Integer Store Group ID
Returns:
An Enumeration of all the ReturnReasonAccessBean 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_rtnReasonId

public void setInitKey_rtnReasonId(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 RTNREASON.CODE column of DB2 type CHAR(30) NOT NULL.

The following is a description of this column:

Code used to reference the return reason.

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

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 RTNREASON.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

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

Specified by:
getMarkForDelete in interface ReturnReasonAccessBeanData
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 RTNREASON.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this return 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 ReturnReasonAccessBeanData

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 RTNREASON.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity in which the return reason is used.

Specified by:
getStoreentId in interface ReturnReasonAccessBeanData
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 RTNREASON.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity in which the return reason is used.

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 ReturnReasonAccessBeanData

setStoreentId

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

getRtnReasonId

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

This method provides access to the RTNREASON.RTNREASON_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

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

getRtnReasonIdInEJBType

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

This method provides access to the RTNREASON.RTNREASON_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

setRtnReasonId

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

setRtnReasonId

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

getReasonType

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

This method provides access to the RTNREASON.REASONTYPE column of DB2 type CHAR(1) NOT NULL DEFAULT 'B'.

The following is a description of this column:

The way in which the return reason may be used as follows:&l

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

setReasonType

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

getDescription

public ReturnReasonDescriptionAccessBean 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.ReturnReasonDescriptionAccessBean
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