fr.paris.lutece.plugins.directory.business
Interface IRecordFieldDAO

All Known Implementing Classes:
RecordFieldDAO

public interface IRecordFieldDAO

interface IRecordFieldDAO


Method Summary
 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 * /!
 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
 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) /!
 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
 

Method Detail

insert

void insert(RecordField recordField,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record field in the table.

Parameters:
recordField - instance of the RecordField object to insert
plugin - the plugin

load

RecordField load(int nIdRecordField,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the record field from the table

Parameters:
nIdRecordField - The identifier of the entry
plugin - the plugin
Returns:
the instance of the Record Field

delete

void delete(int nIdRecordField,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the record field whose identifier is specified in parameter

Parameters:
nIdRecordField - The identifier of the record field
plugin - the plugin

deleteByListRecordId

void deleteByListRecordId(List<Integer> lListRecordId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete list of record fields by list of record id

Parameters:
lListRecordId - list of record id
plugin - the plugin

store

void store(RecordField recordField,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record field in the table

Parameters:
recordField - instance of the record field object to update
plugin - the plugin

selectListByFilter

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

Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of record field

getRecordFieldListByRecordIdList

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

Parameters:
nIdRecord - the Record id
plugin - the plugin
Returns:
list of record

selectSpecificList

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

Parameters:
lEntryId - List entry to load
nIdRecord - the record Id
plugin - the plugin
Returns:
list of record

getCountByFilter

int getCountByFilter(RecordFieldFilter filter,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the number of record field who verify the filter

Parameters:
filter - the filter
plugin - the plugin
Returns:
the number of record field who verify the filter

getMaxNumber

int getMaxNumber(int nIdEntry,
                 int nIdDirectory,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the max number from a given id directory

Parameters:
nIdEntry - the id of the entry
nIdDirectory - the id directory
plugin - Plugin
Returns:
the max number

isNumberOnARecordField

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.
In other words, this method serves the purpose of checking the given number before creating a new record field since the entry type numbering should have unique number.

Parameters:
nIdEntry - the id entry
nIdDirectory - the id directory
nNumber - the number to check
plugin - Plugin
Returns:
true if it is already on, false otherwise

selectValuesList

List<RecordField> selectValuesList(List<Integer> lEntryId,
                                   Integer nIdRecord,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load values of record field

Parameters:
lEntryId - List entry to load
nIdRecord - The record Id
plugin - The plugin
Returns:
list of record

updateValue

void updateValue(String strNewValue,
                 Integer nIdRecordField,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the value of a record field

Parameters:
strNewValue - The new value
nIdRecordField - The id of the record field to update
plugin - The plugin


Copyright © 2013 Mairie de Paris. All Rights Reserved.