public final class ResponseHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
create(Response response)
Creation of an instance of response
|
static Response |
findByPrimaryKey(int nKey)
Returns an instance of a Response whose identifier is specified in
parameter
|
static int |
findMaxNumber(int nIdEntry,
int nIdResource,
String strResourceType)
Get the max number from a given id resource
|
static List<Response> |
getResponseList(ResponseFilter filter)
Load the data of all the response who verify the filter and returns them
in a list
|
static List<StatisticEntrySubmit> |
getStatisticByIdEntry(int nIdEntry)
return a list of statistic on the entry
|
static void |
remove(int nIdResponse)
Remove a response from its id
|
static void |
update(Response response)
Update of the response which is specified in parameter
|
public static void create(Response response)
response - The instance of the response which contains the
informations to storepublic static void update(Response response)
response - The instance of the Response which contains the
informations to updatepublic static void remove(int nIdResponse)
nIdResponse - The id of the responsepublic static Response findByPrimaryKey(int nKey)
nKey - The entry primary keypublic static List<Response> getResponseList(ResponseFilter filter)
filter - the filterpublic static List<StatisticEntrySubmit> getStatisticByIdEntry(int nIdEntry)
nIdEntry - the id of the entrypublic static int findMaxNumber(int nIdEntry,
int nIdResource,
String strResourceType)
nIdEntry - the id of the entrynIdResource - the id resourcestrResourceType - The resource typeCopyright © 2016 City of Paris. All rights reserved.