Class FieldHome


  • public final class FieldHome
    extends Object
    This class provides instances management methods (create, find, ...) for Field objects
    • 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 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