public class

OfBizPluginVersionStore

extends Object
implements PluginVersionStore
java.lang.Object
   ↳ com.atlassian.jira.plugin.OfBizPluginVersionStore

Class Overview

OfBiz implementation of the PluginVersionStore.

Summary

Constants
String PLUGIN_VERSION_CREATED
String PLUGIN_VERSION_ENTITY_NAME
String PLUGIN_VERSION_ID
String PLUGIN_VERSION_KEY
String PLUGIN_VERSION_NAME
String PLUGIN_VERSION_VERSION
Public Constructors
OfBizPluginVersionStore(OfBizDelegator ofBizDelegator)
Public Methods
PluginVersion create(PluginVersion pluginVersion)
Creates a PluginVersion in the database.
boolean delete(Long pluginVersionId)
Deletes a plugin version from the datastore.
void deleteByKey(String pluginKey)
Deletes any PluginVersions for the plugin with the given key.
List<PluginVersion> getAll()
Returns a list of all PluginVersion's.
@Nullable PluginVersion getById(Long pluginVersionId)
Gets the PluginVersion specified by the id.
long save(PluginVersion pluginVersion)
Persists the given PluginVersion, performing an insert or update according to whether a record for this plugin key already exists.
PluginVersion update(PluginVersion pluginVersion)
Updates a plugin version in the datastore.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.PluginVersionStore

Constants

public static final String PLUGIN_VERSION_CREATED

Constant Value: "created"

public static final String PLUGIN_VERSION_ENTITY_NAME

Constant Value: "PluginVersion"

public static final String PLUGIN_VERSION_ID

Constant Value: "id"

public static final String PLUGIN_VERSION_KEY

Constant Value: "key"

public static final String PLUGIN_VERSION_NAME

Constant Value: "name"

public static final String PLUGIN_VERSION_VERSION

Constant Value: "version"

Public Constructors

public OfBizPluginVersionStore (OfBizDelegator ofBizDelegator)

Public Methods

public PluginVersion create (PluginVersion pluginVersion)

Creates a PluginVersion in the database. The id in the object will be ignored.

Parameters
pluginVersion contains the key, name, and version to be persisted.
Returns

public boolean delete (Long pluginVersionId)

Deletes a plugin version from the datastore. If the provided id does not resolve to an existing record then this method will return false and no records will be deleted.

Parameters
pluginVersionId identifies the plugin version record to delete, not null.
Returns
  • true if the record was deleted, false otherwise.

public void deleteByKey (String pluginKey)

Deletes any PluginVersions for the plugin with the given key.

Parameters
pluginKey the key for which to delete the version(s) (required)

public List<PluginVersion> getAll ()

Returns a list of all PluginVersion's.

Returns

@Nullable public PluginVersion getById (Long pluginVersionId)

Gets the PluginVersion specified by the id.

Parameters
pluginVersionId identifies the plugin version record to retrieve.
Returns
  • the PluginVersion with the corresponding id or null if the record is not found.

public long save (PluginVersion pluginVersion)

Persists the given PluginVersion, performing an insert or update according to whether a record for this plugin key already exists.

Parameters
pluginVersion the plugin version to save (required)
Returns
  • the id of the saved row

public PluginVersion update (PluginVersion pluginVersion)

Updates a plugin version in the datastore.

Parameters
pluginVersion contains the key, name, and version to update. The id will be used to find the record to update.
Returns