Class DeviceRegistrationDAO
java.lang.Object
fr.paris.lutece.plugins.deviceregistration.business.AbstractFilterDao
fr.paris.lutece.plugins.deviceregistration.business.deviceregistration.DeviceRegistrationDAO
- All Implemented Interfaces:
IDeviceRegistrationDAO
public final class DeviceRegistrationDAO
extends AbstractFilterDao
implements IDeviceRegistrationDAO
This class provides Data Access methods for DeviceRegistration objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindListByCriteria(Map<String, String> criteria, fr.paris.lutece.portal.service.plugin.Plugin plugin) voidinsert(DeviceRegistration deviceRegistration, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadByRegistrationToken(String registrationToken, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectDeviceRegistrationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the deviceRegistration objects and returns them as a listselectDeviceRegistrationsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a listfr.paris.lutece.util.ReferenceListselectDeviceRegistrationsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the deviceRegistration objects and returns them as a referenceListselectIdDeviceRegistrationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin, Map<String, String> mapFilterCriteria, String strColumnToOrder, String strSortMode) Load the id of all the deviceRegistration objects and returns them as a listvoidstore(DeviceRegistration deviceRegistration, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
DeviceRegistrationDAO
public DeviceRegistrationDAO()Constructor
-
-
Method Details
-
insert
public void insert(DeviceRegistration deviceRegistration, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Specified by:
insertin interfaceIDeviceRegistrationDAO- Parameters:
deviceRegistration- instance of the DeviceRegistration object to insertplugin- the Plugin
-
load
public Optional<DeviceRegistration> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table- Specified by:
loadin interfaceIDeviceRegistrationDAO- Parameters:
nKey- The identifier of the deviceRegistrationplugin- the Plugin- Returns:
- The instance of the deviceRegistration
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIDeviceRegistrationDAO- Parameters:
nKey- The identifier of the DeviceRegistration to deleteplugin- the Plugin
-
loadByRegistrationToken
public Optional<DeviceRegistration> loadByRegistrationToken(String registrationToken, fr.paris.lutece.portal.service.plugin.Plugin plugin) - Specified by:
loadByRegistrationTokenin interfaceIDeviceRegistrationDAO
-
store
public void store(DeviceRegistration deviceRegistration, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table- Specified by:
storein interfaceIDeviceRegistrationDAO- Parameters:
deviceRegistration- the reference of the DeviceRegistrationplugin- the Plugin
-
selectDeviceRegistrationsList
public List<DeviceRegistration> selectDeviceRegistrationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the deviceRegistration objects and returns them as a list- Specified by:
selectDeviceRegistrationsListin interfaceIDeviceRegistrationDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the deviceRegistration objects
-
findListByCriteria
public List<DeviceRegistration> findListByCriteria(Map<String, String> criteria, fr.paris.lutece.portal.service.plugin.Plugin plugin) - Specified by:
findListByCriteriain interfaceIDeviceRegistrationDAO
-
selectIdDeviceRegistrationsList
public List<Integer> selectIdDeviceRegistrationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin, Map<String, String> mapFilterCriteria, String strColumnToOrder, String strSortMode) Load the id of all the deviceRegistration objects and returns them as a list- Specified by:
selectIdDeviceRegistrationsListin interfaceIDeviceRegistrationDAO- Parameters:
plugin- the PluginmapFilterCriteria- contains search bar names/values inputsstrColumnToOrder- contains the column name to use for orderBy statement in case of sorting request (must be null)strSortMode- contains the sortMode in case of sorting request : ASC or DESC (must be null)- Returns:
- The list which contains the id of all the project objects fitting with the seach criteria.
-
selectDeviceRegistrationsReferenceList
public fr.paris.lutece.util.ReferenceList selectDeviceRegistrationsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the deviceRegistration objects and returns them as a referenceList- Specified by:
selectDeviceRegistrationsReferenceListin interfaceIDeviceRegistrationDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the deviceRegistration objects
-
selectDeviceRegistrationsListByIds
public List<DeviceRegistration> selectDeviceRegistrationsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a list- Specified by:
selectDeviceRegistrationsListByIdsin interfaceIDeviceRegistrationDAO- Parameters:
plugin- the PluginlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-