Class ExtendedFieldDBDAO

    • Constructor Summary

      Constructors 
      Constructor Description
      ExtendedFieldDBDAO()
      Constructor for the ExtendedFieldDBDAO object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void create​(ExtendedField aExtendedField)
      Creates an instance in persistent storage of the given extended Field.
      void delete​(long aExtendedfieldId)
      deletes an ExtendedField from persistent storage.
      boolean exists​(java.lang.Long aExtendedfieldId)
      Check whether a particular extended Field exists.
      java.util.List<ExtendedField> getAll​(long aExtendedFieldTypeId)
      Return a list of all ExtendedFields of the given Extended Field Type.
      ExtendedField read​(java.lang.Long aExtendedfieldId)
      Reads an ExtendedField from persistent storage.
      void update​(ExtendedField aExtendedField)
      Update a ExtendedField in persistent storage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.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.
      • read

        public ExtendedField read​(java.lang.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 java.util.List<ExtendedFieldgetAll​(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