com.jamasoftware.contour.domain
Class Lookup

java.lang.Object
  extended by com.jamasoftware.contour.domain.DomainObjectBaseSupport
      extended by com.jamasoftware.contour.domain.DomainObjectSupport
          extended by com.jamasoftware.contour.domain.Lookup
All Implemented Interfaces:
DomainObject, DomainObjectBase, OrganizationAware, java.io.Serializable, java.lang.Comparable<Lookup>

@Entity
public class Lookup
extends DomainObjectSupport
implements java.lang.Comparable<Lookup>

Lookups.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jamasoftware.contour.domain.DomainObjectBase
ORGANIZATION_COLUMN_NAME
 
Constructor Summary
Lookup()
           
Lookup(java.lang.Integer lookupId)
           
Lookup(java.lang.Integer lookupId, java.lang.String name)
           
Lookup(java.lang.Integer lookupId, java.lang.String name, java.lang.String description)
           
Lookup(com.jamasoftware.contour.service.dto.property.LookupPropertyDTO propertyDto)
           
Lookup(java.lang.String name, java.lang.String description)
           
Lookup(java.lang.String name, java.lang.String description, LookupType type)
           
Lookup(java.lang.String name, java.lang.String description, LookupType type, java.lang.Integer sortOrder)
           
 
Method Summary
 int compareTo(Lookup l)
           
 boolean getActive()
           
 java.lang.String getColor()
           
 java.lang.String getDataValue()
           
 java.lang.String getDescription()
           
 java.lang.Integer getId()
           
 java.lang.String getImage()
           
 boolean getIsDefault()
           
 LookupType getLookupType()
           
 java.lang.String getName()
           
 java.lang.Integer getOrganizationId()
           
 java.lang.Integer getSortOrder()
           
 java.lang.String getXmlToString()
           
 void setActive(boolean active)
           
 void setColor(java.lang.String color)
           
 void setDataValue(java.lang.String dataValue)
           
 void setDescription(java.lang.String description)
           
 void setId(java.lang.Integer lookupId)
           
 void setImage(java.lang.String image)
           
 void setIsDefault(boolean isDefault)
           
 void setLookupType(LookupType lookupType)
           
 void setName(java.lang.String displayDescription)
           
 void setOrganizationId(java.lang.Integer organizationId)
           
 void setSortOrder(java.lang.Integer sortOrder)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jamasoftware.contour.domain.DomainObjectSupport
getCreatedBy, getCreatedDate, getModifiedBy, getModifiedDate, setCreatedBy, setCreatedDate, setModifiedBy, setModifiedDate
 
Methods inherited from class com.jamasoftware.contour.domain.DomainObjectBaseSupport
equals, hashCode, isNewObject, obtainAclObjectIdentity
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lookup

public Lookup()

Lookup

public Lookup(java.lang.Integer lookupId)

Lookup

public Lookup(java.lang.Integer lookupId,
              java.lang.String name)

Lookup

public Lookup(java.lang.String name,
              java.lang.String description)

Lookup

public Lookup(java.lang.Integer lookupId,
              java.lang.String name,
              java.lang.String description)

Lookup

public Lookup(java.lang.String name,
              java.lang.String description,
              LookupType type)

Lookup

public Lookup(java.lang.String name,
              java.lang.String description,
              LookupType type,
              java.lang.Integer sortOrder)

Lookup

public Lookup(com.jamasoftware.contour.service.dto.property.LookupPropertyDTO propertyDto)
Method Detail

getId

@DocumentId
public java.lang.Integer getId()
Specified by:
getId in interface DomainObjectBase

setId

public void setId(java.lang.Integer lookupId)
Specified by:
setId in interface DomainObjectBase

getLookupType

public LookupType getLookupType()

setLookupType

public void setLookupType(LookupType lookupType)

getName

@Field(name="name",
       index=TOKENIZED,
       store=YES)
public java.lang.String getName()

setName

public void setName(java.lang.String displayDescription)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getImage

public java.lang.String getImage()

setImage

public void setImage(java.lang.String image)

getSortOrder

public java.lang.Integer getSortOrder()

setSortOrder

public void setSortOrder(java.lang.Integer sortOrder)

getIsDefault

public boolean getIsDefault()

setIsDefault

public void setIsDefault(boolean isDefault)

getXmlToString

public java.lang.String getXmlToString()
Specified by:
getXmlToString in interface DomainObject

getActive

public boolean getActive()

setActive

public void setActive(boolean active)

compareTo

public int compareTo(Lookup l)
Specified by:
compareTo in interface java.lang.Comparable<Lookup>

getDataValue

public java.lang.String getDataValue()

setDataValue

public void setDataValue(java.lang.String dataValue)

getColor

public java.lang.String getColor()

setColor

public void setColor(java.lang.String color)

getOrganizationId

public java.lang.Integer getOrganizationId()
Specified by:
getOrganizationId in interface DomainObjectBase
Specified by:
getOrganizationId in interface OrganizationAware

setOrganizationId

public void setOrganizationId(java.lang.Integer organizationId)
Specified by:
setOrganizationId in interface DomainObjectBase

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object.


Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.