com.atlassian.jira.plugin
Class OfBizPluginVersionStore

java.lang.Object
  extended by com.atlassian.jira.plugin.OfBizPluginVersionStore
All Implemented Interfaces:
PluginVersionStore

public class OfBizPluginVersionStore
extends java.lang.Object
implements PluginVersionStore

OfBiz implementation of the PluginVersionStore.

Since:
v3.13

Field Summary
static java.lang.String PLUGIN_VERSION_CREATED
           
static java.lang.String PLUGIN_VERSION_ENTITY_NAME
           
static java.lang.String PLUGIN_VERSION_ID
           
static java.lang.String PLUGIN_VERSION_KEY
           
static java.lang.String PLUGIN_VERSION_NAME
           
static java.lang.String PLUGIN_VERSION_VERSION
           
 
Constructor Summary
OfBizPluginVersionStore(OfBizDelegator ofBizDelegator)
           
 
Method Summary
 PluginVersion create(PluginVersion pluginVersion)
          Creates a PluginVersion in the database.
 boolean delete(java.lang.Long pluginVersionId)
          Deletes a plugin version from the datastore.
 java.util.List<PluginVersion> getAll()
          Returns a list of all PluginVersion's.
 PluginVersion getById(java.lang.Long pluginVersionId)
          Gets the PluginVersion specified by the id.
 PluginVersion update(PluginVersion pluginVersion)
          Updates a plugin version in the datastore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_VERSION_ENTITY_NAME

public static final java.lang.String PLUGIN_VERSION_ENTITY_NAME
See Also:
Constant Field Values

PLUGIN_VERSION_ID

public static final java.lang.String PLUGIN_VERSION_ID
See Also:
Constant Field Values

PLUGIN_VERSION_KEY

public static final java.lang.String PLUGIN_VERSION_KEY
See Also:
Constant Field Values

PLUGIN_VERSION_NAME

public static final java.lang.String PLUGIN_VERSION_NAME
See Also:
Constant Field Values

PLUGIN_VERSION_VERSION

public static final java.lang.String PLUGIN_VERSION_VERSION
See Also:
Constant Field Values

PLUGIN_VERSION_CREATED

public static final java.lang.String PLUGIN_VERSION_CREATED
See Also:
Constant Field Values
Constructor Detail

OfBizPluginVersionStore

public OfBizPluginVersionStore(OfBizDelegator ofBizDelegator)
Method Detail

create

public PluginVersion create(PluginVersion pluginVersion)
Description copied from interface: PluginVersionStore
Creates a PluginVersion in the database. The id in the object will be ignored.

Specified by:
create in interface PluginVersionStore
Parameters:
pluginVersion - contains the key, name, and version to be persisted.
Returns:
a PluginVersion with the database id populated.

update

public PluginVersion update(PluginVersion pluginVersion)
Description copied from interface: PluginVersionStore
Updates a plugin version in the datastore.

Specified by:
update in interface PluginVersionStore
Parameters:
pluginVersion - contains the key, name, and version to update. The id will be used to find the record to update.
Returns:
a PluginVersion that represents the updated record.

delete

public boolean delete(java.lang.Long pluginVersionId)
Description copied from interface: PluginVersionStore
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.

Specified by:
delete in interface PluginVersionStore
Parameters:
pluginVersionId - identifies the plugin version record to delete, not null.
Returns:
true if the record was deleted, false otherwise.

getById

public PluginVersion getById(java.lang.Long pluginVersionId)
Description copied from interface: PluginVersionStore
Gets the PluginVersion specified by the id.

Specified by:
getById in interface PluginVersionStore
Parameters:
pluginVersionId - identifies the plugin version record to retrieve.
Returns:
the PluginVersion with the corresponding id or null if the record is not found.

getAll

public java.util.List<PluginVersion> getAll()
Description copied from interface: PluginVersionStore
Returns a list of all PluginVersion's.

Specified by:
getAll in interface PluginVersionStore
Returns:
a list of all PluginVersion's.


Copyright © 2002-2010 Atlassian. All Rights Reserved.