com.ibm.commerce.ordermanagement.objects
Class ReturnDispositionCodeAccessBean

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

public class ReturnDispositionCodeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ReturnDispositionCodeAccessBeanData

This bean provides access to the RTNDSPCODE table.

The following is a description of this table:

This table stores return disposition codes to describe how a received item is disposed.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
ReturnDispositionCodeAccessBean()
          Default constructor.
ReturnDispositionCodeAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
ReturnDispositionCodeAccessBean(java.lang.String code, java.lang.Integer storeEntityID)
          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 findByCodeAndStoreentId(java.lang.String code, java.lang.Integer storeID)
          Retrieves all the return dispositions with a particular code defined for a store.
The SQL query used to fetch the requested row from the RTNDSPCODE table is:
SELECT * FROM RTNDSPCODE T1 WHERE T1.CODE = ? AND T1.STOREENT_ID = ? AND T1.MARKFORDELETE = 0
 java.util.Enumeration findByCodeAndStoreentIds(java.lang.String code, java.lang.Integer storeGroupID, java.lang.Integer storeGroupID)
          Retrieves all the return dispositions with a particular code defined for a store and its corresponding store group.
The SQL query used to fetch the requested row from the RTNDSPCODE table is:
SELECT * FROM RTNDSPCODE T1 WHERE T1.CODE = ? AND (T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?) AND T1.MARKFORDELETE = 0
 java.util.Enumeration findByStoreentIds(java.lang.Integer storeID, java.lang.Integer storeGroupID)
          Retrieves all the return dispositions for a store and its corresponding store group.
The SQL query used to fetch the requested row from the RTNDSPCODE table is:
SELECT * FROM RTNDSPCODE T1 WHERE T1.STOREENT_ID = ? OR T1.STOREENT_ID = ? AND T1.MARKFORDELETE = 0
 java.util.Enumeration findByStoreIdAndStoreGroupId(java.lang.Integer storeID, java.lang.Integer storeGroupID)
          Retrieves all the return dispositions defined for a store and its corresponding store group.
The SQL query used to fetch the requested row from the RTNDSPCODE table is:
SELECT * FROM RTNDSPCODE T1 WHERE T1.STOREENT_ID = ? AND T1.STOREENT_ID = ?
 java.lang.String getCode()
          This method provides access to the RTNDSPCODE.CODE column of DB2 type CHAR(10) NOT NULL.
 ReturnDispositionCodeDescriptionAccessBean getDescription(java.lang.Integer aDescription)
           
 java.lang.String getMarkForDelete()
          This method provides access to the RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getMarkForDeleteInEJBType()
          This method provides access to the RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 java.lang.String getReturnToInventory()
          This method provides access to the RTNDSPCODE.RETURNTOINVENTORY column of DB2 type CHAR(1) NOT NULL.
 java.lang.String getRtnDspCodeId()
          This method provides access to the RTNDSPCODE.RTNDSPCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getRtnDspCodeIdInEJBType()
          This method provides access to the RTNDSPCODE.RTNDSPCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getStoreentId()
          This method provides access to the RTNDSPCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreentIdInEJBType()
          This method provides access to the RTNDSPCODE.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 RTNDSPCODE.CODE column of DB2 type CHAR(10) NOT NULL.
 void setInitKey_rtnDspCodeId(java.lang.String aInitKey_rtnDspCodeId)
          Set the primary key for this object
 void setMarkForDelete(java.lang.Integer aMarkForDelete)
          This method provides access to the RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setMarkForDelete(java.lang.String aMarkForDelete)
          This method provides access to the RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setReturnToInventory(java.lang.String aReturnToInventory)
          This method provides access to the RTNDSPCODE.RETURNTOINVENTORY column of DB2 type CHAR(1) NOT NULL.
 void setRtnDspCodeId(java.lang.Integer aRtnDspCodeId)
          This method provides access to the RTNDSPCODE.RTNDSPCODE_ID column of DB2 type INTEGER NOT NULL.
 void setRtnDspCodeId(java.lang.String aRtnDspCodeId)
          This method provides access to the RTNDSPCODE.RTNDSPCODE_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.Integer aStoreentId)
          This method provides access to the RTNDSPCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.String aStoreentId)
          This method provides access to the RTNDSPCODE.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

ReturnDispositionCodeAccessBean

public ReturnDispositionCodeAccessBean()

Default constructor. Maps to findByPrimaryKey.


ReturnDispositionCodeAccessBean

public ReturnDispositionCodeAccessBean(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

ReturnDispositionCodeAccessBean

public ReturnDispositionCodeAccessBean(java.lang.String code,
                                       java.lang.Integer storeEntityID)
                                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:
code - java.lang.String Code
storeEntityID - java.lang.Integer Store Entity ID
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

findByCodeAndStoreentId

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

Retrieves all the return dispositions with a particular code defined for a store.
The SQL query used to fetch the requested row from the RTNDSPCODE table is:
SELECT * FROM RTNDSPCODE T1 WHERE T1.CODE = ? AND T1.STOREENT_ID = ? AND T1.MARKFORDELETE = 0

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

findByCodeAndStoreentIds

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

Retrieves all the return dispositions with a particular code defined for a store and its corresponding store group.
The SQL query used to fetch the requested row from the RTNDSPCODE table is:
SELECT * FROM RTNDSPCODE T1 WHERE T1.CODE = ? AND (T1.STOREENT_ID = ? OR T1.STOREENT_ID = ?) AND T1.MARKFORDELETE = 0

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

findByStoreentIds

public java.util.Enumeration findByStoreentIds(java.lang.Integer storeID,
                                               java.lang.Integer storeGroupID)
                                        throws java.rmi.RemoteException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

Retrieves all the return dispositions for a store and its corresponding store group.
The SQL query used to fetch the requested row from the RTNDSPCODE table is:
SELECT * FROM RTNDSPCODE 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:
java.util.Enumeration
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 dispositions defined for a store and its corresponding store group.
The SQL query used to fetch the requested row from the RTNDSPCODE table is:
SELECT * FROM RTNDSPCODE T1 WHERE T1.STOREENT_ID = ? AND T1.STOREENT_ID = ?

Parameters:
storeID - java.lang.Integer Store ID
storeGroupID - java.lang.Integer Store Group ID
Returns:
An Enumeration of all the ReturnDispositionCodeAccessBeans 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 RTNDSPCODE.CODE column of DB2 type CHAR(10) NOT NULL.

The following is a description of this column:

Code used to reference the disposition code.

Specified by:
getCode in interface ReturnDispositionCodeAccessBeanData
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 ReturnDispositionCodeDescriptionAccessBean 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.ReturnDispositionCodeDescriptionAccessBean
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 RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

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

Specified by:
getMarkForDelete in interface ReturnDispositionCodeAccessBeanData
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 RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if this disposition code has been marked for deletion:
0 = No.
1 = Yes, this disposition code 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

getReturnToInventory

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

This method provides access to the RTNDSPCODE.RETURNTOINVENTORY column of DB2 type CHAR(1) NOT NULL.

The following is a description of this column:

A flag to decide if an item with this disposition code should be returned to inventory or not, as follows:
N = do not return to inventory
Y = return to inventory

Specified by:
getReturnToInventory in interface ReturnDispositionCodeAccessBeanData
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

getRtnDspCodeId

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

This method provides access to the RTNDSPCODE.RTNDSPCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

Specified by:
getRtnDspCodeId in interface ReturnDispositionCodeAccessBeanData
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

getRtnDspCodeIdInEJBType

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

This method provides access to the RTNDSPCODE.RTNDSPCODE_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 RTNDSPCODE.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 ReturnDispositionCodeAccessBeanData
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 RTNDSPCODE.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 RTNDSPCODE.CODE column of DB2 type CHAR(10) NOT NULL.

The following is a description of this column:

Code used to reference the disposition code.

Specified by:
setCode in interface ReturnDispositionCodeAccessBeanData
Parameters:
aCode - java.lang.String
Returns:
void

setInitKey_rtnDspCodeId

public void setInitKey_rtnDspCodeId(java.lang.String aInitKey_rtnDspCodeId)

Set the primary key for this object

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

setMarkForDelete

public void setMarkForDelete(java.lang.Integer aMarkForDelete)

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

The following is a description of this column:

Indicates if this disposition code has been marked for deletion:
0 = No.
1 = Yes, this disposition code 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 RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

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

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

setReturnToInventory

public void setReturnToInventory(java.lang.String aReturnToInventory)

This method provides access to the RTNDSPCODE.RETURNTOINVENTORY column of DB2 type CHAR(1) NOT NULL.

The following is a description of this column:

A flag to decide if an item with this disposition code should be returned to inventory or not, as follows:
N = do not return to inventory
Y = return to inventory

Specified by:
setReturnToInventory in interface ReturnDispositionCodeAccessBeanData
Parameters:
aReturnToInventory - java.lang.String
Returns:
void

setRtnDspCodeId

public void setRtnDspCodeId(java.lang.Integer aRtnDspCodeId)

This method provides access to the RTNDSPCODE.RTNDSPCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

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

setRtnDspCodeId

public void setRtnDspCodeId(java.lang.String aRtnDspCodeId)

This method provides access to the RTNDSPCODE.RTNDSPCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

Specified by:
setRtnDspCodeId in interface ReturnDispositionCodeAccessBeanData
Parameters:
aRtnDspCodeId - java.lang.String
Returns:
void

setStoreentId

public void setStoreentId(java.lang.Integer aStoreentId)

This method provides access to the RTNDSPCODE.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 RTNDSPCODE.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 ReturnDispositionCodeAccessBeanData
Parameters:
aStoreentId - java.lang.String
Returns:
void