com.ibm.commerce.order.objects
Class CurrentPendingOrderAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.order.objects.CurrentPendingOrderAccessBean
All Implemented Interfaces:
CurrentPendingOrderAccessBeanData, java.io.Serializable

public class CurrentPendingOrderAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CurrentPendingOrderAccessBeanData

This bean provides access to the CPENDORDER table.

The following is a description of this table:

Each row of this table indicates that an order is marked as current for a customer in a store, if its status is "P" (Pending).

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CurrentPendingOrderAccessBean()
          Default constructor.
CurrentPendingOrderAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
CurrentPendingOrderAccessBean(java.lang.Integer anStoreEntityId, java.lang.Long anOrderId, java.lang.Long anMemberId)
          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 findByMember(java.lang.Long anMemberId)
          Retrieves all the current pending order records for specified customer.
The SQL query used to fetch all the required rows from the CPENDORDER table is:
SELECT * FROM CPENDORDER T1 WHERE T1.MEMBER_ID = ?
 java.util.Enumeration findByMemberAndStore(java.lang.Long anMemberId, java.lang.Integer anStoreEntityId)
          Retrieves all the current pending order records for specified customer and store.
The SQL query used to fetch all the required rows from the CPENDORDER table is:
SELECT * FROM CPENDORDER T1 WHERE T1.MEMBER_ID = ? AND T1.STOREENT_ID = ?
 java.util.Enumeration findByMemberForUpdate(java.lang.Long anMemberId)
          Retrieves all the current pending order records for specified customer.
The SQL query used to fetch all the required rows from the CPENDORDER table is:
SELECT * FROM CPENDORDER T1 WHERE T1.MEMBER_ID = ? for update
 java.lang.String getField1()
          This method provides access to the CPENDORDER.FIELD1 column of DB2 type INTEGER NULL.
 java.lang.Integer getField1InEJBType()
          This method provides access to the CPENDORDER.FIELD1 column of DB2 type INTEGER NULL.
 java.lang.String getField2()
          This method provides access to the CPENDORDER.FIELD2 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getMemberId()
          This method provides access to the CPENDORDER.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getMemberIdInEJBType()
          This method provides access to the CPENDORDER.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrderId()
          This method provides access to the CPENDORDER.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderIdInEJBType()
          This method provides access to the CPENDORDER.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getStoreEntityId()
          This method provides access to the CPENDORDER.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreEntityIdInEJBType()
          This method provides access to the CPENDORDER.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setField1(java.lang.Integer aField1)
          This method provides access to the CPENDORDER.FIELD1 column of DB2 type INTEGER NULL.
 void setField1(java.lang.String aField1)
          This method provides access to the CPENDORDER.FIELD1 column of DB2 type INTEGER NULL.
 void setField2(java.lang.String aField2)
          This method provides access to the CPENDORDER.FIELD2 column of DB2 type VARCHAR(254) NULL.
 void setInitKey_memberId(java.lang.String aInitKey_memberId)
          Set the primary key for this object
 void setInitKey_orderId(java.lang.String aInitKey_orderId)
          Set the primary key for this object
 void setMemberId(java.lang.Long aMemberId)
          This method provides access to the CPENDORDER.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setMemberId(java.lang.String aMemberId)
          This method provides access to the CPENDORDER.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setStoreEntityId(java.lang.Integer aStoreEntityId)
          This method provides access to the CPENDORDER.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreEntityId(java.lang.String aStoreEntityId)
          This method provides access to the CPENDORDER.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

CurrentPendingOrderAccessBean

public CurrentPendingOrderAccessBean()

Default constructor. Maps to findByPrimaryKey.


CurrentPendingOrderAccessBean

public CurrentPendingOrderAccessBean(javax.ejb.EJBObject object)
                              throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

CurrentPendingOrderAccessBean

public CurrentPendingOrderAccessBean(java.lang.Integer anStoreEntityId,
                                     java.lang.Long anOrderId,
                                     java.lang.Long anMemberId)
                              throws javax.ejb.CreateException,
                                     java.rmi.RemoteException,
                                     javax.naming.NamingException

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

Parameters:
anStoreEntityId - java.lang.Integer The store entity the current pending order is part of
anOrderId - java.lang.Long The order identifier of the current pending order
anMemberId - java.lang.Long The customer of the order
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException 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

findByMember

public java.util.Enumeration findByMember(java.lang.Long anMemberId)
                                   throws java.rmi.RemoteException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

Retrieves all the current pending order records for specified customer.
The SQL query used to fetch all the required rows from the CPENDORDER table is:
SELECT * FROM CPENDORDER T1 WHERE T1.MEMBER_ID = ?

Parameters:
anMemberId - java.lang.Long The customer of the current pending orders
Returns:
java.util.Enumeration An Enumeration of all the CurrentPendingOrderAccessBean objects 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

findByMemberAndStore

public java.util.Enumeration findByMemberAndStore(java.lang.Long anMemberId,
                                                  java.lang.Integer anStoreEntityId)
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

Retrieves all the current pending order records for specified customer and store.
The SQL query used to fetch all the required rows from the CPENDORDER table is:
SELECT * FROM CPENDORDER T1 WHERE T1.MEMBER_ID = ? AND T1.STOREENT_ID = ?

Parameters:
anMemberId - java.lang.Long The customer of the current pending orders
anStoreEntityId - java.lang.Integer The store the orders are part of
Returns:
java.util.Enumeration An Enumeration of all the CurrentPendingOrderAccessBean objects 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

findByMemberForUpdate

public java.util.Enumeration findByMemberForUpdate(java.lang.Long anMemberId)
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

Retrieves all the current pending order records for specified customer.
The SQL query used to fetch all the required rows from the CPENDORDER table is:
SELECT * FROM CPENDORDER T1 WHERE T1.MEMBER_ID = ? for update

Parameters:
anMemberId - java.lang.Long The customer of the current pending orders
Returns:
java.util.Enumeration An Enumeration of all the CurrentPendingOrderAccessBean objects 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

getField1

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

This method provides access to the CPENDORDER.FIELD1 column of DB2 type INTEGER NULL.

The following is a description of this column:

Customizable.

Specified by:
getField1 in interface CurrentPendingOrderAccessBeanData
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

getField1InEJBType

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

This method provides access to the CPENDORDER.FIELD1 column of DB2 type INTEGER NULL.

The following is a description of this column:

Customizable.

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

getField2

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

This method provides access to the CPENDORDER.FIELD2 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Customizable.

Specified by:
getField2 in interface CurrentPendingOrderAccessBeanData
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

getMemberId

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

This method provides access to the CPENDORDER.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID that uniquely identifies the customer of the order.

Specified by:
getMemberId in interface CurrentPendingOrderAccessBeanData
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

getMemberIdInEJBType

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

This method provides access to the CPENDORDER.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID that uniquely identifies the customer of the order.

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

getOrderId

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

This method provides access to the CPENDORDER.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID that uniquely identifies the order.

Specified by:
getOrderId in interface CurrentPendingOrderAccessBeanData
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

getOrderIdInEJBType

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

This method provides access to the CPENDORDER.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID that uniquely identifies the order.

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

getStoreEntityId

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

This method provides access to the CPENDORDER.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The ID that uniquely identifies the store from which the customer placed the order.

Specified by:
getStoreEntityId in interface CurrentPendingOrderAccessBeanData
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

getStoreEntityIdInEJBType

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

This method provides access to the CPENDORDER.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The ID that uniquely identifies the store from which the customer placed the order.

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

setField1

public void setField1(java.lang.Integer aField1)

This method provides access to the CPENDORDER.FIELD1 column of DB2 type INTEGER NULL.

The following is a description of this column:

Customizable.

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

setField1

public void setField1(java.lang.String aField1)

This method provides access to the CPENDORDER.FIELD1 column of DB2 type INTEGER NULL.

The following is a description of this column:

Customizable.

Specified by:
setField1 in interface CurrentPendingOrderAccessBeanData
Parameters:
aField1 - java.lang.String
Returns:
void

setField2

public void setField2(java.lang.String aField2)

This method provides access to the CPENDORDER.FIELD2 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Customizable.

Specified by:
setField2 in interface CurrentPendingOrderAccessBeanData
Parameters:
aField2 - java.lang.String
Returns:
void

setInitKey_memberId

public void setInitKey_memberId(java.lang.String aInitKey_memberId)

Set the primary key for this object

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

setInitKey_orderId

public void setInitKey_orderId(java.lang.String aInitKey_orderId)

Set the primary key for this object

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

setMemberId

public void setMemberId(java.lang.Long aMemberId)

This method provides access to the CPENDORDER.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID that uniquely identifies the customer of the order.

Parameters:
aMemberId - java.lang.Long
Returns:
void

setMemberId

public void setMemberId(java.lang.String aMemberId)

This method provides access to the CPENDORDER.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID that uniquely identifies the customer of the order.

Specified by:
setMemberId in interface CurrentPendingOrderAccessBeanData
Parameters:
aMemberId - java.lang.String
Returns:
void

setStoreEntityId

public void setStoreEntityId(java.lang.Integer aStoreEntityId)

This method provides access to the CPENDORDER.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The ID that uniquely identifies the store from which the customer placed the order.

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

setStoreEntityId

public void setStoreEntityId(java.lang.String aStoreEntityId)

This method provides access to the CPENDORDER.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The ID that uniquely identifies the store from which the customer placed the order.

Specified by:
setStoreEntityId in interface CurrentPendingOrderAccessBeanData
Parameters:
aStoreEntityId - java.lang.String
Returns:
void