org.zeroexchange.model.resource.participant
Class Supply

java.lang.Object
  extended by org.zeroexchange.model.Persistent
      extended by org.zeroexchange.model.IntegerPKPersistent
          extended by org.zeroexchange.model.resource.participant.ResourceTender
              extended by org.zeroexchange.model.resource.participant.Supply
All Implemented Interfaces:
Serializable, Identifiable<Integer>, SharedViewable

@Entity
public class Supply
extends ResourceTender

Author:
black
See Also:
Serialized Form

Field Summary
static String FIELD_TOTAL_PRICE
           
 
Fields inherited from class org.zeroexchange.model.resource.participant.ResourceTender
FIELD_ACCEPTED, FIELD_AMOUNT, FIELD_RESOURCE, FIELD_USER
 
Fields inherited from interface org.zeroexchange.model.SharedViewable
FIELD_VIEWERS
 
Fields inherited from interface org.zeroexchange.model.Identifiable
FIELD_ID
 
Constructor Summary
Supply()
           
 
Method Summary
 ZECurrency getCurrency()
           
 BigDecimal getHours()
           
 PriceType getPriceType()
           
 Date getSupplyTime()
           
 BigDecimal getTotalPrice()
           
 Set<User> getViewers()
          Returns viewers collection.
 void setCurrency(ZECurrency currency)
           
 void setHours(BigDecimal hours)
           
 void setPriceType(PriceType priceType)
           
 void setSupplyTime(Date supplyTime)
           
 void setTotalPrice(BigDecimal totalPrice)
           
 void setViewers(Set<User> viewers)
           
 
Methods inherited from class org.zeroexchange.model.resource.participant.ResourceTender
getAcceptDate, getAdditionalInfo, getAmount, getLocation, getResource, getUser, setAcceptDate, setAdditionalInfo, setAmount, setLocation, setResource, setUser
 
Methods inherited from class org.zeroexchange.model.IntegerPKPersistent
equals, getId, hashCode, setId
 
Methods inherited from class org.zeroexchange.model.Persistent
getTransientValues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_TOTAL_PRICE

public static final String FIELD_TOTAL_PRICE
See Also:
Constant Field Values
Constructor Detail

Supply

public Supply()
Method Detail

getHours

public BigDecimal getHours()
Returns:
the hours

setHours

public void setHours(BigDecimal hours)
Parameters:
hours - the hours to set

getTotalPrice

public BigDecimal getTotalPrice()

setTotalPrice

public void setTotalPrice(BigDecimal totalPrice)

getCurrency

public ZECurrency getCurrency()

setCurrency

public void setCurrency(ZECurrency currency)

getPriceType

public PriceType getPriceType()

setPriceType

public void setPriceType(PriceType priceType)

getSupplyTime

public Date getSupplyTime()

setSupplyTime

public void setSupplyTime(Date supplyTime)

getViewers

public Set<User> getViewers()
Description copied from interface: SharedViewable
Returns viewers collection. NOTE: this method should NOT return null!


setViewers

public void setViewers(Set<User> viewers)


Copyright © 2013. All Rights Reserved.