Class CustomMenuItemHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CustomMenuItem create​(CustomMenuItem customMenuItem)
      Create an instance of the customMenuItem class
      static CustomMenuItem findByPrimaryKey​(int nKey)
      Returns an instance of a customMenuItem whose identifier is specified in parameter
      static java.util.List<java.lang.Integer> getCustomMenuItemsIdsListByMenuId​(int nMenuId)
      Load the data of all the customMenuItem objects for a specific menu and returns them in form of a collection
      static java.util.List<CustomMenuItem> getCustomMenuItemsList()
      Load the data of all the customMenuItem objects and returns them in form of a collection
      static java.util.List<CustomMenuItem> getCustomMenuItemsListByMenuId​(int nMenuId)
      Load the data of all the customMenuItem objects for a specific menu and returns them in form of a collection
      static void remove​(int nKey)
      Remove the customMenuItem whose identifier is specified in parameter
      static void removeByMenuId​(int nMenuId)
      Remove all items of a menu
      static CustomMenuItem update​(CustomMenuItem customMenuItem)
      Update of the customMenuItem 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 CustomMenuItem create​(CustomMenuItem customMenuItem)
        Create an instance of the customMenuItem class
        Parameters:
        customMenuItem - The instance of the CustomMenuItem which contains the informations to store
        Returns:
        The instance of customMenuItem which has been created with its primary key.
      • update

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

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

        public static void removeByMenuId​(int nMenuId)
        Remove all items of a menu
        Parameters:
        nMenuId - The menu Id
      • findByPrimaryKey

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

        public static java.util.List<CustomMenuItem> getCustomMenuItemsList()
        Load the data of all the customMenuItem objects and returns them in form of a collection
        Returns:
        the collection which contains the data of all the customMenuItem objects
      • getCustomMenuItemsListByMenuId

        public static java.util.List<CustomMenuItem> getCustomMenuItemsListByMenuId​(int nMenuId)
        Load the data of all the customMenuItem objects for a specific menu and returns them in form of a collection
        Parameters:
        nMenuId - The menu identifier
        Returns:
        the collection which contains the data of all the customMenuItem objects for the menu
      • getCustomMenuItemsIdsListByMenuId

        public static java.util.List<java.lang.Integer> getCustomMenuItemsIdsListByMenuId​(int nMenuId)
        Load the data of all the customMenuItem objects for a specific menu and returns them in form of a collection
        Parameters:
        nMenuId - The menu identifier
        Returns:
        the collection which contains the data of all the customMenuItem objects for the menu