Class OfBizVersionStore
java.lang.Object
com.atlassian.jira.project.version.OfBizVersionStore
- All Implemented Interfaces:
VersionStore
-
Constructor Summary
ConstructorDescriptionOfBizVersionStore
(EntityEngine entityEngine, DbConnectionManager dbConnectionManager) -
Method Summary
Modifier and TypeMethodDescriptioncreateVersion
(Version version) void
deleteAllVersions
(Long projectId) Deletes all versions in a given project by removing them from database.void
deleteVersion
(Version version) Deletes given Version object by removing it from database.Returns a list of GenericValues representing all Versions in JIRA, ordered by sequence.getVersion
(Long id) getVersionsByName
(String name) Returns a list of GenericValues representing all Versions in JIRA with a given name, case insensitively.getVersionsByProject
(Long projectId) Returns a list of GenericValues representing all Versions in a project.void
storeVersion
(Version version) Stores an individual Version in the DB.void
storeVersions
(Collection<Version> versions) Stores a collection of Version objects.
-
Constructor Details
-
OfBizVersionStore
-
-
Method Details
-
getAllVersions
Description copied from interface:VersionStore
Returns a list of GenericValues representing all Versions in JIRA, ordered by sequence.- Specified by:
getAllVersions
in interfaceVersionStore
- Returns:
- a list of GenericValues representing all Versions in JIRA, ordered by sequence.
-
getVersionsByName
Description copied from interface:VersionStore
Returns a list of GenericValues representing all Versions in JIRA with a given name, case insensitively.- Specified by:
getVersionsByName
in interfaceVersionStore
- Parameters:
name
- Version name- Returns:
- a list of GenericValues representing all Versions in JIRA with a given name, case insensitively.
-
getVersionsByProject
Description copied from interface:VersionStore
Returns a list of GenericValues representing all Versions in a project.- Specified by:
getVersionsByProject
in interfaceVersionStore
- Parameters:
projectId
- Project Id- Returns:
- a list of GenericValues representing all Versions in a project
-
createVersion
- Specified by:
createVersion
in interfaceVersionStore
-
storeVersion
Description copied from interface:VersionStore
Stores an individual Version in the DB. If you want to store a collection of Versions, consider usingVersionStore.storeVersions(java.util.Collection<com.atlassian.jira.project.version.Version>)
, it can be more efficient.- Specified by:
storeVersion
in interfaceVersionStore
- Parameters:
version
- The Version to store.- See Also:
-
storeVersions
Description copied from interface:VersionStore
Stores a collection of Version objects. This method can have performance benefits over callingstoreVersion()
multiple times. eg the
CachingVersionStore
will reload the cache from DB with every call tostoreVersion()
.
- Specified by:
storeVersions
in interfaceVersionStore
- Parameters:
versions
- Collection of Version objects.- See Also:
-
getVersion
- Specified by:
getVersion
in interfaceVersionStore
-
deleteVersion
Description copied from interface:VersionStore
Deletes given Version object by removing it from database.- Specified by:
deleteVersion
in interfaceVersionStore
- Parameters:
version
- to be deleted
-
deleteAllVersions
Description copied from interface:VersionStore
Deletes all versions in a given project by removing them from database.- Specified by:
deleteAllVersions
in interfaceVersionStore
- Parameters:
projectId
- of the project in which the versions will be deleted.
-