Class FormMessageHome


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

      • create

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

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

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

        public static void removeByForm​(int nIdForm)
        Remove the formMessage whose form identifier is specified in parameter
        Parameters:
        nIdForm - The form Id
      • findByPrimaryKey

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

        public static FormMessage findByForm​(int nIdForm)
        Returns an instance of a formMessage for the given form id
        Parameters:
        nIdForm - The form primary key
        Returns:
        an instance of FormMessage