com.ibm.commerce.negotiation.objects
Class BidOrderRelationAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.negotiation.objects.BidOrderRelationAccessBean
All Implemented Interfaces:
BidOrderRelationAccessBeanData, java.io.Serializable

public class BidOrderRelationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements BidOrderRelationAccessBeanData

This bean provides access to the BIDORDRREL table.

The following is a description of this table:

This table describes the relationship between bids and 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
BidOrderRelationAccessBean()
          Zero argument constructor used to initialize the access bean.
BidOrderRelationAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
BidOrderRelationAccessBean(java.lang.Long bidId, java.lang.Long orderId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findAll(com.ibm.commerce.negotiation.util.SortingAttribute sort)
          Retrieves all bid/order relation records.
 java.util.Enumeration findByBid(java.lang.Long bidId, com.ibm.commerce.negotiation.util.SortingAttribute sort)
          Retrieves all bid/order relation records with the specified bid id.
 java.lang.String getBidId()
          This method provides access to the BIDORDRREL.BID_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getBidIdInEJBType()
          This method provides access to the BIDORDRREL.BID_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getComment()
          This method provides access to the BIDORDRREL.COMMENTS column of DB2 type VARCHAR(254) NULL.
 java.lang.String getCreationTime()
          This method provides access to the BIDORDRREL.CREATETIME column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getCreationTimeInEJBType()
          This method provides access to the BIDORDRREL.CREATETIME column of DB2 type TIMESTAMP NULL.
 java.lang.String getOrderId()
          This method provides access to the BIDORDRREL.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderIdInEJBType()
          This method provides access to the BIDORDRREL.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getStatus()
          This method provides access to the BIDORDRREL.STATUS column of DB2 type CHAR(4) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setBidId(java.lang.Long aBidId1)
          This method provides access to the BIDORDRREL.BID_ID column of DB2 type BIGINT NOT NULL.
 void setBidId(java.lang.String aBidId1)
          This method provides access to the BIDORDRREL.BID_ID column of DB2 type BIGINT NOT NULL.
 void setComment(java.lang.String aComment1)
          This method provides access to the BIDORDRREL.COMMENTS column of DB2 type VARCHAR(254) NULL.
 void setCreationTime(java.lang.String aCreationTime1)
          This method provides access to the BIDORDRREL.CREATETIME column of DB2 type TIMESTAMP NULL.
 void setCreationTime(java.sql.Timestamp aCreationTime1)
          This method provides access to the BIDORDRREL.CREATETIME column of DB2 type TIMESTAMP NULL.
 void setInitKey_bidId(java.lang.Long aInitKey_bidId1)
          Set the primary key for this object
 void setInitKey_orderId(java.lang.Long aInitKey_orderId1)
          Set the primary key for this object
 void setOrderId(java.lang.Long aOrderId1)
          This method provides access to the BIDORDRREL.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderId(java.lang.String aOrderId1)
          This method provides access to the BIDORDRREL.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setStatus(java.lang.String aStatus1)
          This method provides access to the BIDORDRREL.STATUS column of DB2 type CHAR(4) 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

BidOrderRelationAccessBean

public BidOrderRelationAccessBean()

Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method:

public abstract com.ibm.commerce.negotiation.objects.BidOrderRelation com.ibm.commerce.negotiation.objimpl.BidOrderRelationHomeBase.findByPrimaryKey(com.ibm.commerce.negotiation.objects.BidOrderRelationKey) 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:


BidOrderRelationAccessBean

public BidOrderRelationAccessBean(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.

BidOrderRelationAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
bidId - The bid id.
orderId - The order id.
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

findAll

public java.util.Enumeration findAll(com.ibm.commerce.negotiation.util.SortingAttribute sort)
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves all bid/order relation records.

The SQL query used to fetch all the required rows from the BIDORDRREL table is:

SELECT * FROM BIDORDRREL T1 WHERE 1=1

Parameters:
sort - The sorting attribute. This is a set of column names and the order in which they are each to be sorted (ascending, descending). This is used to build an ORDER BY clause.
Returns:
An Enumeration of all the BidOrderRelationAccessBeans representing rows that match the search criteria.

findByBid

public java.util.Enumeration findByBid(java.lang.Long bidId,
                                       com.ibm.commerce.negotiation.util.SortingAttribute sort)
                                throws java.rmi.RemoteException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

Retrieves all bid/order relation records with the specified bid id.

The SQL query used to fetch all the required rows from the BIDORDRREL table is:

SELECT * FROM BIDORDRREL T1 WHERE T1.BID_ID=?

Parameters:
bidId - The bid id.
sort - The sorting attribute. This is a set of column names and the order in which they are each to be sorted (ascending, descending). This is used to build an ORDER BY clause.
Returns:
An Enumeration of all the BidOrderRelationAccessBeans representing rows that match the search criteria.

getBidId

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

This method provides access to the BIDORDRREL.BID_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Bid ID.

Specified by:
getBidId in interface BidOrderRelationAccessBeanData
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

getBidIdInEJBType

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

This method provides access to the BIDORDRREL.BID_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Bid 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

getComment

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

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

The following is a description of this column:

Comments about the order.

Specified by:
getComment in interface BidOrderRelationAccessBeanData
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

getCreationTime

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

This method provides access to the BIDORDRREL.CREATETIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Date and time this entry is created.

Specified by:
getCreationTime in interface BidOrderRelationAccessBeanData
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

getCreationTimeInEJBType

public java.sql.Timestamp getCreationTimeInEJBType()
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

This method provides access to the BIDORDRREL.CREATETIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Date and time this entry is created.

Returns:
java.sql.Timestamp
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 BIDORDRREL.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The order ID that corresponds to the bid.

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

The following is a description of this column:

The order ID that corresponds to the bid.

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

getStatus

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

This method provides access to the BIDORDRREL.STATUS column of DB2 type CHAR(4) NULL.

The following is a description of this column:

Order status. Valid values: C=complete, P=pending.

Specified by:
getStatus in interface BidOrderRelationAccessBeanData
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

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

setBidId

public void setBidId(java.lang.Long aBidId1)

This method provides access to the BIDORDRREL.BID_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Bid ID.

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

setBidId

public void setBidId(java.lang.String aBidId1)

This method provides access to the BIDORDRREL.BID_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Bid ID.

Specified by:
setBidId in interface BidOrderRelationAccessBeanData
Parameters:
aBidId1 - java.lang.String
Returns:
void

setComment

public void setComment(java.lang.String aComment1)

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

The following is a description of this column:

Comments about the order.

Specified by:
setComment in interface BidOrderRelationAccessBeanData
Parameters:
aComment1 - java.lang.String
Returns:
void

setCreationTime

public void setCreationTime(java.lang.String aCreationTime1)

This method provides access to the BIDORDRREL.CREATETIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Date and time this entry is created.

Specified by:
setCreationTime in interface BidOrderRelationAccessBeanData
Parameters:
aCreationTime1 - java.lang.String
Returns:
void

setCreationTime

public void setCreationTime(java.sql.Timestamp aCreationTime1)

This method provides access to the BIDORDRREL.CREATETIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Date and time this entry is created.

Parameters:
aCreationTime1 - java.sql.Timestamp
Returns:
void

setInitKey_bidId

public void setInitKey_bidId(java.lang.Long aInitKey_bidId1)

Set the primary key for this object

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

setInitKey_orderId

public void setInitKey_orderId(java.lang.Long aInitKey_orderId1)

Set the primary key for this object

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

setOrderId

public void setOrderId(java.lang.Long aOrderId1)

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

The following is a description of this column:

The order ID that corresponds to the bid.

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

setOrderId

public void setOrderId(java.lang.String aOrderId1)

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

The following is a description of this column:

The order ID that corresponds to the bid.

Specified by:
setOrderId in interface BidOrderRelationAccessBeanData
Parameters:
aOrderId1 - java.lang.String
Returns:
void

setStatus

public void setStatus(java.lang.String aStatus1)

This method provides access to the BIDORDRREL.STATUS column of DB2 type CHAR(4) NULL.

The following is a description of this column:

Order status. Valid values: C=complete, P=pending.

Specified by:
setStatus in interface BidOrderRelationAccessBeanData
Parameters:
aStatus1 - java.lang.String
Returns:
void