public class MockVersion extends Object implements Version
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()
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() |
Date |
getStartDate()
Returns the start date of the version
|
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 |
setStartDate(Date startDate)
Sets the start date of the version
|
void |
store()
Persist this object's immediate fields.
|
String |
toString() |
public MockVersion()
public MockVersion(org.ofbiz.core.entity.GenericValue genericValue)
public MockVersion(long id, String name)
public org.ofbiz.core.entity.GenericValue getProject()
Version
getProject
in interface Version
public Long getProjectId()
Version
getProjectId
in interface ProjectConstant
getProjectId
in interface Version
public Project getProjectObject()
Version
getProjectObject
in interface Version
public MockVersion setProjectObject(Project project)
public Long getId()
public void setId(Long id)
public String getName()
public String getDescription()
getDescription
in interface ProjectConstant
getDescription
in interface Version
getDescription
in interface NamedWithDescription
public void setDescription(String description)
setDescription
in interface Version
public Long getSequence()
getSequence
in interface Version
public void setSequence(Long sequence)
setSequence
in interface Version
public boolean isArchived()
isArchived
in interface Version
public void setArchived(boolean archived)
setArchived
in interface Version
public boolean isReleased()
isReleased
in interface Version
public void setReleased(boolean released)
setReleased
in interface Version
public Date getStartDate()
Version
getStartDate
in interface Version
public void setStartDate(Date startDate)
Version
setStartDate
in interface Version
startDate
- The start date of the versionpublic Version clone()
public Date getReleaseDate()
getReleaseDate
in interface Version
public void setReleaseDate(Date releasedate)
setReleaseDate
in interface Version
public String getString(String name)
OfBizValueWrapper
getString
in interface OfBizValueWrapper
name
- the field namepublic Timestamp getTimestamp(String name)
OfBizValueWrapper
getTimestamp
in interface OfBizValueWrapper
name
- the field namepublic Long getLong(String name)
OfBizValueWrapper
getLong
in interface OfBizValueWrapper
name
- the field namepublic org.ofbiz.core.entity.GenericValue getGenericValue()
OfBizValueWrapper
getGenericValue
in interface OfBizValueWrapper
public void store()
OfBizValueWrapper
store
in interface OfBizValueWrapper
Copyright © 2002-2016 Atlassian. All Rights Reserved.