org.zeroexchange.model.resource
Class Resource

java.lang.Object
  extended by org.zeroexchange.model.Persistent
      extended by org.zeroexchange.model.IntegerPKPersistent
          extended by 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 Summary
static String FIELD_AMOUNT
           
static String FIELD_CATEGORY
           
static String FIELD_CONTRACT
           
static String FIELD_DESCRIPTION
           
static String FIELD_NEEDS
           
static String FIELD_OWNER
           
static String FIELD_SUPPLIES
           
static String FIELD_TITLE
           
 
Fields inherited from interface org.zeroexchange.model.SharedViewable
FIELD_VIEWERS
 
Fields inherited from interface org.zeroexchange.model.Identifiable
FIELD_ID
 
Constructor Summary
Resource()
           
 
Method Summary
 Contract getContract()
           
 String getDescription()
           
 Set<Need> getNeeds()
           
 User getOwner()
           
 BigDecimal getProductionHours()
           
 Set<PropertySpecification> getSpecification()
           
 Set<Supply> getSupplies()
           
 TendersMultiplicity getTendersMultiplicity()
           
 String getTitle()
           
 Set<User> getViewers()
          Returns viewers collection.
 void setContract(Contract contract)
           
 void setDescription(String description)
           
 void setNeeds(Set<Need> needs)
           
 void setOwner(User owner)
           
 void setProductionHours(BigDecimal productionHours)
           
 void setSpecification(Set<PropertySpecification> specification)
           
 void setSupplies(Set<Supply> supplies)
           
 void setTendersMultiplicity(TendersMultiplicity tendersMultiplicity)
           
 void setTitle(String title)
           
 void setViewers(Set<User> viewers)
           
 
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_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
Constructor Detail

Resource

public Resource()
Method Detail

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.