com.projectdarkstar.tools.dtc.domain
Class HardwareResourceFamily

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.domain.HardwareResourceFamily
All Implemented Interfaces:
Serializable

public class HardwareResourceFamily
extends Object
implements Serializable

Represents a family of resources. Each resource in the family should have a common set of attributes.

See Also:
Serialized Form

Constructor Summary
HardwareResourceFamily()
           
HardwareResourceFamily(String name, String description, String system, String os, String memory)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDescription()
           
 Long getId()
          Returns the id of the entity in persistent storage
 List<HardwareResource> getMembers()
           
 String getMemory()
           
 String getName()
           
 String getOs()
           
 String getSystem()
           
 Long getVersionNumber()
          Returns the version number in the data store that this entity represents.
 int hashCode()
           
 void setDescription(String description)
           
 void setId(Long id)
           
 void setMembers(List<HardwareResource> members)
           
 void setMemory(String memory)
           
 void setName(String name)
           
 void setOs(String os)
           
 void setSystem(String system)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HardwareResourceFamily

public HardwareResourceFamily()

HardwareResourceFamily

public HardwareResourceFamily(String name,
                              String description,
                              String system,
                              String os,
                              String memory)
Method Detail

getId

public Long getId()
Returns the id of the entity in persistent storage

Returns:
id of the entity

setId

public void setId(Long id)

getVersionNumber

public Long getVersionNumber()
Returns the version number in the data store that this entity represents. Whenever an update to an object is pushed to the persistent data store, the version number is incremented.

Returns:
version number of the entity

setVersionNumber

public void setVersionNumber(Long versionNumber)

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getSystem

public String getSystem()

setSystem

public void setSystem(String system)

getMemory

public String getMemory()

setMemory

public void setMemory(String memory)

getOs

public String getOs()

setOs

public void setOs(String os)

getMembers

public List<HardwareResource> getMembers()

setMembers

public void setMembers(List<HardwareResource> members)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.