Class ExtendedFieldDBDAO

  • All Implemented Interfaces:
    DAO

    public class ExtendedFieldDBDAO
    extends ExtendedFieldDAO
    A database-based implementation of the ExtendedFieldDBDAO class.
    • Constructor Detail

      • ExtendedFieldDBDAO

        public ExtendedFieldDBDAO()
        Constructor for the ExtendedFieldDBDAO object.
    • Method Detail

      • create

        public void create​(ExtendedField aExtendedField)
        Description copied from class: ExtendedFieldDAO
        Creates an instance in persistent storage of the given extended Field.
        Specified by:
        create in class ExtendedFieldDAO
        Parameters:
        aExtendedField - a ExtendedField to create in persistent storage.
      • exists

        public boolean exists​(Long aExtendedfieldId)
        Check whether a particular extended Field exists.
        Specified by:
        exists in class ExtendedFieldDAO
        Parameters:
        aExtendedfieldId - Id of the extended field.
        Returns:
        true if the extended field exists.
      • update

        public void update​(ExtendedField aExtendedField)
        Description copied from class: ExtendedFieldDAO
        Update a ExtendedField in persistent storage.
        Specified by:
        update in class ExtendedFieldDAO
        Parameters:
        aExtendedField - The ExtendedField to update
      • read

        public ExtendedField read​(Long aExtendedfieldId)
        Description copied from class: ExtendedFieldDAO
        Reads an ExtendedField from persistent storage.
        Specified by:
        read in class ExtendedFieldDAO
        Parameters:
        aExtendedfieldId - The ID of the ExtendedField to read
        Returns:
        a ExtendedField instance
      • getAll

        public List<ExtendedField> getAll​(long aExtendedFieldTypeId)
        Description copied from class: ExtendedFieldDAO
        Return a list of all ExtendedFields of the given Extended Field Type.
        Specified by:
        getAll in class ExtendedFieldDAO
        Parameters:
        aExtendedFieldTypeId - extended field type.
        Returns:
        A list of all ExtendedFields with given Extended Field Type
      • delete

        public void delete​(long aExtendedfieldId)
                    throws IOFailure
        Description copied from class: ExtendedFieldDAO
        deletes an ExtendedField from persistent storage. The implementation of this method must also delete all belonging extended field values.
        Specified by:
        delete in class ExtendedFieldDAO
        Parameters:
        aExtendedfieldId - The ID of the ExtendedField to read
        Throws:
        IOFailure - If deleting the ExtendedField fails