public final class RecordDAO extends Object implements IRecordDAO
Constructor and Description |
---|
RecordDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteRecordByDirectoryId(Integer nDirectoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete list of record by directory id
|
Boolean |
direcytoryRecordListHasWorkflow(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Test if the given directory record list as a worflow
|
Integer |
getDirectoryIdByRecordId(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
|
List<Record> |
loadList(List<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)
Count record who verify the filter
|
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
|
List<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
|
public int insert(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IRecordDAO
record
- instance of the Record object to insertplugin
- the pluginpublic Record load(int nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IRecordDAO
nIdRecord
- The identifier of the id recordplugin
- the pluginpublic Boolean direcytoryRecordListHasWorkflow(int nIdDirectory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
direcytoryRecordListHasWorkflow
in interface IRecordDAO
nIdDirectory
- directory Idplugin
- the pluginpublic List<Record> loadList(List<Integer> listId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadList
in interface IRecordDAO
listId
- list of record idplugin
- the pluginpublic void delete(int nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IRecordDAO
nIdRecord
- The identifier of the recordplugin
- the pluginpublic void deleteRecordByDirectoryId(Integer nDirectoryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRecordByDirectoryId
in interface IRecordDAO
nDirectoryId
- the directory idplugin
- the pluginpublic void store(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IRecordDAO
record
- the record to updateplugin
- the pluginpublic List<Record> selectListByFilter(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectListByFilter
in interface IRecordDAO
filter
- the filterplugin
- the pluginpublic Integer getDirectoryIdByRecordId(Integer nRecordId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getDirectoryIdByRecordId
in interface IRecordDAO
nRecordId
- the record idplugin
- the pluginpublic int selectCountByFilter(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCountByFilter
in interface IRecordDAO
filter
- the filterplugin
- the pluginpublic List<Integer> selectListIdByFilter(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectListIdByFilter
in interface IRecordDAO
filter
- the filterplugin
- the pluginCopyright © 2020 City of Paris. All rights reserved.