com.jamasoftware.contour.dao
Interface PluginEntryDao


public interface PluginEntryDao

Data access object for PluginEntry.


Method Summary
 void deletePluginEntry(PluginEntry plugin)
          Deletes the given plug-in entry.
 java.util.List<PluginEntry> getActivePluginListByTypeAndScope(java.lang.Integer pluginType, java.lang.Integer scope, java.lang.Integer refId)
          Returns a list of active plug-in entries with the given type and scope.
 java.util.List<PluginEntry> getAllPluginListByTypeAndScope(java.lang.Integer pluginType, java.lang.Integer scope, java.lang.Integer refId)
          Returns a list of plug-in entries with the given type and scope.
 PluginEntry getPluginEntry(java.lang.Integer pluginId)
          Fetches the plug-in entry with the given ID.
 void savePluginEntry(PluginEntry plugin)
          Saves or updates the given PluginEntry instance.
 

Method Detail

getPluginEntry

PluginEntry getPluginEntry(java.lang.Integer pluginId)
Fetches the plug-in entry with the given ID.

Parameters:
pluginId - the given ID
Returns:
the the plug-in entry or null if not found.

deletePluginEntry

void deletePluginEntry(PluginEntry plugin)
Deletes the given plug-in entry.

Parameters:
plugin - the plug-in entry to be deleted

savePluginEntry

void savePluginEntry(PluginEntry plugin)
Saves or updates the given PluginEntry instance.

Parameters:
plugin - the plug-in entry to be saved.

getActivePluginListByTypeAndScope

java.util.List<PluginEntry> getActivePluginListByTypeAndScope(java.lang.Integer pluginType,
                                                              java.lang.Integer scope,
                                                              java.lang.Integer refId)
Returns a list of active plug-in entries with the given type and scope.

Parameters:
pluginType - the plug-in type. A null value of 0 means any type.
scope - the scope ID
refId - the reference ID
Returns:
a list of matched plug-in entries or empty list if no matches are found.

getAllPluginListByTypeAndScope

java.util.List<PluginEntry> getAllPluginListByTypeAndScope(java.lang.Integer pluginType,
                                                           java.lang.Integer scope,
                                                           java.lang.Integer refId)
Returns a list of plug-in entries with the given type and scope.

Parameters:
pluginType - the plug-in type. A null value of 0 means any type.
scope - the scope ID
refId - the reference ID
Returns:
a list of matched plug-in entries or empty list if no matches are found.
Since:
3.1.3


Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.