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
 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 directory one or more directory record has a workflow
 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 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

direcytoryRecordListHasWorkflow

public java.lang.Boolean direcytoryRecordListHasWorkflow(int nIdDirectory,
                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Test if directory one or more directory record has a workflow

Specified by:
direcytoryRecordListHasWorkflow in interface IRecordDAO
Parameters:
nIdDirectory -
plugin - the plugin
Returns:
true if one or more record has a worflow

loadList

public java.util.List<Record> loadList(java.util.List<java.lang.Integer> listId,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IRecordDAO
Load a list of record

Specified by:
loadList in interface IRecordDAO
Parameters:
listId - list of record id
plugin - the plugin
Returns:
list of 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

deleteRecordByDirectoryId

public void deleteRecordByDirectoryId(java.lang.Integer nDirectoryId,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IRecordDAO
Delete list of record by directory id

Specified by:
deleteRecordByDirectoryId in interface IRecordDAO
Parameters:
nDirectoryId - the directory id
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

getDirectoryIdByRecordId

public java.lang.Integer getDirectoryIdByRecordId(java.lang.Integer nRecordId,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IRecordDAO
Get directory id by record id

Specified by:
getDirectoryIdByRecordId in interface IRecordDAO
Parameters:
nRecordId - the record id
plugin - the plugin
Returns:
directory id

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