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)
           
 java.lang.String getTypeName(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 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)
           
 java.lang.String selectPrimaryKey(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 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)

getTypeName

java.lang.String getTypeName(int nIdAttribute,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
nIdAttribute - int identifier of the Attribute
plugin - plugin the Plugin
Returns:

selectClassDescription

java.lang.String selectClassDescription(int nPluginId,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)

selectPrimaryKey

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

store

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

Parameters:
nBusinessClassId - The identifier of the business class
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 inssert
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:
strId - The identifier 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 © 2009 Mairie de Paris. All Rights Reserved.