Class ResponseHome
java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.ResponseHome
This class provides instances management methods (create, find, ...) for Response objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCreation of an instance of responsestatic ResponsefindByPrimaryKey(int nKey) Returns an instance of a Response whose identifier is specified in parameterstatic intfindMaxNumber(int nIdEntry) Get the max number from a given id resourcegetResponseList(ResponseFilter filter) Load the data of all the response who verify the filter and returns them in a liststatic List<StatisticEntrySubmit>getStatisticByIdEntry(int nIdEntry) return a list of statistic on the entrystatic voidremove(int nIdResponse) Remove a response from its idstatic voidUpdate of the response which is specified in parameterstatic voidupdateFileKey(int nIdResponse, String strFileKey, String strFileOrigin)
-
Method Details
-
create
Creation of an instance of response- Parameters:
response- The instance of the response which contains the informations to store
-
update
Update of the response which is specified in parameter- Parameters:
response- The instance of the Response which contains the informations to update
-
updateFileKey
-
remove
public static void remove(int nIdResponse) Remove a response from its id- Parameters:
nIdResponse- The id of the response
-
findByPrimaryKey
Returns an instance of a Response whose identifier is specified in parameter- Parameters:
nKey- The entry primary key- Returns:
- an instance of Response
-
getResponseList
Load the data of all the response who verify the filter and returns them in a list- Parameters:
filter- the filter- Returns:
- the list of response
-
getStatisticByIdEntry
return a list of statistic on the entry- Parameters:
nIdEntry- the id of the entry- Returns:
- return a list of statistic on the entry
-
findMaxNumber
public static int findMaxNumber(int nIdEntry) Get the max number from a given id resource- Parameters:
nIdEntry- the id of the entry- Returns:
- the max number
-