com.ibm.commerce.negotiation.beans
Class BidDataBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.negotiation.objects.BidAccessBean
          com.ibm.commerce.negotiation.beans.BidDataBean
All Implemented Interfaces:
BidAccessBeanData, BidInputDataBean, BidSmartDataBean, DataBean, InputDataBean, java.io.Serializable, SmartDataBean

public class BidDataBean
extends BidAccessBean
implements BidInputDataBean, BidSmartDataBean, SmartDataBean

Retrieves information about a bid. The primary key is bid id. Bid information also can be retrieved by setting Bid reference code.

See Also:
Serialized Form

Field Summary
protected java.lang.String aString
protected CommandContext commandContext
protected java.util.Hashtable payinfoNVPairs
protected TypedProperty requestProperties
Fields inherited from interface com.ibm.commerce.beans.SmartDataBean
COPYRIGHT
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
Constructor Summary
BidDataBean()
Constructs a BidDataBean object.
BidDataBean(BidAccessBean anAccessBean)
Constructs a BidDataBean object.
Method Summary
CommandContext getCommandContext()
Get command context.
java.lang.String getDeviceExpDate()
Get Device Expiration Date.
java.lang.String getDeviceExpDay()
Get Device Expiration Day.
java.lang.String getDeviceExpMonth()
Get Device Expiration Month.
java.lang.String getDeviceExpYear()
Get Device Expiration Year.
java.util.Hashtable getPayinfoNVPairs()
Get payment related information.
TypedProperty getRequestProperties()
Fetches the command properties.
void populate()
Retrieves bid information and populates BidDataBean object.
void setBidId(java.lang.String newBidId)
Sets the bidId, which is used as a lookup key.
void setBidReferenceCode(java.lang.String newBidReferenceCode)
Sets Bid Reference Code.
void setCommandContext(CommandContext aCommandContext)
Set command context.
void setPayinfoNVPairs(java.util.Hashtable newPayinfoNVPairs)
Stores the incoming hashtable of payment information in a member variable.
void setRequestProperties(TypedProperty newRequestProperties)
Copies the input command properties.
Methods inherited from class com.ibm.commerce.negotiation.objects.BidAccessBean
commitCopyHelper, defaultJNDIName, findAllBids, findBidByIdForUpdate, findBidByReferenceCode, findBidsByAuction, findBidsByAuctionAndMultipleStatus, findBidsByAuctionAndStatus, findBidsByAuctionAndStatusForUpdate, findBidsByAutobid, findBidsByAutobidAndStatus, findBidsByOwner, findBidsByOwnerAndMultipleAuctionStatus, findBidsByOwnerAndStatus, findByAuction, findByAuction, fulfills, getAdminId, getAdminIdInEJBType, getAuction, getAuctionId, getAuctionIdInEJBType, getAutoBidId, getAutoBidIdInEJBType, getBankInfo, getBidComment, getBidPrice, getBidPriceInEJBType, getBidQuantity, getBidQuantityInEJBType, getBillingAddressId, getBillingAddressIdInEJBType, getCreationTime, getCreationTimeInEJBType, getDeviceExpiration, getDeviceExpirationInEJBType, getDeviceNumber, getEncrypted, getEncryptedInEJBType, getField1, getField1InEJBType, getField2, getField2InEJBType, getField3, getId, getIdInEJBType, getOwner, getOwnerId, getOwnerIdInEJBType, getPaymentDeviceType, getReferenceCode, getRootBidId, getRootBidIdInEJBType, getScale, getScaleInEJBType, getShippingAddressId, getShippingAddressIdInEJBType, getShippingMode, getShippingModeInEJBType, getStatus, getStoreId, getStoreIdInEJBType, getWinningPrice, getWinningPriceInEJBType, getWinningQuantity, getWinningQuantityInEJBType, getWinOption, instantiateEJB, instantiateEJBByPrimaryKey, refreshCopyHelper, setAdminId, setAdminId, setAuctionId, setAuctionId, setAutoBidId, setAutoBidId, setBankInfo, setBidComment, setBidPrice, setBidPrice, setBidQuantity, setBidQuantity, setBillingAddressId, setBillingAddressId, setCreationTime, setCreationTime, setDeviceExpiration, setDeviceExpiration, setDeviceNumber, setEncrypted, setEncrypted, setField1, setField1, setField2, setField2, setField3, setId, setId, setInitKey_id, setOwnerId, setOwnerId, setPaymentDeviceType, setReferenceCode, setRootBidId, setRootBidId, setScale, setScale, setShippingAddressId, setShippingAddressId, setShippingMode, setShippingMode, setStatus, setStoreId, setStoreId, setWinningPrice, setWinningPrice, setWinningQuantity, setWinningQuantity, setWinOption
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

aString

protected java.lang.String aString

commandContext

protected CommandContext commandContext

requestProperties

protected TypedProperty requestProperties

payinfoNVPairs

protected java.util.Hashtable payinfoNVPairs
Constructor Detail

BidDataBean

public BidDataBean()
Constructs a BidDataBean object.

BidDataBean

public BidDataBean(BidAccessBean anAccessBean)
            throws java.lang.Exception
Constructs a BidDataBean object.
Method Detail

getCommandContext

public CommandContext getCommandContext()
Get command context.
Specified by:
getCommandContext in interface SmartDataBean
Returns:
The command context.

getDeviceExpDate

public java.lang.String getDeviceExpDate()
Get Device Expiration Date. Format: yyyy-mm-dd
Specified by:
getDeviceExpDate in interface BidSmartDataBean
Returns:
The device expiration date.

getDeviceExpDay

public java.lang.String getDeviceExpDay()
Get Device Expiration Day. Format: dd
Specified by:
getDeviceExpDay in interface BidSmartDataBean
Returns:
The device expiration day.

getDeviceExpMonth

public java.lang.String getDeviceExpMonth()
Get Device Expiration Month. Format: mm
Specified by:
getDeviceExpMonth in interface BidSmartDataBean
Returns:
The device expiration month.

getDeviceExpYear

public java.lang.String getDeviceExpYear()
Get Device Expiration Year. Format: yyyy
Specified by:
getDeviceExpYear in interface BidSmartDataBean
Returns:
The device expiration year.

getPayinfoNVPairs

public java.util.Hashtable getPayinfoNVPairs()
Get payment related information. Only the bidder himself/herself can get this.
Returns:
The hashtable of payment information.

getRequestProperties

public TypedProperty getRequestProperties()
Fetches the command properties.
Specified by:
getRequestProperties in interface InputDataBean
Returns:
The request properties.

populate

public void populate()
              throws java.lang.Exception
Retrieves bid information and populates BidDataBean object.
Specified by:
populate in interface SmartDataBean
Throws:
java.lang.Exception - if any problems are encountered.

setBidId

public void setBidId(java.lang.String newBidId)
              throws java.lang.Exception
Sets the bidId, which is used as a lookup key.
Specified by:
setBidId in interface BidInputDataBean
Parameters:
newBidId - The bid id.
Throws:
java.lang.Exception

setBidReferenceCode

public void setBidReferenceCode(java.lang.String newBidReferenceCode)
                         throws java.lang.Exception
Sets Bid Reference Code. This method will find bid information by reference code
Specified by:
setBidReferenceCode in interface BidInputDataBean
Parameters:
newBidReferenceCode - The bid reference code.
Throws:
java.lang.Exception

setCommandContext

public void setCommandContext(CommandContext aCommandContext)
Set command context.
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
aCommandContext - The command context..

setPayinfoNVPairs

public void setPayinfoNVPairs(java.util.Hashtable newPayinfoNVPairs)
Stores the incoming hashtable of payment information in a member variable.
Parameters:
newPayinfoNVPairs - The hashtable of payment information.

setRequestProperties

public void setRequestProperties(TypedProperty newRequestProperties)
Copies the input command properties.
Specified by:
setRequestProperties in interface InputDataBean
Parameters:
newRequestProperties - The command properties.

Feedback