com.ibm.commerce.order.objects
Class OrderTemplateAccessBean

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

public class OrderTemplateAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderTemplateAccessBeanData

This bean provides access to the ORDERTMPL table.

The following is a description of this table:

Each row of this table indicates that an Order is used as a template by a customer, and also indicates whether the template is current for that customer.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OrderTemplateAccessBean()
          Default constructor.
OrderTemplateAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
OrderTemplateAccessBean(java.lang.Long anOrderId, java.lang.Long anMemberId)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
OrderTemplateAccessBean(java.lang.Long anOrderId, java.lang.Long anMemberId, java.lang.Integer anUsage)
          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 findByMemberForUpdate(java.lang.Long anMemberId)
          Retrieves order templates for the specified member.
The SQL query used to fetch all the required rows from the ORDERTMPL table is:
SELECT * FROM ORDERTMPL T1 WHERE T1.MEMBER_ID = ? for update
 java.lang.String getMemberId()
          This method provides access to the ORDERTMPL.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getMemberIdInEJBType()
          This method provides access to the ORDERTMPL.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrderId()
          This method provides access to the ORDERTMPL.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderIdInEJBType()
          This method provides access to the ORDERTMPL.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getUsage()
          This method provides access to the ORDERTMPL.USAGE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getUsageInEJBType()
          This method provides access to the ORDERTMPL.USAGE column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 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 ORDERTMPL.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setMemberId(java.lang.String aMemberId)
          This method provides access to the ORDERTMPL.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setUsage(java.lang.Integer aUsage)
          This method provides access to the ORDERTMPL.USAGE column of DB2 type INTEGER NOT NULL.
 void setUsage(java.lang.String aUsage)
          This method provides access to the ORDERTMPL.USAGE 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

OrderTemplateAccessBean

public OrderTemplateAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrderTemplateAccessBean

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

OrderTemplateAccessBean

public OrderTemplateAccessBean(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:
anOrderId - java.lang.Long Template order id
anMemberId - java.lang.Long Template order owner
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

OrderTemplateAccessBean

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

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

Parameters:
anOrderId - java.lang.Long Template order id
anMemberId - java.lang.Long Template order owner
anUsage - java.lang.Integer Intended template usage
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

findByMemberForUpdate

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

Retrieves order templates for the specified member.
The SQL query used to fetch all the required rows from the ORDERTMPL table is:
SELECT * FROM ORDERTMPL T1 WHERE T1.MEMBER_ID = ? for update

Parameters:
anMemberId - java.lang.Long Member identifier
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

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

The following is a description of this column:

The customer.

Specified by:
getMemberId in interface OrderTemplateAccessBeanData
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 ORDERTMPL.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The customer.

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

The following is a description of this column:

The Order.

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

The following is a description of this column:

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

getUsage

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

This method provides access to the ORDERTMPL.USAGE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The intended usage for this template.
0 = no usage information.
1 = template is a current template.
Values less than 1000 are reserved for IBM internal use.

Specified by:
getUsage in interface OrderTemplateAccessBeanData
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

getUsageInEJBType

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

This method provides access to the ORDERTMPL.USAGE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The intended usage for this template.
0 = no usage information.
1 = template is a current template.
Values less than 1000 are reserved for IBM internal use.

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

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

The following is a description of this column:

The customer.

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

setMemberId

public void setMemberId(java.lang.String aMemberId)

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

The following is a description of this column:

The customer.

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

setUsage

public void setUsage(java.lang.Integer aUsage)

This method provides access to the ORDERTMPL.USAGE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The intended usage for this template.
0 = no usage information.
1 = template is a current template.
Values less than 1000 are reserved for IBM internal use.

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

setUsage

public void setUsage(java.lang.String aUsage)

This method provides access to the ORDERTMPL.USAGE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The intended usage for this template.
0 = no usage information.
1 = template is a current template.
Values less than 1000 are reserved for IBM internal use.

Specified by:
setUsage in interface OrderTemplateAccessBeanData
Parameters:
aUsage - java.lang.String
Returns:
void