Class FieldHome


  • public final class FieldHome
    extends java.lang.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 Field create​(Field field)
      Create an instance of the field class
      static Field findByPrimaryKey​(int nKey)
      Returns an instance of a field whose identifier is specified in parameter
      static java.util.List<Field> getFieldsList()
      Load the data of all the field objects and returns them in form of a list
      static void remove​(int nFieldId)
      Remove the field whose identifier is specified in parameter
      static Field update​(Field field)
      Update of the field 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 Field create​(Field field)
        Create an instance of the field class
        Parameters:
        field - The instance of the Field which contains the informations to store
        Returns:
        The instance of field which has been created with its primary key.
      • update

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

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

        public static 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
      • getFieldsList

        public static java.util.List<Field> getFieldsList()
        Load the data of all the field objects and returns them in form of a list
        Returns:
        the list which contains the data of all the field objects