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
 void deleteRecordByDirectoryId(java.lang.Integer nDirectoryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete list of record by directory id
 java.lang.Boolean direcytoryRecordListHasWorkflow(int nIdDirectory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Test if the given directory record list as a worflow
 java.lang.Integer getDirectoryIdByRecordId(java.lang.Integer nRecordId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get directory id by record id
 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
 java.util.List<Record> loadList(java.util.List<java.lang.Integer> listId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load a list of record
 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

direcytoryRecordListHasWorkflow

java.lang.Boolean direcytoryRecordListHasWorkflow(int nIdDirectory,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Test if the given directory record list as a worflow

Parameters:
nIdDirectory - directory Id
plugin - the plugin
Returns:
true if has at least one

loadList

java.util.List<Record> loadList(java.util.List<java.lang.Integer> listId,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a list of record

Parameters:
listId - list of record id
plugin - the plugin
Returns:
list of 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

deleteRecordByDirectoryId

void deleteRecordByDirectoryId(java.lang.Integer nDirectoryId,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete list of record by directory id

Parameters:
nDirectoryId - the directory id
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

getDirectoryIdByRecordId

java.lang.Integer getDirectoryIdByRecordId(java.lang.Integer nRecordId,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get directory id by record id

Parameters:
nRecordId - the record id
plugin - the plugin
Returns:
directory id


Copyright © 2009 Mairie de Paris. All Rights Reserved.