com.ibm.commerce.order.objects
Class SchedulerOrderAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.order.objects.SchedulerOrderAccessBean
All Implemented Interfaces:
SchedulerOrderAccessBeanData
Direct Known Subclasses:
SchedulerOrderDataBeanBase

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

This table contains the entries for scheduled orders. This access bean corresponds to the database table 'SCHORDERS'.

See Also:
Serialized Form

Constructor Summary
SchedulerOrderAccessBean()
Zero argument constructor used to initialize the access bean.
SchedulerOrderAccessBean(javax.ejb.EJBObject o)
constructor
SchedulerOrderAccessBean(java.lang.Long jobRefNum, java.lang.Long orderId)
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 findByMemberId(java.lang.Long memberId) 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 orderId) 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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_jobReferenceNumber(java.lang.String newValue)
Set the primary key for this object
void setOrderId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderId(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

SchedulerOrderAccessBean

public SchedulerOrderAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.order.objects.SchedulerOrder com.ibm.commerce.order.objimpl.SchedulerOrderHomeBase.findByPrimaryKey(com.ibm.commerce.order.objects.SchedulerOrderKey) 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_jobReferenceNumber( java.lang.Long )

SchedulerOrderAccessBean

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

SchedulerOrderAccessBean

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

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

Parameters:
jobRefNum - java.lang.Long Scheduler job reference number
orderId - 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
Method Detail

findByMemberId

public java.util.Enumeration findByMemberId(java.lang.Long memberId)
                                     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:
memberId - 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

findByOrder

public java.util.Enumeration findByOrder(java.lang.Long orderId)
                                  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:
orderId - 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

setInitKey_jobReferenceNumber

public void setInitKey_jobReferenceNumber(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

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

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

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

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

setOrderId

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

setOrderId

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

Feedback