org.itracker.model
Class IssueRelation

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

public class IssueRelation
extends AbstractEntity

A relation between issues.

Author:
ready
See Also:
Serialized Form

Nested Class Summary
static class IssueRelation.Type
           
 
Nested classes/interfaces inherited from class org.itracker.model.AbstractEntity
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
 
Field Summary
 
Fields inherited from class org.itracker.model.AbstractEntity
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
 
Constructor Summary
IssueRelation()
          Default constructor (required by Hibernate).
IssueRelation(Issue issue, Issue relatedIssue, int relationType)
           
 
Method Summary
 Issue getIssue()
           
 Integer getMatchingRelationId()
           
 Issue getRelatedIssue()
           
 int getRelationType()
           
 void setIssue(Issue issue)
           
 void setMatchingRelationId(Integer matchingRelationId)
           
 void setRelatedIssue(Issue relatedIssue)
           
 void setRelationType(int type)
           
 String toString()
           
 
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
 

Constructor Detail

IssueRelation

public IssueRelation()
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.


IssueRelation

public IssueRelation(Issue issue,
                     Issue relatedIssue,
                     int relationType)
Method Detail

getIssue

public Issue getIssue()

setIssue

public void setIssue(Issue issue)

getRelatedIssue

public Issue getRelatedIssue()

setRelatedIssue

public void setRelatedIssue(Issue relatedIssue)

getRelationType

public int getRelationType()

setRelationType

public void setRelationType(int type)

getMatchingRelationId

public Integer getMatchingRelationId()

setMatchingRelationId

public void setMatchingRelationId(Integer matchingRelationId)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 itracker. All Rights Reserved.