com.ibm.commerce.negotiation.beans
Class AutoBidListBean

java.lang.Object
  |
  +--com.ibm.commerce.beans.InputDataBeanImpl
        |
        +--com.ibm.commerce.beans.SmartDataBeanImpl
              |
              +--com.ibm.commerce.negotiation.beans.NegotiationListBean
                    |
                    +--com.ibm.commerce.negotiation.beans.AutoBidListBean
All Implemented Interfaces:
AutoBidListInputDataBean, AutoBidListSmartDataBean, DataBean, InputDataBean, NegotiationListInputDataBean, NegotiationListSmartDataBean, java.io.Serializable, SmartDataBean

public class AutoBidListBean
extends NegotiationListBean
implements AutoBidListInputDataBean, AutoBidListSmartDataBean

Provides sorted lists of AutoBidDataBean objects.

See Also:
NegotiationListBean, CommandDataBean, Serialized Form

Field Summary
protected  java.lang.Long auctionId
           
protected  java.lang.String[] auctionStatus
           
protected  java.lang.String[] autoBidStatus
           
static java.lang.String COPYRIGHT
           
protected  AutoBidDataBean[] fAutoBids
           
 java.lang.Long ownerId
           
 
Fields inherited from class com.ibm.commerce.negotiation.beans.NegotiationListBean
listSize, sortingAtt
 
Fields inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
commandContext
 
Fields inherited from class com.ibm.commerce.beans.InputDataBeanImpl
requestProperties
 
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
 
Constructor Summary
AutoBidListBean()
          Constructs an AutoBidListBean, initializes fields to emptyString.
 
Method Summary
 java.lang.String getAuctionId()
          Gets the auctionId.
 java.lang.String[] getAuctionStatus()
          Gets the status of an auction.
 AutoBidDataBean[] getAutoBids()
          Gets a sorted list of AutoBidDataBean objects.
 java.lang.String getAutoBidStatus()
          Gets the autoBidStatus.
 java.lang.String getOwnerId()
          Gets the ownerId field.
 void populate()
          Looks up a sorted list of auto bids, then populates an array of AutoBidDataBean objects from the list entries.
 void setAuctionId(java.lang.String newAuctionId)
          Sets the auctionId.
 void setAuctionStatus(java.lang.String[] newAuctionStatus)
          Sets the auction status search criteria.
 void setAutoBids(AutoBidDataBean[] newAutoBids)
          Loads the member array fAutoBids.
 void setAutoBidStatus(java.lang.String newStatus)
          Sets the autoBidStatus.
 void setOwnerId(java.lang.String newOwnerId)
          Sets the ownerId field.
 
Methods inherited from class com.ibm.commerce.negotiation.beans.NegotiationListBean
getLength, getSortAtt, setSortAtt
 
Methods inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
fulfills, getCommandContext, getResources, setCommandContext
 
Methods inherited from class com.ibm.commerce.beans.InputDataBeanImpl
getRequestProperties, setRequestProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.beans.InputDataBean
getRequestProperties, setRequestProperties
 

Field Detail

auctionId

protected java.lang.Long auctionId

auctionStatus

protected java.lang.String[] auctionStatus

autoBidStatus

protected java.lang.String[] autoBidStatus

COPYRIGHT

public static final java.lang.String COPYRIGHT

fAutoBids

protected AutoBidDataBean[] fAutoBids

ownerId

public java.lang.Long ownerId
Constructor Detail

AutoBidListBean

public AutoBidListBean()
Constructs an AutoBidListBean, initializes fields to emptyString.
Method Detail

getAuctionId

public java.lang.String getAuctionId()
Gets the auctionId.
Specified by:
getAuctionId in interface AutoBidListSmartDataBean
Returns:
the auction id.

getAuctionStatus

public java.lang.String[] getAuctionStatus()
Gets the status of an auction.
Specified by:
getAuctionStatus in interface AutoBidListSmartDataBean
Returns:
String[]

getAutoBids

public AutoBidDataBean[] getAutoBids()
Gets a sorted list of AutoBidDataBean objects.
Specified by:
getAutoBids in interface AutoBidListSmartDataBean
Returns:
sorted array of AutoBidDataBean

getAutoBidStatus

public java.lang.String getAutoBidStatus()
Gets the autoBidStatus.
Specified by:
getAutoBidStatus in interface AutoBidListSmartDataBean
Returns:
the auto bid status.

getOwnerId

public java.lang.String getOwnerId()
Gets the ownerId field.
Specified by:
getOwnerId in interface AutoBidListSmartDataBean
Returns:
the owner id.

populate

public void populate()
              throws java.lang.Exception
Looks up a sorted list of auto bids, then populates an array of AutoBidDataBean objects from the list entries.
Overrides:
populate in class SmartDataBeanImpl
Throws:
java.lang.Exception - if an AutoBidAccessBean could not be created.

setAuctionId

public void setAuctionId(java.lang.String newAuctionId)
Sets the auctionId.
Specified by:
setAuctionId in interface AutoBidListInputDataBean
Parameters:
newAuctionId - the relevant auctionId.

setAuctionStatus

public void setAuctionStatus(java.lang.String[] newAuctionStatus)
Sets the auction status search criteria.
Specified by:
setAuctionStatus in interface AutoBidListInputDataBean
Parameters:
newAuctionStatus - int

setAutoBids

public void setAutoBids(AutoBidDataBean[] newAutoBids)
Loads the member array fAutoBids.
Specified by:
setAutoBids in interface AutoBidListInputDataBean
Parameters:
newAutoBids - new array of AutoBidDataBean objects.

setAutoBidStatus

public void setAutoBidStatus(java.lang.String newStatus)
Sets the autoBidStatus.
Specified by:
setAutoBidStatus in interface AutoBidListInputDataBean
Parameters:
newStatus - the auto bid status.

setOwnerId

public void setOwnerId(java.lang.String newOwnerId)
Sets the ownerId field.
Specified by:
setOwnerId in interface AutoBidListInputDataBean
Parameters:
newOwnerId - Id of the auction owner.