fr.paris.lutece.plugins.directory.business
Class RecordDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.business.RecordDAO
All Implemented Interfaces:
IRecordDAO

public final class RecordDAO
extends java.lang.Object
implements IRecordDAO

This class provides Data Access methods for record objects


Constructor Summary
RecordDAO()
           
 
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 record 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 record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordDAO

public RecordDAO()
Method Detail

insert

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

Specified by:
insert in interface IRecordDAO
Parameters:
record - instance of the record object to insert
plugin - the plugin
Returns:
the id of the record

load

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

Specified by:
load in interface IRecordDAO
Parameters:
nIdRecord - The identifier of the record
plugin - the plugin
Returns:
the instance of the record

delete

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

Specified by:
delete in interface IRecordDAO
Parameters:
nIdRecord - The identifier of the record
plugin - the plugin

store

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

Specified by:
store in interface IRecordDAO
Parameters:
record - instance of the record object to update
plugin - the plugin

selectListByFilter

public 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

Specified by:
selectListByFilter in interface IRecordDAO
Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of record

selectCountByFilter

public int selectCountByFilter(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

Specified by:
selectCountByFilter in interface IRecordDAO
Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of record

selectListIdByFilter

public 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

Specified by:
selectListIdByFilter in interface IRecordDAO
Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of id record


Copyright © 2009 Mairie de Paris. All Rights Reserved.