public final class RecordFieldDAO extends Object implements IRecordFieldDAO
Constructor and Description |
---|
RecordFieldDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdRecordField,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the record field whose identifier is specified in parameter
|
void |
deleteByListRecordId(List<Integer> lListRecordId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete list of record fields by list of record id
|
int |
getCountByFilter(RecordFieldFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the number of record field who verify the filter
|
int |
getMaxNumber(int nIdEntry,
int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the max number from a given id directory
|
List<RecordField> |
getRecordFieldListByRecordIdList(List<Integer> lIdRecordList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load full record field data (except binary file data) of given list of Record id * /!\ include record data
|
void |
insert(RecordField recordField,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record field in the table.
|
boolean |
isNumberOnARecordField(int nIdEntry,
int nIdDirectory,
int nNumber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the given number is already on a record field or not.
|
RecordField |
load(int nIdRecordField,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the record field from the table
|
RecordField |
loadByFile(int nIdRecordField,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the record field from the table
|
List<RecordField> |
selectListByFilter(RecordFieldFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the record field who verify the filter and returns them in a list
|
List<RecordField> |
selectSpecificList(List<Integer> lEntryId,
Integer nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load full record field data (except binary file data) /!\ record data is NOT load, only the id
|
List<RecordField> |
selectValuesList(List<Integer> lEntryId,
Integer nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load values of record field
|
void |
store(RecordField recordField,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record field in the table
|
void |
updateValue(String strNewValue,
Integer nIdRecordField,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the value of a record field
|
public void insert(RecordField recordField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IRecordFieldDAO
recordField
- instance of the RecordField object to insertplugin
- the pluginpublic RecordField load(int nIdRecordField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IRecordFieldDAO
nIdRecordField
- The identifier of the entryplugin
- the pluginpublic RecordField loadByFile(int nIdRecordField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadByFile
in interface IRecordFieldDAO
nIdRecordField
- the filterplugin
- the pluginpublic void delete(int nIdRecordField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IRecordFieldDAO
nIdRecordField
- The identifier of the record fieldplugin
- the pluginpublic void deleteByListRecordId(List<Integer> lListRecordId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByListRecordId
in interface IRecordFieldDAO
lListRecordId
- list of record idplugin
- the pluginpublic void store(RecordField recordField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IRecordFieldDAO
recordField
- instance of the record field object to updateplugin
- the pluginpublic List<RecordField> getRecordFieldListByRecordIdList(List<Integer> lIdRecordList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getRecordFieldListByRecordIdList
in interface IRecordFieldDAO
lIdRecordList
- the list of record idplugin
- the pluginpublic List<RecordField> selectSpecificList(List<Integer> lEntryId, Integer nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSpecificList
in interface IRecordFieldDAO
lEntryId
- List entry to loadnIdRecord
- the record Idplugin
- the pluginpublic List<RecordField> selectListByFilter(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectListByFilter
in interface IRecordFieldDAO
filter
- the filterplugin
- the pluginpublic int getCountByFilter(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getCountByFilter
in interface IRecordFieldDAO
filter
- the filterplugin
- the pluginpublic int getMaxNumber(int nIdEntry, int nIdDirectory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMaxNumber
in interface IRecordFieldDAO
nIdEntry
- the id of the entrynIdDirectory
- the id directoryplugin
- Plugin
public boolean isNumberOnARecordField(int nIdEntry, int nIdDirectory, int nNumber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
isNumberOnARecordField
in interface IRecordFieldDAO
nIdEntry
- the id entrynIdDirectory
- the id directorynNumber
- the number to checkplugin
- Plugin
public List<RecordField> selectValuesList(List<Integer> lEntryId, Integer nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectValuesList
in interface IRecordFieldDAO
lEntryId
- List entry to loadnIdRecord
- The record Idplugin
- The pluginpublic void updateValue(String strNewValue, Integer nIdRecordField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateValue
in interface IRecordFieldDAO
strNewValue
- The new valuenIdRecordField
- The id of the record field to updateplugin
- The pluginCopyright © 2020 City of Paris. All rights reserved.