public class MockVersion extends Object implements Version
NAME_COMPARATOR
ID_COMPARATOR
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
Version |
clone() |
String |
getDescription() |
org.ofbiz.core.entity.GenericValue |
getGenericValue() |
Long |
getId() |
Long |
getLong(String name) |
String |
getName() |
Project |
getProject()
Returns project this version relates to.
|
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
|
String |
getString(String name) |
Timestamp |
getTimestamp(String name) |
boolean |
isArchived() |
boolean |
isReleased() |
static Version |
named(String versionName) |
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 |
setStartDate(Date startDate) |
void |
store() |
String |
toString() |
public MockVersion()
public MockVersion(org.ofbiz.core.entity.GenericValue genericValue)
public MockVersion(long id, String name)
public Project getProject()
Version
getProject
in interface Version
public Long getProjectId()
Version
getProjectId
in interface ProjectConstant
getProjectId
in interface Version
public Project getProjectObject()
Version
Same as getProject() and exists for legacy reasons.
getProjectObject
in interface Version
public MockVersion setProjectObject(Project project)
public Long getId()
public void setId(Long id)
public String getName()
public void setName(String name)
public String getDescription()
getDescription
in interface ProjectConstant
getDescription
in interface Version
getDescription
in interface NamedWithDescription
public void setDescription(String description)
public Long getSequence()
getSequence
in interface Version
public void setSequence(Long sequence)
public boolean isArchived()
isArchived
in interface Version
public void setArchived(boolean archived)
public boolean isReleased()
isReleased
in interface Version
public void setReleased(boolean released)
public Date getStartDate()
Version
getStartDate
in interface Version
public void setStartDate(Date startDate)
public Date getReleaseDate()
getReleaseDate
in interface Version
public void setReleaseDate(Date releasedate)
public org.ofbiz.core.entity.GenericValue getGenericValue()
public void store()
Copyright © 2002-2024 Atlassian. All Rights Reserved.