public class BootstrapPluginVersionStore extends Object implements PluginVersionStore
PluginVersionStore.| Constructor and Description |
|---|
BootstrapPluginVersionStore() |
| Modifier and Type | Method and Description |
|---|---|
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. |
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.
|
public PluginVersion create(PluginVersion pluginVersion)
PluginVersionStorePluginVersion in the database. The id in the object will
be ignored.create in interface PluginVersionStorepluginVersion - contains the key, name, and version to be persisted.PluginVersion with the database id populated.public PluginVersion update(PluginVersion pluginVersion)
PluginVersionStoreupdate in interface PluginVersionStorepluginVersion - contains the key, name, and version to update. The id will be used to find the record to
update.PluginVersion that represents the updated record.public boolean delete(Long pluginVersionId)
PluginVersionStoredelete in interface PluginVersionStorepluginVersionId - identifies the plugin version record to delete, not null.public PluginVersion getById(Long pluginVersionId)
PluginVersionStorePluginVersion specified by the id.getById in interface PluginVersionStorepluginVersionId - identifies the plugin version record to retrieve.PluginVersion with the corresponding id or null if the record
is not found.public List<PluginVersion> getAll()
PluginVersionStorePluginVersion's.getAll in interface PluginVersionStorePluginVersion's.public void deleteByKey(String pluginKey)
PluginVersionStorePluginVersions for the plugin with the given key.deleteByKey in interface PluginVersionStorepluginKey - the key for which to delete the version(s) (required)public long save(PluginVersion pluginVersion)
PluginVersionStorePluginVersion, performing an insert or update according to whether a record for this
plugin key already exists.save in interface PluginVersionStorepluginVersion - the plugin version to save (required)Copyright © 2002-2019 Atlassian. All Rights Reserved.