org.itracker.model
Class Configuration

java.lang.Object
  extended by org.itracker.model.AbstractEntity
      extended by org.itracker.model.Configuration
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Entity>, Entity

public class Configuration
extends AbstractEntity
implements Comparable<Entity>

A configuration item.

Author:
ready
See Also:
Serialized Form

Nested Class Summary
static class Configuration.ConfigurationOrderComparator
           
 
Nested classes/interfaces inherited from class org.itracker.model.AbstractEntity
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
 
Field Summary
static Configuration.ConfigurationOrderComparator CONFIGURATION_ORDER_COMPARATOR
           
 
Fields inherited from class org.itracker.model.AbstractEntity
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
 
Constructor Summary
Configuration()
          Default constructor (required by Hibernate).
Configuration(int type, NameValuePair pair)
           
Configuration(int type, String value)
           
Configuration(int type, String value, int order)
           
Configuration(int type, String value, String version)
           
Configuration(int type, String value, String version, int order)
           
 
Method Summary
 String getName()
           
 int getOrder()
           
 int getType()
           
 String getValue()
           
 String getVersion()
           
 void setName(String name)
           
 void setOrder(int order)
           
 void setType(int type)
           
 void setValue(String value)
           
 void setVersion(String version)
           
 String toString()
          String composed of system ID and natural key (name and version).
 
Methods inherited from class org.itracker.model.AbstractEntity
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

CONFIGURATION_ORDER_COMPARATOR

public static final Configuration.ConfigurationOrderComparator CONFIGURATION_ORDER_COMPARATOR
Constructor Detail

Configuration

public Configuration()
Default constructor (required by Hibernate).

PENDING: should be private so that it can only be used by Hibernate, to ensure that the fields which form an instance's identity are always initialized/never null.


Configuration

public Configuration(int type,
                     String value)

Configuration

public Configuration(int type,
                     NameValuePair pair)

Configuration

public Configuration(int type,
                     String value,
                     String version)

Configuration

public Configuration(int type,
                     String value,
                     int order)

Configuration

public Configuration(int type,
                     String value,
                     String version,
                     int order)
Method Detail

getName

public String getName()

setName

public void setName(String name)

getOrder

public int getOrder()

setOrder

public void setOrder(int order)

getType

public int getType()

setType

public void setType(int type)

getValue

public String getValue()

setValue

public void setValue(String value)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

toString

public String toString()
String composed of system ID and natural key (name and version).

Overrides:
toString in class Object


Copyright © 2002-2012 itracker. All Rights Reserved.