com.ibm.commerce.order.objects
Class OrderTemplateAccessBean

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

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

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

Constructor Summary
OrderTemplateAccessBean()
          constructor
OrderTemplateAccessBean(javax.ejb.EJBObject o)
          constructor
OrderTemplateAccessBean(java.lang.Long arg0, java.lang.Long arg1)
          constructor
OrderTemplateAccessBean(java.lang.Long arg0, java.lang.Long arg1, java.lang.Integer arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByMemberForUpdate(java.lang.Long arg0)           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 DEFAULT 0.
 java.lang.Integer getUsageInEJBType()
          This method provides access to the ORDERTMPL.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_memberId(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_orderId(java.lang.String newValue)
          Set the primary key for this object
 void setMemberId(java.lang.Long newValue)
          This method provides access to the ORDERTMPL.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setMemberId(java.lang.String newValue)
          This method provides access to the ORDERTMPL.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setUsage(java.lang.Integer newValue)
          This method provides access to the ORDERTMPL.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setUsage(java.lang.String newValue)
          This method provides access to the ORDERTMPL.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderTemplateAccessBean

public OrderTemplateAccessBean()
constructor

OrderTemplateAccessBean

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

OrderTemplateAccessBean

public OrderTemplateAccessBean(java.lang.Long arg0,
                               java.lang.Long arg1)
                        throws javax.ejb.CreateException,
                               java.rmi.RemoteException,
                               javax.naming.NamingException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException

OrderTemplateAccessBean

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

findByMemberForUpdate

public java.util.Enumeration findByMemberForUpdate(java.lang.Long arg0)
                                            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

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_orderId

public void setInitKey_orderId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_memberId

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

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 DEFAULT 0.

The following is a description of this column:

The intended usage for this template.&l

Specified by:
getUsage in interface OrderTemplateAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 DEFAULT 0.

The following is a description of this column:

The intended usage for this template.&l

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setUsage

public void setUsage(java.lang.String newValue)

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

The following is a description of this column:

The intended usage for this template.&l

Specified by:
setUsage in interface OrderTemplateAccessBeanData
Parameters:
newValue - String
Returns:
void

setUsage

public void setUsage(java.lang.Integer newValue)

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

The following is a description of this column:

The intended usage for this template.&l

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

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

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

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

setMemberId

public void setMemberId(java.lang.String newValue)

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

setMemberId

public void setMemberId(java.lang.Long newValue)

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