com.ibm.commerce.negotiation.objects
Class MemberAuctionRelationAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.negotiation.objects.MemberAuctionRelationAccessBean
All Implemented Interfaces:
MemberAuctionRelationAccessBeanData
Direct Known Subclasses:
MemberAuctionRelationDataBean

public class MemberAuctionRelationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements MemberAuctionRelationAccessBeanData

This table describes the relationship between a member and an auction. This access bean corresponds to the database table 'MEMBRAUCT'.

See Also:
Serialized Form

Constructor Summary
MemberAuctionRelationAccessBean()
Zero argument constructor used to initialize the access bean.
MemberAuctionRelationAccessBean(javax.ejb.EJBObject o)
constructor
MemberAuctionRelationAccessBean(java.lang.Long arg1, java.lang.Long arg2, java.lang.String arg3)
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 findByAuctionIdAndType(java.lang.Long auctid, java.lang.String type, com.ibm.commerce.negotiation.util.SortingAttribute sort)
Retrieves all member/auction relationship records for the specified auction and type.
boolean fulfills(java.lang.Long arg0, java.lang.String arg1)
java.lang.String getAuctionId()
This method provides access to the MEMBRAUCT.AUCT_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getAuctionIdInEJBType()
This method provides access to the MEMBRAUCT.AUCT_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getComment()
This method provides access to the MEMBRAUCT.COMMENTS column of DB2 type VARCHAR(254).
java.lang.String getField1()
This method provides access to the MEMBRAUCT.FIELD1 column of DB2 type BIGINT.
java.lang.Long getField1InEJBType()
This method provides access to the MEMBRAUCT.FIELD1 column of DB2 type BIGINT.
java.lang.String getField2()
This method provides access to the MEMBRAUCT.FIELD2 column of DB2 type BIGINT.
java.lang.Long getField2InEJBType()
This method provides access to the MEMBRAUCT.FIELD2 column of DB2 type BIGINT.
java.lang.String getField3()
This method provides access to the MEMBRAUCT.FIELD3 column of DB2 type BIGINT.
java.lang.Long getField3InEJBType()
This method provides access to the MEMBRAUCT.FIELD3 column of DB2 type BIGINT.
java.lang.String getMemberId()
This method provides access to the MEMBRAUCT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getMemberIdInEJBType()
This method provides access to the MEMBRAUCT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOwner()
This method accesses a non-CMP field
java.lang.String getRelationType()
This method provides access to the MEMBRAUCT.RELATIONTYPE column of DB2 type CHAR(10) NOT NULL.
java.lang.String getStatus()
This method provides access to the MEMBRAUCT.STATUS column of DB2 type CHAR(4).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setAuctionId(java.lang.Long newValue)
This method accesses a non-CMP field
void setAuctionId(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 setField1(java.lang.Long newValue)
This method accesses a non-CMP field
void setField1(java.lang.String newValue)
This method accesses a non-CMP field
void setField2(java.lang.Long newValue)
This method accesses a non-CMP field
void setField2(java.lang.String newValue)
This method accesses a non-CMP field
void setField3(java.lang.Long newValue)
This method accesses a non-CMP field
void setField3(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_auctionId(java.lang.Long newValue)
Set the primary key for this object
void setInitKey_memberId(java.lang.Long newValue)
Set the primary key for this object
void setInitKey_relationType(java.lang.String newValue)
Set the primary key for this object
void setMemberId(java.lang.Long newValue)
This method accesses a non-CMP field
void setMemberId(java.lang.String newValue)
This method accesses a non-CMP field
void setRelationType(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

MemberAuctionRelationAccessBean

public MemberAuctionRelationAccessBean()
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.MemberAuctionRelation com.ibm.commerce.negotiation.objimpl.MemberAuctionRelationHomeBase.findByPrimaryKey(com.ibm.commerce.negotiation.objects.MemberAuctionRelationKey) 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_auctionId( java.lang.Long ) setInitKey_memberId( java.lang.Long ) setInitKey_relationType( java.lang.String )

MemberAuctionRelationAccessBean

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

MemberAuctionRelationAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
arg1 - The auction id.
arg2 - The member id of the customer who is bidding.
arg3 - The relationship arg3. Valid values: VR=customer has viewed the auction rules, GA=customer has put the auction in the auction gallery.
Method Detail

findByAuctionIdAndType

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

Retrieves all member/auction relationship records for the specified auction and type.

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

SELECT * FROM MEMBRAUCT T1 WHERE T1.AUCT_ID=? AND T1.RELATIONTYPE=?

Parameters:
auctid - The auction id.
type - The relationship type. Valid values: VR=customer has viewed the auction rules, GA=customer has put the auction in the auction gallery.
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 MemberAuctionRelationAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_auctionId

public void setInitKey_auctionId(java.lang.Long newValue)

Set the primary key for this object

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

setInitKey_memberId

public void setInitKey_memberId(java.lang.Long newValue)

Set the primary key for this object

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

setInitKey_relationType

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

getAuctionId

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

This method provides access to the MEMBRAUCT.AUCT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Auction ID.

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

getAuctionIdInEJBType

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

This method provides access to the MEMBRAUCT.AUCT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Auction ID.

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

setAuctionId

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

setAuctionId

public void setAuctionId(java.lang.Long 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 MEMBRAUCT.COMMENTS column of DB2 type VARCHAR(254).

The following is a description of this column:

Comments field. This field contains text.

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

getField3

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

This method provides access to the MEMBRAUCT.FIELD3 column of DB2 type BIGINT.

The following is a description of this column:

Customizable.

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

getField3InEJBType

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

This method provides access to the MEMBRAUCT.FIELD3 column of DB2 type BIGINT.

The following is a description of this column:

Customizable.

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

setField3

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

setField3

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

getField2

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

This method provides access to the MEMBRAUCT.FIELD2 column of DB2 type BIGINT.

The following is a description of this column:

Customizable.

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

getField2InEJBType

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

This method provides access to the MEMBRAUCT.FIELD2 column of DB2 type BIGINT.

The following is a description of this column:

Customizable.

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

setField2

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

setField2

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

getField1

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

This method provides access to the MEMBRAUCT.FIELD1 column of DB2 type BIGINT.

The following is a description of this column:

Customizable.

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

getField1InEJBType

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

This method provides access to the MEMBRAUCT.FIELD1 column of DB2 type BIGINT.

The following is a description of this column:

Customizable.

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

setField1

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

setField1

public void setField1(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 MEMBRAUCT.STATUS column of DB2 type CHAR(4).

The following is a description of this column:

Reserved for IBM internal use.

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

getRelationType

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

This method provides access to the MEMBRAUCT.RELATIONTYPE column of DB2 type CHAR(10) NOT NULL.

The following is a description of this column:

Relationship type. Valid values are as follows:&l

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

setRelationType

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

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

The following is a description of this column:

Member ID of the customer who is bidding.

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

The following is a description of this column:

Member ID of the customer who is bidding.

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 accesses a non-CMP field
Specified by:
setMemberId in interface MemberAuctionRelationAccessBeanData

setMemberId

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

fulfills

public boolean fulfills(java.lang.Long arg0,
                        java.lang.String arg1)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException
java.lang.Exception
javax.ejb.FinderException
javax.naming.NamingException

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.lang.Exception
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

Feedback