Class FormMessageHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FormMessage create​(FormMessage formMessage)
      Create an instance of the formMessage class
      static FormMessage findByForm​(int nIdForm)
      Returns an instance of a formMessage for the given form id
      static FormMessage findByPrimaryKey​(int nKey)
      Returns an instance of a formMessage whose identifier is specified in parameter
      static void remove​(int nKey)
      Remove the formMessage whose identifier is specified in parameter
      static void removeByForm​(int nIdForm)
      Remove the formMessage whose form identifier is specified in parameter
      static FormMessage update​(FormMessage formMessage)
      Update of the formMessage which is specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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