com.ibm.commerce.order.objects
Class SchedulerOrderAccessBean

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

public class SchedulerOrderAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements SchedulerOrderAccessBeanData

This bean provides access to the SCHORDERS table.

The following is a description of this table:

This table contains the entries for scheduled orders.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
SchedulerOrderAccessBean()
          Default constructor.
SchedulerOrderAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
SchedulerOrderAccessBean(java.lang.Long anJobRefNum, java.lang.Long anOrderId)
          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 findByMemberId(java.lang.Long anMemberId)
          Retrieves the SchedulerOrderAccessBean representing the scheduler job and order id relationship created on behalf of the specified member.
The SQL query used to fetch the requested row from the SCHORDERS table is:
SELECT * FROM SCHORDERS T1 WHERE (T1.JOB_RN = ANY (SELECT SCCJOBREFNUM FROM SCHCONFIG WHERE MEMBER_ID = ?))
 java.util.Enumeration findByOrder(java.lang.Long anOrder)
          Retrieves the SchedulerOrderAccessBean representing the scheduler job and order id relationship corresponding to the specified order.
The SQL query used to fetch the requested row from the SCHORDERS table is:
SELECT * FROM SCHORDERS T1 WHERE (T1.ORDERS_ID = ?)
 java.lang.String getJobReferenceNumber()
          This method provides access to the SCHORDERS.JOB_RN column of DB2 type BIGINT NOT NULL.
 java.lang.Long getJobReferenceNumberInEJBType()
          This method provides access to the SCHORDERS.JOB_RN column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrderId()
          This method provides access to the SCHORDERS.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderIdInEJBType()
          This method provides access to the SCHORDERS.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_jobReferenceNumber(java.lang.String aInitKey_jobReferenceNumber)
          Set the primary key for this object
 void setOrderId(java.lang.Long aOrderId)
          This method provides access to the SCHORDERS.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderId(java.lang.String aOrderId)
          This method provides access to the SCHORDERS.ORDERS_ID column of DB2 type BIGINT 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

SchedulerOrderAccessBean

public SchedulerOrderAccessBean()

Default constructor. Maps to findByPrimaryKey.


SchedulerOrderAccessBean

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

SchedulerOrderAccessBean

public SchedulerOrderAccessBean(java.lang.Long anJobRefNum,
                                java.lang.Long anOrderId)
                         throws javax.ejb.CreateException,
                                java.rmi.RemoteException,
                                javax.naming.NamingException

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

Parameters:
anJobRefNum - java.lang.Long Scheduler job reference number
anOrderId - java.lang.Long Scheduled order identifier
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

findByMemberId

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

Retrieves the SchedulerOrderAccessBean representing the scheduler job and order id relationship created on behalf of the specified member.
The SQL query used to fetch the requested row from the SCHORDERS table is:
SELECT * FROM SCHORDERS T1 WHERE (T1.JOB_RN = ANY (SELECT SCCJOBREFNUM FROM SCHCONFIG WHERE MEMBER_ID = ?))

Parameters:
anMemberId - java.lang.Long Member identifier
Returns:
java.util.Enumeration An Enumeration containing one SchedulerOrderAccessBean object representing the row matching 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

findByOrder

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

Retrieves the SchedulerOrderAccessBean representing the scheduler job and order id relationship corresponding to the specified order.
The SQL query used to fetch the requested row from the SCHORDERS table is:
SELECT * FROM SCHORDERS T1 WHERE (T1.ORDERS_ID = ?)

Parameters:
anOrder - java.lang.Long Order identifier
Returns:
java.util.Enumeration An Enumeration containing one SchedulerOrderAccessBean object representing the row matching 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

getJobReferenceNumber

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

This method provides access to the SCHORDERS.JOB_RN column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Scheduled job reference number.

Specified by:
getJobReferenceNumber in interface SchedulerOrderAccessBeanData
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

getJobReferenceNumberInEJBType

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

This method provides access to the SCHORDERS.JOB_RN column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Scheduled job reference number.

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 SCHORDERS.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Scheduled order ID.

Specified by:
getOrderId in interface SchedulerOrderAccessBeanData
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 SCHORDERS.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Scheduled order ID.

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

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

setInitKey_jobReferenceNumber

public void setInitKey_jobReferenceNumber(java.lang.String aInitKey_jobReferenceNumber)

Set the primary key for this object

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

setOrderId

public void setOrderId(java.lang.Long aOrderId)

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

The following is a description of this column:

Scheduled order ID.

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

setOrderId

public void setOrderId(java.lang.String aOrderId)

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

The following is a description of this column:

Scheduled order ID.

Specified by:
setOrderId in interface SchedulerOrderAccessBeanData
Parameters:
aOrderId - java.lang.String
Returns:
void