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
 String getTypeName(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Fetches the type name
 void insert(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
 String selectClassDescription(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Selects the class description of the business class
 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

getTypeName

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

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

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(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
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

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 © 2013 Mairie de Paris. All Rights Reserved.