Class PanelHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Panel create​(Panel panel)
      Create an instance of the panel class
      static Panel findByCode​(java.lang.String strCode)
      Returns an instance of a panel whose identifier is specified in parameter
      static Panel findByPrimaryKey​(int nKey)
      Returns an instance of a panel whose identifier is specified in parameter
      static Panel getDefaultPanel()
      Returns the default panel
      static java.util.List<java.lang.Integer> getIdPanelsList()
      Load the id of all the panel objects and returns them as a list
      static java.util.List<Panel> getPanelsList()
      Load the data of all the panel objects and returns them as a list
      static fr.paris.lutece.util.ReferenceList getPanelsReferenceList()
      Load the data of all the panel objects and returns them as a referenceList
      static void remove​(int nKey)
      Remove the panel whose identifier is specified in parameter
      static Panel update​(Panel panel)
      Update of the panel 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 Panel create​(Panel panel)
        Create an instance of the panel class
        Parameters:
        panel - The instance of the Panel which contains the informations to store
        Returns:
        The instance of panel which has been created with its primary key.
      • update

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

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

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

        public static Panel findByCode​(java.lang.String strCode)
        Returns an instance of a panel whose identifier is specified in parameter
        Parameters:
        nKey - The panel primary key
        Returns:
        an instance of Panel
      • getPanelsList

        public static java.util.List<Panel> getPanelsList()
        Load the data of all the panel objects and returns them as a list
        Returns:
        the list which contains the data of all the panel objects
      • getIdPanelsList

        public static java.util.List<java.lang.Integer> getIdPanelsList()
        Load the id of all the panel objects and returns them as a list
        Returns:
        the list which contains the id of all the panel objects
      • getPanelsReferenceList

        public static fr.paris.lutece.util.ReferenceList getPanelsReferenceList()
        Load the data of all the panel objects and returns them as a referenceList
        Returns:
        the referenceList which contains the data of all the panel objects
      • getDefaultPanel

        public static Panel getDefaultPanel()
        Returns the default panel
        Parameters:
        nKey - The panel primary key
        Returns:
        an instance of Panel