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

All Known Implementing Classes:
AttributeDAO

public interface IAttributeDAO

IAttributeDAO Interface


Method Summary
 void delete(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteAllAttributesByPluginId(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Deletes all the attributes related to a plugin
 java.lang.String getTypeName(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Fetches the type name
 void insert(int nBusinessClassId, Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Attribute load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 fr.paris.lutece.util.ReferenceList selectAttributeListCombo(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the attributes type
 java.util.List<Attribute> selectAttributesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the attribute objects and returns them as a List
 java.lang.String selectClassDescription(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Selects the class description of the business class
 java.lang.String selectPrimaryKey(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Selects the primary key
 void store(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Stores a business class
 

Method Detail

deleteAllAttributesByPluginId

void deleteAllAttributesByPluginId(int nIdPlugin,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes all the attributes related to a plugin

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

getTypeName

java.lang.String getTypeName(int nIdAttribute,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Fetches the type name

Parameters:
nIdAttribute - int identifier of the Attribute
plugin - the Plugin
Returns:
The type name

selectClassDescription

java.lang.String selectClassDescription(int nPluginId,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects the class description of the business class

Parameters:
nPluginId - The id of the plugin
plugin - The plugin
Returns:
The class description

selectPrimaryKey

java.lang.String selectPrimaryKey(int nPluginId,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects the primary key

Parameters:
nPluginId - The id of the plugin
plugin - The plugin
Returns:
The primary key

store

void store(Attribute attribute,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Stores a business class

Parameters:
attribute - The attribute object
plugin - The plugin

insert

void insert(int nBusinessClassId,
            Attribute attribute,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
attribute - instance of the Attribute object to insert
nBusinessClassId - The business class identifier
plugin - the Plugin

delete

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

Parameters:
nIdAttribute - int identifier of the Attribute to delete
plugin - the Plugin

load

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

Parameters:
nKey - The id of the attribute
plugin - the Plugin
Returns:
The instance of the attribute

selectAttributesList

java.util.List<Attribute> selectAttributesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the attribute objects and returns them as a List

Parameters:
plugin - the Plugin
Returns:
The List which contains the data of all the attribute objects

selectAttributeListCombo

fr.paris.lutece.util.ReferenceList selectAttributeListCombo(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the attributes type

Parameters:
plugin - the Plugin
Returns:
The List which contains the attribute type list


Copyright © 2011 Mairie de Paris. All Rights Reserved.