fr.paris.lutece.plugins.pluginwizard.business.model
Interface IBusinessClassDAO

All Known Implementing Classes:
BusinessClassDAO

public interface IBusinessClassDAO

IBusinessClassDAO Interface


Method Summary
 boolean containsAttributes(int nBusinessClassId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 void delete(int nBusinessClassId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteAllClassesByPluginId(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Deletes all the classes attached to aplugin
 void deleteByFeature(int nFeatureId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete business classes by admin feature
 boolean hasAlreadyDescription(int nBusinessId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Checks whether class has a description
 boolean hasAlreadyKey(int nBusinessId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Checks whether class has already a key
 void insert(BusinessClass businessClass, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 boolean keyExists(int nFeatureId, java.lang.String strBusinessClass, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Verifies if key exists for business class
 BusinessClass load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 java.util.Collection<BusinessClass> selectBusinessClassesByFeature(int nFeatureId, int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the business classes chosen by feature
 java.util.Collection<BusinessClass> selectBusinessClassesList(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of business classes for the plugin
 void store(BusinessClass businessClass, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

containsAttributes

boolean containsAttributes(int nBusinessClassId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
nBusinessClassId - The identifier of the business class
plugin - The plugin
Returns:
a boolean value, true if class contains attributes

deleteAllClassesByPluginId

void deleteAllClassesByPluginId(int nIdPlugin,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes all the classes attached to aplugin

Parameters:
nIdPlugin - The id of the plugin
plugin - The plugin

hasAlreadyDescription

boolean hasAlreadyDescription(int nBusinessId,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Checks whether class has a description

Parameters:
nBusinessId - The identifier of the business class
plugin - The plugin
Returns:
a boolean value, true if class already has a description

hasAlreadyKey

boolean hasAlreadyKey(int nBusinessId,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Checks whether class has already a key

Parameters:
nBusinessId - The identifier of the business class
plugin - The plugin
Returns:
a boolean value, true if class already contains a key

insert

void insert(BusinessClass businessClass,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
businessClass - instance of the BusinessClass object to insert
plugin - the Plugin

store

void store(BusinessClass businessClass,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
businessClass - the reference of the BusinessClass
plugin - the Plugin

delete

void delete(int nBusinessClassId,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nBusinessClassId - int identifier of the BusinessClass to delete
plugin - the Plugin

deleteByFeature

void deleteByFeature(int nFeatureId,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete business classes by admin feature

Parameters:
nFeatureId - identifier of the Admin feature
plugin - the Plugin

load

BusinessClass load(int nKey,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
plugin - the Plugin
nKey - The id of the business class
Returns:
The instance of the businessClass

selectBusinessClassesList

java.util.Collection<BusinessClass> selectBusinessClassesList(int nPluginId,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of business classes for the plugin

Parameters:
nPluginId - The id of the plugin
plugin - The Plugin
Returns:
A collection of business classes

selectBusinessClassesByFeature

java.util.Collection<BusinessClass> selectBusinessClassesByFeature(int nFeatureId,
                                                                   int nPluginId,
                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the business classes chosen by feature

Parameters:
nFeatureId - The id of the feature
nPluginId - The id of the plugin
plugin - The Plugin
Returns:
A collection of the business classes

keyExists

boolean keyExists(int nFeatureId,
                  java.lang.String strBusinessClass,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Verifies if key exists for business class

Parameters:
nFeatureId - The feature of the id
strBusinessClass - The business class
plugin - The plugin
Returns:
A boolean value which is to true if the key exists


Copyright © 2011 Mairie de Paris. All Rights Reserved.