Class TemplateFieldHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copy​(fr.paris.lutece.plugins.genericattributes.business.Field field)
      Copy of an instance of field
      static int create​(fr.paris.lutece.plugins.genericattributes.business.Field field)
      Creation of an instance of field
      static fr.paris.lutece.plugins.genericattributes.business.Field findByPrimaryKey​(int nKey)
      Returns an instance of a Field whose identifier is specified in parameter
      static List<fr.paris.lutece.plugins.genericattributes.business.Field> getFieldListByCode​(String code)
      Load the data of all the field by code
      static List<fr.paris.lutece.plugins.genericattributes.business.Field> getFieldListByIdEntry​(int nIdEntry)
      Load the data of all the field of the entry and returns them in a list
      static void remove​(int nIdField)
      Remove the field whose identifier is specified in parameter
      static void update​(fr.paris.lutece.plugins.genericattributes.business.Field field)
      Update of the field which is specified in parameter
    • Method Detail

      • create

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

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

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

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

        public static List<fr.paris.lutece.plugins.genericattributes.business.Field> getFieldListByIdEntry​(int nIdEntry)
        Load the data of all the field of the entry and returns them in a list
        Parameters:
        nIdEntry - the id of the entry
        Returns:
        the list of field
      • copy

        public static void copy​(fr.paris.lutece.plugins.genericattributes.business.Field field)
        Copy of an instance of field
        Parameters:
        field - The instance of the Field who must copy
      • getFieldListByCode

        public static List<fr.paris.lutece.plugins.genericattributes.business.Field> getFieldListByCode​(String code)
        Load the data of all the field by code
        Parameters:
        code -
        Returns:
        the list of field