org.zeroexchange.model.resource
Class Resource
java.lang.Object
org.zeroexchange.model.Persistent
org.zeroexchange.model.IntegerPKPersistent
org.zeroexchange.model.resource.Resource
- All Implemented Interfaces:
- Serializable, Identifiable<Integer>, SharedViewable
- Direct Known Subclasses:
- GoodResource, MoneyResource, ServiceResource
@Entity
public class Resource
- extends IntegerPKPersistent
- implements SharedViewable
The base class for the object-specific entities.
- Author:
- black
- See Also:
- Serialized Form
FIELD_OWNER
public static final String FIELD_OWNER
- See Also:
- Constant Field Values
FIELD_TITLE
public static final String FIELD_TITLE
- See Also:
- Constant Field Values
FIELD_CONTRACT
public static final String FIELD_CONTRACT
- See Also:
- Constant Field Values
FIELD_CATEGORY
public static final String FIELD_CATEGORY
- See Also:
- Constant Field Values
FIELD_AMOUNT
public static final String FIELD_AMOUNT
- See Also:
- Constant Field Values
FIELD_DESCRIPTION
public static final String FIELD_DESCRIPTION
- See Also:
- Constant Field Values
FIELD_NEEDS
public static final String FIELD_NEEDS
- See Also:
- Constant Field Values
FIELD_SUPPLIES
public static final String FIELD_SUPPLIES
- See Also:
- Constant Field Values
Resource
public Resource()
getTitle
public String getTitle()
setTitle
public void setTitle(String title)
getOwner
public User getOwner()
setOwner
public void setOwner(User owner)
getSpecification
public Set<PropertySpecification> getSpecification()
- Returns:
- the specification
setSpecification
public void setSpecification(Set<PropertySpecification> specification)
- Parameters:
specification
- the specification to set
getContract
public Contract getContract()
setContract
public void setContract(Contract contract)
getNeeds
public Set<Need> getNeeds()
setNeeds
public void setNeeds(Set<Need> needs)
getSupplies
public Set<Supply> getSupplies()
setSupplies
public void setSupplies(Set<Supply> supplies)
getViewers
public Set<User> getViewers()
- Description copied from interface:
SharedViewable
- Returns viewers collection.
NOTE: this method should NOT return null!
- Specified by:
getViewers
in interface SharedViewable
setViewers
public void setViewers(Set<User> viewers)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getProductionHours
public BigDecimal getProductionHours()
- Returns:
- the productionHours
setProductionHours
public void setProductionHours(BigDecimal productionHours)
- Parameters:
productionHours
- the productionHours to set
getTendersMultiplicity
public TendersMultiplicity getTendersMultiplicity()
setTendersMultiplicity
public void setTendersMultiplicity(TendersMultiplicity tendersMultiplicity)
Copyright © 2013. All Rights Reserved.