java.lang.Object
fr.paris.lutece.plugins.appointment.business.rule.FormRuleHome

public final class FormRuleHome extends Object
This class provides instances management methods for Form Rule objects
Author:
Laurent Payen
  • Method Details

    • create

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

      public static FormRule update(FormRule formRule)
      Update of the FormRule which is specified in parameter
      Parameters:
      formRule - The instance of the FormRule which contains the data to store
      Returns:
      The instance of the FormRule which has been updated
    • delete

      public static void delete(int nKey)
      Delete the FormRule whose identifier is specified in parameter
      Parameters:
      nKey - The FormRule Id
    • deleteByIdFom

      public static void deleteByIdFom(int nIdForm)
      Delete the FormRule whose id form is specified in parameter
      Parameters:
      nIdForm - The Form Id
    • findByPrimaryKey

      public static FormRule findByPrimaryKey(int nKey)
      Returns an instance of the FormRule whose identifier is specified in parameter
      Parameters:
      nKey - The FormRule primary key
      Returns:
      an instance of the FormRule
    • findByIdForm

      public static FormRule findByIdForm(int nIdForm)
      Returns the form rule of a form
      Parameters:
      nIdForm - the form id
      Returns:
      the form rule