Class ModeHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Mode create​(Mode mode)
      Creation of an instance of a mode
      static Mode findByPrimaryKey​(int nKey)
      Returns an instance of an mode whose identifier is specified in parameter
      static ReferenceList getModes()
      Returns a reference list which contains all the modes
      static java.util.Collection<Mode> getModesList()
      Return the list of all the modes
      static java.util.Properties getOuputXslProperties​(int nKey)
      Returns a set of properties used for xsl output
      static void remove​(int nId)
      Remove the mode whose identifier is specified in parameter
      static Mode update​(Mode 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 Mode create​(Mode 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 Mode update​(Mode 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 Mode 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
      • getModesList

        public static java.util.Collection<Mode> getModesList()
        Return the list of all the modes
        Returns:
        A collection of modes objects
      • getModes

        public static ReferenceList getModes()
        Returns a reference list which contains all the modes
        Returns:
        a reference list
      • getOuputXslProperties

        public static java.util.Properties getOuputXslProperties​(int nKey)
        Returns a set of properties used for xsl output
        Parameters:
        nKey - The mode primary key
        Returns:
        the output properties to use for xsl transformation