Package com.atlassian.jira.plugin
Class OfBizPluginVersionStore
java.lang.Object
com.atlassian.jira.plugin.OfBizPluginVersionStore
- All Implemented Interfaces:
PluginVersionStore
OfBiz implementation of the
PluginVersionStore.- Since:
- v3.13
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(PluginVersion pluginVersion) Creates aPluginVersionin the database.booleanDeletes a plugin version from the datastore.voiddeleteByKey(String pluginKey) Deletes anyPluginVersions for the plugin with the given key.getAll()Returns a list of allPluginVersion's.Gets thePluginVersionspecified by the id.longsave(PluginVersion pluginVersion) Persists the givenPluginVersion, performing an insert or update according to whether a record for this plugin key already exists.update(PluginVersion pluginVersion) Updates a plugin version in the datastore.
-
Field Details
-
PLUGIN_VERSION_ENTITY_NAME
- See Also:
-
PLUGIN_VERSION_ID
- See Also:
-
PLUGIN_VERSION_KEY
- See Also:
-
PLUGIN_VERSION_NAME
- See Also:
-
PLUGIN_VERSION_VERSION
- See Also:
-
PLUGIN_VERSION_CREATED
- See Also:
-
-
Constructor Details
-
OfBizPluginVersionStore
-
-
Method Details
-
create
Description copied from interface:PluginVersionStoreCreates aPluginVersionin the database. The id in the object will be ignored.- Specified by:
createin interfacePluginVersionStore- Parameters:
pluginVersion- contains the key, name, and version to be persisted.- Returns:
- a
PluginVersionwith the database id populated.
-
update
Description copied from interface:PluginVersionStoreUpdates a plugin version in the datastore.- Specified by:
updatein interfacePluginVersionStore- Parameters:
pluginVersion- contains the key, name, and version to update. The id will be used to find the record to update.- Returns:
- a
PluginVersionthat represents the updated record.
-
delete
Description copied from interface:PluginVersionStoreDeletes 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.- Specified by:
deletein interfacePluginVersionStore- Parameters:
pluginVersionId- identifies the plugin version record to delete, not null.- Returns:
- true if the record was deleted, false otherwise.
-
getById
Description copied from interface:PluginVersionStoreGets thePluginVersionspecified by the id.- Specified by:
getByIdin interfacePluginVersionStore- Parameters:
pluginVersionId- identifies the plugin version record to retrieve.- Returns:
- the
PluginVersionwith the corresponding id or null if the record is not found.
-
getAll
Description copied from interface:PluginVersionStoreReturns a list of allPluginVersion's.- Specified by:
getAllin interfacePluginVersionStore- Returns:
- a list of all
PluginVersion's.
-
deleteByKey
Description copied from interface:PluginVersionStoreDeletes anyPluginVersions for the plugin with the given key.- Specified by:
deleteByKeyin interfacePluginVersionStore- Parameters:
pluginKey- the key for which to delete the version(s) (required)
-
save
Description copied from interface:PluginVersionStorePersists the givenPluginVersion, performing an insert or update according to whether a record for this plugin key already exists.- Specified by:
savein interfacePluginVersionStore- Parameters:
pluginVersion- the plugin version to save (required)- Returns:
- the id of the saved row
-