com.ibm.commerce.negotiation.objects
Class BidPaymentAccessBean

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

public class BidPaymentAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements BidPaymentAccessBeanData

This table stores information about bid payments, including information on deposits. This access bean corresponds to the database table 'BIDPAYMENT'.

See Also:
Serialized Form

Constructor Summary
BidPaymentAccessBean()
Zero argument constructor used to initialize the access bean.
BidPaymentAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findAll()
Retrieves all bid payments.
java.util.Enumeration findByBid(java.lang.Long bidid)
Retrieves all bid payments for the specified bid.
java.util.Enumeration findByCardNumber(java.lang.String cardnum)
Retrieves all bid payments with a certain credit card number.
java.util.Enumeration findByOwner(java.lang.Long ownerid)
Retrieves all bid payments of all bids owned by the specified owner.
java.util.Enumeration findByType(int aType)
Retrieves all bid payments of the specified aType.
java.lang.String getBankInfo()
This method provides access to the BIDPAYMENT.BKNAME column of DB2 type VARCHAR(254).
java.lang.String getBidId()
This method provides access to the BIDPAYMENT.BID_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getBidIdInEJBType()
This method provides access to the BIDPAYMENT.BID_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getComment()
This method provides access to the BIDPAYMENT.COMMENTS column of DB2 type VARCHAR(254).
java.lang.String getDeviceExpiration()
This method provides access to the BIDPAYMENT.EXPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getDeviceExpirationInEJBType()
This method provides access to the BIDPAYMENT.EXPDATE column of DB2 type TIMESTAMP.
java.lang.String getDeviceNumber()
This method provides access to the BIDPAYMENT.DEVICE column of DB2 type VARCHAR(64).
java.lang.String getEncrypted()
This method provides access to the BIDPAYMENT.ENCRYPT column of DB2 type INTEGER.
int getEncryptedInEJBType()
This method provides access to the BIDPAYMENT.ENCRYPT column of DB2 type INTEGER.
java.lang.String getId()
This method provides access to the BIDPAYMENT.BIDPAY_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getIdInEJBType()
This method provides access to the BIDPAYMENT.BIDPAY_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getPayDeviceType()
This method provides access to the BIDPAYMENT.PAYTYPE column of DB2 type CHAR(64).
java.lang.String getPaymentAmount()
This method provides access to the BIDPAYMENT.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.
java.math.BigDecimal getPaymentAmountInEJBType()
This method provides access to the BIDPAYMENT.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.
java.lang.String getPaymentType()
This method provides access to the BIDPAYMENT.TYPE column of DB2 type INTEGER.
int getPaymentTypeInEJBType()
This method provides access to the BIDPAYMENT.TYPE column of DB2 type INTEGER.
java.lang.String getPayTime()
This method provides access to the BIDPAYMENT.PAYTIME column of DB2 type TIMESTAMP.
java.sql.Timestamp getPayTimeInEJBType()
This method provides access to the BIDPAYMENT.PAYTIME column of DB2 type TIMESTAMP.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setBankInfo(java.lang.String newValue)
This method accesses a non-CMP field
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 setDeviceExpiration(java.lang.String newValue)
This method accesses a non-CMP field
void setDeviceExpiration(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setDeviceNumber(java.lang.String newValue)
This method accesses a non-CMP field
void setEncrypted(int newValue)
This method accesses a non-CMP field
void setEncrypted(java.lang.String newValue)
This method accesses a non-CMP field
void setId(java.lang.Long newValue)
This method accesses a non-CMP field
void setId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_id(java.lang.Long newValue)
Set the primary key for this object
void setPayDeviceType(java.lang.String newValue)
This method accesses a non-CMP field
void setPaymentAmount(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setPaymentAmount(java.lang.String newValue)
This method accesses a non-CMP field
void setPaymentType(int newValue)
This method accesses a non-CMP field
void setPaymentType(java.lang.String newValue)
This method accesses a non-CMP field
void setPayTime(java.lang.String newValue)
This method accesses a non-CMP field
void setPayTime(java.sql.Timestamp 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

BidPaymentAccessBean

public BidPaymentAccessBean()
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.BidPayment com.ibm.commerce.negotiation.objimpl.BidPaymentHomeBase.findByPrimaryKey(com.ibm.commerce.negotiation.objects.BidPaymentKey) 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_id( java.lang.Long )

BidPaymentAccessBean

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

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves all bid payments.

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

SELECT * FROM BIDPAYMENT T1 WHERE 1=1

Returns:
An Enumeration of all the BidPaymentAccessBeans 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)
                                throws java.rmi.RemoteException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

Retrieves all bid payments for the specified bid.

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

SELECT * FROM BIDPAYMENT T1 WHERE T1.BID_ID=?

Parameters:
bidid - The bid id.
Returns:
An Enumeration of all the BidPaymentAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByCardNumber

public java.util.Enumeration findByCardNumber(java.lang.String cardnum)
                                       throws java.rmi.RemoteException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

Retrieves all bid payments with a certain credit card number.

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

SELECT * FROM BIDPAYMENT T1 WHERE T1.DEVICE=?

Parameters:
cardnum - The credit card number.
Returns:
An Enumeration of all the BidPaymentAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByOwner

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

Retrieves all bid payments of all bids owned by the specified owner.

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

SELECT * FROM BIDPAYMENT T1 WHERE T1.BID_ID IN (SELECT T2.BID_ID FROM BID T2 WHERE T2.OWNER_ID=?)

Parameters:
ownerid - The id of the user who submitted the bid.
Returns:
An Enumeration of all the BidPaymentAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByType

public java.util.Enumeration findByType(int aType)
                                 throws java.rmi.RemoteException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

Retrieves all bid payments of the specified aType.

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

SELECT * FROM BIDPAYMENT T1 WHERE T1.TYPE=?

Parameters:
aType - The aType of payment. Valid values: 1=deposit, 2=other payment.
Returns:
An Enumeration of all the BidPaymentAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_id

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

getEncrypted

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

This method provides access to the BIDPAYMENT.ENCRYPT column of DB2 type INTEGER.

The following is a description of this column:

Indicates if the device is encrypted or not. Valid values are as follows:&l

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

getEncryptedInEJBType

public int getEncryptedInEJBType()
                          throws java.rmi.RemoteException,
                                 javax.ejb.CreateException,
                                 javax.ejb.FinderException,
                                 javax.naming.NamingException

This method provides access to the BIDPAYMENT.ENCRYPT column of DB2 type INTEGER.

The following is a description of this column:

Indicates if the device is encrypted or not. Valid values are as follows:&l

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

setEncrypted

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

setEncrypted

public void setEncrypted(int newValue)
This method accesses a non-CMP field

getPaymentAmount

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

This method provides access to the BIDPAYMENT.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.

The following is a description of this column:

The amount of the payment.

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

getPaymentAmountInEJBType

public java.math.BigDecimal getPaymentAmountInEJBType()
                                               throws java.rmi.RemoteException,
                                                      javax.ejb.CreateException,
                                                      javax.ejb.FinderException,
                                                      javax.naming.NamingException

This method provides access to the BIDPAYMENT.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.

The following is a description of this column:

The amount of the payment.

Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPaymentAmount

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

setPaymentAmount

public void setPaymentAmount(java.math.BigDecimal newValue)
This method accesses a non-CMP field

getPayTime

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

This method provides access to the BIDPAYMENT.PAYTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

Date and time of the payment.

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

getPayTimeInEJBType

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

This method provides access to the BIDPAYMENT.PAYTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

Date and time of the payment.

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

setPayTime

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

setPayTime

public void setPayTime(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 BIDPAYMENT.COMMENTS column of DB2 type VARCHAR(254).

The following is a description of this column:

Payment comments.

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

getDeviceNumber

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

This method provides access to the BIDPAYMENT.DEVICE column of DB2 type VARCHAR(64).

The following is a description of this column:

The device used to make the payment. For example, credit card number.

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

setDeviceNumber

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

getPayDeviceType

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

This method provides access to the BIDPAYMENT.PAYTYPE column of DB2 type CHAR(64).

The following is a description of this column:

Device type used for payment. This is set to the PAYTYPE attribute of the associated bid.

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

setPayDeviceType

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

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

The following is a description of this column:

ID of the bid for this payment.

Specified by:
getBidId in interface BidPaymentAccessBeanData
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 BIDPAYMENT.BID_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID of the bid for this payment.

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 BidPaymentAccessBeanData

setBidId

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

getPaymentType

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

This method provides access to the BIDPAYMENT.TYPE column of DB2 type INTEGER.

The following is a description of this column:

Type of payment. Valid values are as follows:&l

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

getPaymentTypeInEJBType

public int getPaymentTypeInEJBType()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException

This method provides access to the BIDPAYMENT.TYPE column of DB2 type INTEGER.

The following is a description of this column:

Type of payment. Valid values are as follows:&l

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

setPaymentType

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

setPaymentType

public void setPaymentType(int newValue)
This method accesses a non-CMP field

getBankInfo

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

This method provides access to the BIDPAYMENT.BKNAME column of DB2 type VARCHAR(254).

The following is a description of this column:

Bank name.

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

setBankInfo

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

getDeviceExpiration

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

This method provides access to the BIDPAYMENT.EXPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

Expiration date for the device (credit card expiration date).

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

getDeviceExpirationInEJBType

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

This method provides access to the BIDPAYMENT.EXPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

Expiration date for the device (credit card expiration date).

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

setDeviceExpiration

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

setDeviceExpiration

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

getId

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

This method provides access to the BIDPAYMENT.BIDPAY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Bid payment ID. The Primary key to this table.

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

getIdInEJBType

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

This method provides access to the BIDPAYMENT.BIDPAY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Bid payment ID. The Primary key to this table.

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

setId

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

setId

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

Feedback