fr.paris.lutece.plugins.genericattributes.business
Class ResponseHome

java.lang.Object
  extended by fr.paris.lutece.plugins.genericattributes.business.ResponseHome

public final class ResponseHome
extends Object

This class provides instances management methods (create, find, ...) for Response objects


Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(Response response)
Creation of an instance of response

Parameters:
response - The instance of the response which contains the informations to store

update

public static void update(Response response)
Update of the response which is specified in parameter

Parameters:
response - The instance of the Response which contains the informations to update

remove

public static void remove(int nIdResponse)
Remove a response from its id

Parameters:
nIdResponse - The id of the response

findByPrimaryKey

public static Response findByPrimaryKey(int nKey)
Returns an instance of a Response whose identifier is specified in parameter

Parameters:
nKey - The entry primary key
Returns:
an instance of Response

getResponseList

public static List<Response> getResponseList(ResponseFilter filter)
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

public static List<StatisticEntrySubmit> getStatisticByIdEntry(int nIdEntry)
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,
                                int nIdResource,
                                String strResourceType)
Get the max number from a given id resource

Parameters:
nIdEntry - the id of the entry
nIdResource - the id resource
strResourceType - The resource type
Returns:
the max number


Copyright © 2014 Mairie de Paris. All Rights Reserved.