com.projectdarkstar.tools.dtc.domain
Class Property

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

public class Property
extends Object
implements Serializable

Represents a property by mapping a property name to a value.

See Also:
Serialized Form

Constructor Summary
Property()
           
Property(String description, String property, String value)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDescription()
           
 Long getId()
          Returns the id of the entity in persistent storage
 String getProperty()
           
 String getValue()
           
 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 setProperty(String property)
           
 void setValue(String value)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property()

Property

public Property(String description,
                String property,
                String value)
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)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getProperty

public String getProperty()

setProperty

public void setProperty(String property)

getValue

public String getValue()

setValue

public void setValue(String value)

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.