java.lang.Object
fr.paris.lutece.plugins.deviceregistration.business.deviceregistration.DeviceRegistrationHome

public final class DeviceRegistrationHome extends Object
This class provides instances management methods (create, find, ...) for DeviceRegistration objects
  • Method Details

    • create

      public static DeviceRegistration create(DeviceRegistration deviceRegistration)
      Create an instance of the deviceRegistration class
      Parameters:
      deviceRegistration - The instance of the DeviceRegistration which contains the informations to store
      Returns:
      The instance of deviceRegistration which has been created with its primary key.
    • loadByRegistrationToken

      public static Optional<DeviceRegistration> loadByRegistrationToken(String registrationToken)
      Get a specific instance of DeviceRegistration
      Parameters:
      registrationToken - token of the instance we're looking for
      Returns:
      an Optional of the object
    • update

      public static DeviceRegistration update(DeviceRegistration deviceRegistration)
      Update of the deviceRegistration which is specified in parameter
      Parameters:
      deviceRegistration - The instance of the DeviceRegistration which contains the data to store
      Returns:
      The instance of the deviceRegistration which has been updated
    • remove

      public static void remove(int nKey)
      Remove the deviceRegistration whose identifier is specified in parameter
      Parameters:
      nKey - The deviceRegistration Id
    • findByPrimaryKey

      public static Optional<DeviceRegistration> findByPrimaryKey(int nKey)
      Returns an instance of a deviceRegistration whose identifier is specified in parameter
      Parameters:
      nKey - The deviceRegistration primary key
      Returns:
      an instance of DeviceRegistration
    • findListByCriteria

      public static List<DeviceRegistration> findListByCriteria(Map<String,String> criteria)
      Return a list of deviceRegistration
      Parameters:
      criteria - contains search inputs
      Returns:
      list of DeviceRegistration
    • getDeviceRegistrationsList

      public static List<DeviceRegistration> getDeviceRegistrationsList()
      Load the data of all the deviceRegistration objects and returns them as a list
      Returns:
      the list which contains the data of all the deviceRegistration objects
    • getIdDeviceRegistrationsList

      public static List<Integer> getIdDeviceRegistrationsList(Map<String,String> mapFilterCriteria, String strColumnToOrder, String strSortMode)
      Load the id of all the deviceRegistration objects and returns them as a list
      Parameters:
      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
    • getDeviceRegistrationsListByIds

      public static List<DeviceRegistration> getDeviceRegistrationsListByIds(List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Parameters:
      listIds - liste of ids
      Returns:
      the list which contains the data of all the avant objects