Class DeviceRegistrationHome
java.lang.Object
fr.paris.lutece.plugins.deviceregistration.business.deviceregistration.DeviceRegistrationHome
This class provides instances management methods (create, find, ...) for DeviceRegistration objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceRegistrationcreate(DeviceRegistration deviceRegistration) Create an instance of the deviceRegistration classstatic Optional<DeviceRegistration>findByPrimaryKey(int nKey) Returns an instance of a deviceRegistration whose identifier is specified in parameterstatic List<DeviceRegistration>findListByCriteria(Map<String, String> criteria) Return a list of deviceRegistrationstatic List<DeviceRegistration>Load the data of all the deviceRegistration objects and returns them as a liststatic List<DeviceRegistration>getDeviceRegistrationsListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a listgetIdDeviceRegistrationsList(Map<String, String> mapFilterCriteria, String strColumnToOrder, String strSortMode) Load the id of all the deviceRegistration objects and returns them as a liststatic Optional<DeviceRegistration>loadByRegistrationToken(String registrationToken) Get a specific instance of DeviceRegistrationstatic voidremove(int nKey) Remove the deviceRegistration whose identifier is specified in parameterstatic DeviceRegistrationupdate(DeviceRegistration deviceRegistration) Update of the deviceRegistration which is specified in parameter
-
Method Details
-
create
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
Get a specific instance of DeviceRegistration- Parameters:
registrationToken- token of the instance we're looking for- Returns:
- an Optional of the object
-
update
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
Returns an instance of a deviceRegistration whose identifier is specified in parameter- Parameters:
nKey- The deviceRegistration primary key- Returns:
- an instance of DeviceRegistration
-
findListByCriteria
Return a list of deviceRegistration- Parameters:
criteria- contains search inputs- Returns:
- list of 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 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
-
getDeviceRegistrationsListByIds
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
-