Class FormResponseHome


  • public final class FormResponseHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for FormResponseHome objects
    • Method Detail

      • create

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

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

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

        public static FormResponse findByPrimaryKey​(int nKey)
        Returns an instance of a formResponse whose identifier is specified in parameter
        Parameters:
        nKey - The formResponse primary key
        Returns:
        an instance of FormResponse
      • loadById

        public static FormResponse loadById​(int nKey)
        Returns an instance of a formResponse whose identifier is specified in parameter
        Doesn't load the list of FormResponseStep
        Parameters:
        nKey - The formResponse primary key
        Returns:
        an instance of FormResponse
      • findByPrimaryKeyForIndex

        public static FormResponse findByPrimaryKeyForIndex​(int nKey)
        Returns an instance of a formResponse whose identifier is specified in parameter
        Parameters:
        nKey - The formResponse primary key
        Returns:
        an instance of FormResponse
      • findUncompleteByPrimaryKey

        public static FormResponse findUncompleteByPrimaryKey​(int nKey)
        Returns an instance of a uncomplete (without steps) formResponse whose identifier is specified in parameter
        Parameters:
        nKey - The formResponse primary key
        Returns:
        an instance of FormResponse
      • selectAllFormResponses

        public static java.util.List<FormResponse> selectAllFormResponses()
        Returns all the formResponse objects, completed with the steps
        Returns:
        all the formResponse objects completed with the steps
      • selectAllFormResponsesId

        public static java.util.List<java.lang.Integer> selectAllFormResponsesId()
        Returns all the formResponse ids
        Returns:
        all the formResponse ids
      • selectAllFormResponsesUncompleteByIdForm

        public static java.util.List<FormResponse> selectAllFormResponsesUncompleteByIdForm​(int nIdForm)
        Returns all the formResponse objects, completed with the steps
        Parameters:
        nIdForm - the id form
        Returns:
        all the formResponse objects completed with the steps
      • getFormResponseByGuidAndForm

        public static java.util.List<FormResponse> getFormResponseByGuidAndForm​(java.lang.String strGuid,
                                                                                int nIdForm,
                                                                                boolean fromBackup)
        Load the data of all the formResponse objects and returns them as a list
        Parameters:
        strGuid - The user Guid
        nIdForm - The form primary key
        fromBackup -
        Returns:
        the formResponse objects
      • getFormResponseByAdminAndForm

        public static java.util.List<FormResponse> getFormResponseByAdminAndForm​(java.lang.String strAdmin,
                                                                                 int nIdForm,
                                                                                 boolean fromBackup)
        Load the data of all the formResponse objects and returns them as a list
        Parameters:
        strGuid - The user Guid
        nIdForm - The form primary key
        fromBackup -
        Returns:
        the formResponse objects
      • getFormResponseUncompleteByGuid

        public static java.util.List<FormResponse> getFormResponseUncompleteByGuid​(java.lang.String strGuid)
        Load the data of all the formResponse uncomplete objects and returns them as a list
        Parameters:
        strGuid - The user Guid
        Returns:
        the formResponse objects
      • getFormResponseUncompleteByRole

        public static java.util.List<FormResponse> getFormResponseUncompleteByRole​(java.util.List<java.lang.String> listRole)
        Load the data of all the FormResponse uncomplete objects by front office role and returns them as a list
        Parameters:
        listRole - the given role FO
        Returns:
        The list which contains the data of the FormResponse objects
      • getFormResponseByGuid

        public static java.util.List<FormResponse> getFormResponseByGuid​(java.lang.String strGuid)
        Load the data of all the formResponse objects and returns them as a list
        Parameters:
        strGuid - The user Guid
        Returns:
        the formResponse objects
      • getFormResponseByRole

        public static java.util.List<FormResponse> getFormResponseByRole​(java.util.List<java.lang.String> listRole)
        Load the data of all the FormResponse objects by front office role and returns them as a list
        Parameters:
        strRole - the given role FO
        Returns:
        The list which contains the data of all the FormResponse objects
      • getFormResponseUncompleteByPrimaryKeyList

        public static java.util.List<FormResponse> getFormResponseUncompleteByPrimaryKeyList​(java.util.List<java.lang.Integer> listIdFormResponse)
        Load the data of all formResponses Objects for a given list of formResponses identifiers
        Parameters:
        listIdFormResponse - The list of formResponses identifiers
        Returns:
        the formResponse objects
      • removeByForm

        public static void removeByForm​(int nIdForm)
        Remove all the formResponse linked to a given Form
        Parameters:
        nIdForm - The form Identifier
      • getFormResponseByFilter

        public static java.util.List<FormResponse> getFormResponseByFilter​(FormResponseFilter formResponseFilter)
        Load the formResponse from filter
        Parameters:
        formResponseFilter - the formResponseFilter
        Returns:
        the formResponse objects