com.ibm.commerce.negotiation.objects
Class BidOrderRelationAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.negotiation.objects.BidOrderRelationAccessBean
All Implemented Interfaces:
BidOrderRelationAccessBeanData

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

This table describes the relationship between bids and orders. This access bean corresponds to the database table 'BIDORDRREL'.

See Also:
Serialized Form

Constructor Summary
BidOrderRelationAccessBean()
Zero argument constructor used to initialize the access bean.
BidOrderRelationAccessBean(javax.ejb.EJBObject o)
constructor
BidOrderRelationAccessBean(java.lang.Long arg1, java.lang.Long arg2)
Creates an access bean with the specified attributes.
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
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).
java.lang.String getCreationTime()
This method provides access to the BIDORDRREL.CREATETIME column of DB2 type TIMESTAMP.
java.sql.Timestamp getCreationTimeInEJBType()
This method provides access to the BIDORDRREL.CREATETIME column of DB2 type TIMESTAMP.
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).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setBidId(java.lang.Long newValue)
This method accesses a non-CMP field
void setBidId(java.lang.String newValue)
This method accesses a non-CMP field
void setComment(java.lang.String newValue)
This method accesses a non-CMP field
void setCreationTime(java.lang.String newValue)
This method accesses a non-CMP field
void setCreationTime(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setInitKey_bidId(java.lang.Long newValue)
Set the primary key for this object
void setInitKey_orderId(java.lang.Long 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
void setStatus(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

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: setInitKey_bidId( java.lang.Long ) setInitKey_orderId( java.lang.Long )

BidOrderRelationAccessBean

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

BidOrderRelationAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
arg1 - The bid id.
arg2 - The order id.
Method Detail

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

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

setInitKey_bidId

public void setInitKey_bidId(java.lang.Long newValue)

Set the primary key for this object

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

setInitKey_orderId

public void setInitKey_orderId(java.lang.Long newValue)

Set the primary key for this object

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

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.

The following is a description of this column:

Date and time this entry is created.

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

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.

The following is a description of this column:

Date and time this entry is created.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCreationTime

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

setCreationTime

public void setCreationTime(java.sql.Timestamp newValue)
This method accesses a non-CMP field

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).

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

setComment

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

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

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

setBidId

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

setBidId

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

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).

The following is a description of this column:

Order status. Valid values are as follows: &l

Specified by:
getStatus in interface BidOrderRelationAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStatus

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

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:
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 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
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 BidOrderRelationAccessBeanData

setOrderId

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

Feedback