com.atlassian.jira.project.version
Class VersionImpl

java.lang.Object
  extended by com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
      extended by com.atlassian.jira.project.version.VersionImpl
All Implemented Interfaces:
OfBizValueWrapper, ProjectConstant, Version, Comparable

public class VersionImpl
extends AbstractOfBizValueWrapper
implements Version, Comparable


Field Summary
 
Fields inherited from class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
genericValue
 
Constructor Summary
VersionImpl(ProjectManager projectManager, org.ofbiz.core.entity.GenericValue genericValue)
           
 
Method Summary
 int compareTo(Object o)
           
 String getDescription()
           
 Long getId()
           
 String getName()
           
 org.ofbiz.core.entity.GenericValue getProject()
          Returns Project as a GenericValue.
 Long getProjectId()
          Returns the ID of the project that this version belongs to.
 Project getProjectObject()
          Returns project this version relates to.
 Date getReleaseDate()
           
 Long getSequence()
           
 Date getStartDate()
          Returns the start date of the version
 boolean isArchived()
           
 boolean isReleased()
           
 void setArchived(boolean archived)
           
 void setDescription(String description)
           
 void setName(String name)
           
 void setReleased(boolean released)
           
 void setReleaseDate(Date releasedate)
           
 void setSequence(Long sequence)
           
 void setStartDate(Date startDate)
          Sets the start date of the version
 String toString()
           
 
Methods inherited from class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
equals, getGenericValue, getLong, getString, getTimestamp, hashCode, store
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.ofbiz.OfBizValueWrapper
getGenericValue, getLong, getString, getTimestamp, store
 

Constructor Detail

VersionImpl

public VersionImpl(ProjectManager projectManager,
                   org.ofbiz.core.entity.GenericValue genericValue)
Method Detail

getProject

public org.ofbiz.core.entity.GenericValue getProject()
Description copied from interface: Version
Returns Project as a GenericValue.

Specified by:
getProject in interface Version
Returns:
Project as a GenericValue.

getProjectId

public Long getProjectId()
Description copied from interface: Version
Returns the ID of the project that this version belongs to.

Specified by:
getProjectId in interface ProjectConstant
Specified by:
getProjectId in interface Version
Returns:
the ID of the project that this version belongs to.

getProjectObject

public Project getProjectObject()
Description copied from interface: Version
Returns project this version relates to.

Specified by:
getProjectObject in interface Version
Returns:
project domain object

getId

public Long getId()
Specified by:
getId in interface ProjectConstant
Specified by:
getId in interface Version

getName

public String getName()
Specified by:
getName in interface ProjectConstant
Specified by:
getName in interface Version

setName

public void setName(String name)
Specified by:
setName in interface Version

getDescription

@Nullable
public String getDescription()
Specified by:
getDescription in interface ProjectConstant
Specified by:
getDescription in interface Version

setDescription

public void setDescription(@Nullable
                           String description)
Specified by:
setDescription in interface Version

getSequence

public Long getSequence()
Specified by:
getSequence in interface Version

setSequence

public void setSequence(Long sequence)
Specified by:
setSequence in interface Version

isArchived

public boolean isArchived()
Specified by:
isArchived in interface Version

setArchived

public void setArchived(boolean archived)
Specified by:
setArchived in interface Version

isReleased

public boolean isReleased()
Specified by:
isReleased in interface Version

setReleased

public void setReleased(boolean released)
Specified by:
setReleased in interface Version

getReleaseDate

@Nullable
public Date getReleaseDate()
Specified by:
getReleaseDate in interface Version

setReleaseDate

public void setReleaseDate(@Nullable
                           Date releasedate)
Specified by:
setReleaseDate in interface Version

getStartDate

@Nullable
public Date getStartDate()
Description copied from interface: Version
Returns the start date of the version

Specified by:
getStartDate in interface Version
Returns:
The start date of the version

setStartDate

public void setStartDate(@Nullable
                         Date startDate)
Description copied from interface: Version
Sets the start date of the version

Specified by:
setStartDate in interface Version
Parameters:
startDate - The start date of the version

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.