|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VersionStore
Interface for the VersionStore.
This is used by the VersionManager to store and retrieve Project Versions.
Most of the methods still work with GenericValue
s, because this happens to be useful to the DefaultVersionManager.
(Specifically, it uses EntityUtil.filterByAnd() to filter the List of GenericValues returned by the getAllVersions() method).
On the other hand, storeVersions() takes a List of Version objects because this is what the DefaultVersionManager wants.
Method Summary | |
---|---|
org.ofbiz.core.entity.GenericValue |
createVersion(Map versionParams)
|
void |
deleteVersion(org.ofbiz.core.entity.GenericValue versionGV)
|
List |
getAllVersions()
Returns a list of GenericValues representing all Versions in JIRA, ordered by sequence. |
org.ofbiz.core.entity.GenericValue |
getVersion(Long id)
|
void |
storeVersion(Version version)
Stores an individual Version in the DB. |
void |
storeVersions(Collection versions)
Stores a collection of Version objects. |
Method Detail |
---|
org.ofbiz.core.entity.GenericValue getVersion(Long id)
List getAllVersions()
org.ofbiz.core.entity.GenericValue createVersion(Map versionParams)
void storeVersion(Version version)
storeVersions(java.util.Collection)
, it can be more efficient.
version
- The Version to store.storeVersions(java.util.Collection)
void storeVersions(Collection versions)
storeVersion() multiple times.
eg the CachingVersionStore
will reload the cache from DB with every call to storeVersion().
- Parameters:
versions
- Collection of Version objects.- See Also:
storeVersion(Version)
void deleteVersion(org.ofbiz.core.entity.GenericValue versionGV)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |