fr.paris.lutece.plugins.directory.business
Interface IRecordDAO

All Known Implementing Classes:
RecordDAO

public interface IRecordDAO

Interface IRecordDAO


Method Summary
 void delete(int nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 int insert(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Record load(int nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the record from the table
 int selectCountByFilter(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the formResponse who verify the filter and returns them in a list
 java.util.List<Record> selectListByFilter(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the record who verify the filter and returns them in a list
 java.util.List<java.lang.Integer> selectListIdByFilter(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the record id who verify the filter and returns them in a list
 void store(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the the record in the table
 

Method Detail

insert

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

Parameters:
record - instance of the Record object to insert
plugin - the plugin
Returns:
the key of the new record

load

Record load(int nIdRecord,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the record from the table

Parameters:
nIdRecord - The identifier of the id record
plugin - the plugin
Returns:
the instance of the Record

delete

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

Parameters:
nIdRecord - The identifier of the record
plugin - the plugin

store

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

Parameters:
record - the record to update
plugin - the plugin

selectListByFilter

java.util.List<Record> selectListByFilter(RecordFieldFilter filter,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the record who verify the filter and returns them in a list

Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of record

selectCountByFilter

int selectCountByFilter(RecordFieldFilter filter,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the formResponse who verify the filter and returns them in a list

Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of record

selectListIdByFilter

java.util.List<java.lang.Integer> selectListIdByFilter(RecordFieldFilter filter,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the record id who verify the filter and returns them in a list

Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of record id


Copyright © 2009 Mairie de Paris. All Rights Reserved.