com.atlassian.jira.mock.project
Class MockVersion

java.lang.Object
  extended by com.atlassian.jira.mock.project.MockVersion
All Implemented Interfaces:
OfBizValueWrapper, Version

public class MockVersion
extends Object
implements Version


Constructor Summary
MockVersion()
           
MockVersion(org.ofbiz.core.entity.GenericValue genericValue)
           
MockVersion(long id, String name)
           
MockVersion(long id, String name, Project project)
           
MockVersion(long id, String name, Project project, Long sequence)
           
 
Method Summary
 String getDescription()
           
 org.ofbiz.core.entity.GenericValue getGenericValue()
          Get the backing GenericValue object.
 Long getId()
           
 Long getLong(String name)
          Retrieve a numeric field.
 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()
           
 String getString(String name)
          Retrieve a String field.
 Timestamp getTimestamp(String name)
          Retrieve a timestamp field.
 boolean isArchived()
           
 boolean isReleased()
           
 void setArchived(boolean archived)
           
 void setDescription(String description)
           
 void setId(Long id)
           
 void setName(String name)
           
 MockVersion setProjectObject(Project project)
           
 void setReleased(boolean released)
           
 void setReleaseDate(Date releasedate)
           
 void setSequence(Long sequence)
           
 void store()
          Persist this object's immediate fields.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockVersion

public MockVersion()

MockVersion

public MockVersion(org.ofbiz.core.entity.GenericValue genericValue)

MockVersion

public MockVersion(long id,
                   String name)

MockVersion

public MockVersion(long id,
                   String name,
                   Project project)

MockVersion

public MockVersion(long id,
                   String name,
                   Project project,
                   Long sequence)
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 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

setProjectObject

public MockVersion setProjectObject(Project project)

getId

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

setId

public void setId(Long id)

getName

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

setName

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

getDescription

public String getDescription()
Specified by:
getDescription in interface Version

setDescription

public void setDescription(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

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

setReleaseDate

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

getString

public String getString(String name)
Description copied from interface: OfBizValueWrapper
Retrieve a String field.

Specified by:
getString in interface OfBizValueWrapper
Parameters:
name - the field name
Returns:
the value for the given field.

getTimestamp

public Timestamp getTimestamp(String name)
Description copied from interface: OfBizValueWrapper
Retrieve a timestamp field.

Specified by:
getTimestamp in interface OfBizValueWrapper
Parameters:
name - the field name
Returns:
the value for the given field.

getLong

public Long getLong(String name)
Description copied from interface: OfBizValueWrapper
Retrieve a numeric field.

Specified by:
getLong in interface OfBizValueWrapper
Parameters:
name - the field name
Returns:
the value for the given field.

getGenericValue

public org.ofbiz.core.entity.GenericValue getGenericValue()
Description copied from interface: OfBizValueWrapper
Get the backing GenericValue object.

Specified by:
getGenericValue in interface OfBizValueWrapper
Returns:
the backing GenericValue object.

store

public void store()
Description copied from interface: OfBizValueWrapper
Persist this object's immediate fields.

Specified by:
store in interface OfBizValueWrapper

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.