com.ibm.commerce.ordermanagement.objects
Class ReturnDispositionCodeAccessBean

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

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

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

See Also:
Serialized Form

Constructor Summary
ReturnDispositionCodeAccessBean()
          constructor
ReturnDispositionCodeAccessBean(javax.ejb.EJBObject o)
          constructor
ReturnDispositionCodeAccessBean(java.lang.String arg0, java.lang.Integer arg1)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByCodeAndStoreentId(java.lang.String arg0, java.lang.Integer arg1)           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 arg0, java.lang.Integer arg1, java.lang.Integer arg2)           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 arg0, java.lang.Integer arg1)           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 arg0, java.lang.Integer arg1)           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 arg0)
           
 java.lang.String getMarkForDelete()
          This method provides access to the RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.Integer getMarkForDeleteInEJBType()
          This method provides access to the RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.String getReturnToInventory()
          This method provides access to the RTNDSPCODE.RETURNTOINVENTORY column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.
 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.
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 RTNDSPCODE.CODE column of DB2 type CHAR(10) NOT NULL.
 void setInitKey_rtnDspCodeId(java.lang.String newValue)
          Set the primary key for this object
 void setMarkForDelete(java.lang.Integer newValue)
          This method provides access to the RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMarkForDelete(java.lang.String newValue)
          This method provides access to the RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setReturnToInventory(java.lang.String newValue)
          This method provides access to the RTNDSPCODE.RETURNTOINVENTORY column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.
 void setRtnDspCodeId(java.lang.Integer newValue)
          This method provides access to the RTNDSPCODE.RTNDSPCODE_ID column of DB2 type INTEGER NOT NULL.
 void setRtnDspCodeId(java.lang.String newValue)
          This method provides access to the RTNDSPCODE.RTNDSPCODE_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.Integer newValue)
          This method provides access to the RTNDSPCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.String newValue)
          This method provides access to the RTNDSPCODE.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

ReturnDispositionCodeAccessBean

public ReturnDispositionCodeAccessBean()
constructor

ReturnDispositionCodeAccessBean

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

ReturnDispositionCodeAccessBean

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

findByCodeAndStoreentId

public java.util.Enumeration findByCodeAndStoreentId(java.lang.String arg0,
                                                     java.lang.Integer arg1)
                                              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

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

findByCodeAndStoreentIds

public java.util.Enumeration findByCodeAndStoreentIds(java.lang.String arg0,
                                                      java.lang.Integer arg1,
                                                      java.lang.Integer arg2)
                                               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

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

findByStoreIdAndStoreGroupId

public java.util.Enumeration findByStoreIdAndStoreGroupId(java.lang.Integer arg0,
                                                          java.lang.Integer arg1)
                                                   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 = ?

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

findByStoreentIds

public java.util.Enumeration findByStoreentIds(java.lang.Integer arg0,
                                               java.lang.Integer arg1)
                                        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

Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_rtnDspCodeId

public void setInitKey_rtnDspCodeId(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 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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCode

public void setCode(java.lang.String newValue)

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

The following is a description of this column:

Indicates if this disposition code has been marked for deletion:&l

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

The following is a description of this column:

Indicates if this disposition code 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 RTNDSPCODE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this disposition code has been marked for deletion:&l

Specified by:
setMarkForDelete in interface ReturnDispositionCodeAccessBeanData
Parameters:
newValue - String
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)

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

The following is a description of this column:

Indicates if this disposition code 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 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:
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 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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStoreentId

public void setStoreentId(java.lang.String newValue)

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

setStoreentId

public void setStoreentId(java.lang.Integer newValue)

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

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 DEFAULT 'Y'.

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

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

setReturnToInventory

public void setReturnToInventory(java.lang.String newValue)

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

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

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

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setRtnDspCodeId

public void setRtnDspCodeId(java.lang.String newValue)

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

setRtnDspCodeId

public void setRtnDspCodeId(java.lang.Integer newValue)

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

getDescription

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