Class TemplateEntryHome


  • public final class TemplateEntryHome
    extends Object
    This class provides instances management methods (create, find, ...) for Entry objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static fr.paris.lutece.plugins.genericattributes.business.Entry copy​(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
      Copy of an instance of Entry
      static int create​(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
      Creation of an instance of Entry
      static fr.paris.lutece.plugins.genericattributes.business.Entry findByPrimaryKey​(int nKey)
      Returns an instance of a Entry whose identifier is specified in parameter
      static void remove​(int nIdEntry)
      Remove the entry whose identifier is specified in parameter
      static void update​(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
      Update of the entry which is specified in parameter
    • Method Detail

      • create

        public static int create​(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
        Creation of an instance of Entry
        Parameters:
        entry - The instance of the Entry which contains the informations to store
        Returns:
        The primary key of the new entry.
      • update

        public static void update​(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
        Update of the entry which is specified in parameter
        Parameters:
        entry - The instance of the Entry which contains the informations to update
      • remove

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

        public static fr.paris.lutece.plugins.genericattributes.business.Entry findByPrimaryKey​(int nKey)
        Returns an instance of a Entry whose identifier is specified in parameter
        Parameters:
        nKey - The entry primary key
        Returns:
        an instance of Entry
      • copy

        public static fr.paris.lutece.plugins.genericattributes.business.Entry copy​(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
        Copy of an instance of Entry
        Parameters:
        entry - The instance of the Entry who must copy
        Returns:
        the copied Entry