Class LevelHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Level create​(Level mode)
      Creation of an instance of a mode
      static Level findByPrimaryKey​(int nKey)
      Returns an instance of an mode whose identifier is specified in parameter
      static java.util.Collection<Level> getLevelsList()
      Return the list of all the modes
      static void remove​(int nId)
      Remove the mode whose identifier is specified in parameter
      static Level update​(Level mode)
      Update of the mode which is specified
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static Level create​(Level mode)
        Creation of an instance of a mode
        Parameters:
        mode - An instance of a mode which contains the informations to store
        Returns:
        The instance of a mode which has been created with its primary key.
      • update

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

        public static void remove​(int nId)
        Remove the mode whose identifier is specified in parameter
        Parameters:
        nId - The identifier of the mode to remove
      • findByPrimaryKey

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

        public static java.util.Collection<Level> getLevelsList()
        Return the list of all the modes
        Returns:
        A collection of modes objects