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 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:
      insert in interface IDeviceRegistrationDAO
      Parameters:
      deviceRegistration - instance of the DeviceRegistration object to insert
      plugin - 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:
      load in interface IDeviceRegistrationDAO
      Parameters:
      nKey - The identifier of the deviceRegistration
      plugin - 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:
      delete in interface IDeviceRegistrationDAO
      Parameters:
      nKey - The identifier of the DeviceRegistration to delete
      plugin - the Plugin
    • loadByRegistrationToken

      public Optional<DeviceRegistration> loadByRegistrationToken(String registrationToken, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Specified by:
      loadByRegistrationToken in interface IDeviceRegistrationDAO
    • store

      public void store(DeviceRegistration deviceRegistration, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IDeviceRegistrationDAO
      Parameters:
      deviceRegistration - the reference of the DeviceRegistration
      plugin - 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:
      selectDeviceRegistrationsList in interface IDeviceRegistrationDAO
      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:
      findListByCriteria in interface IDeviceRegistrationDAO
    • 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:
      selectIdDeviceRegistrationsList in interface IDeviceRegistrationDAO
      Parameters:
      plugin - the Plugin
      mapFilterCriteria - contains search bar names/values inputs
      strColumnToOrder - 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:
      selectDeviceRegistrationsReferenceList in interface IDeviceRegistrationDAO
      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:
      selectDeviceRegistrationsListByIds in interface IDeviceRegistrationDAO
      Parameters:
      plugin - the Plugin
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects