Class ExtendedFieldValueDBDAO


  • public class ExtendedFieldValueDBDAO
    extends ExtendedFieldValueDAO
    Implementation class for the ExtendedFieldValueDAO interface.
    • Constructor Detail

      • ExtendedFieldValueDBDAO

        public ExtendedFieldValueDBDAO()
        Constructor for the ExtendedFieldValueDBDAO class.
    • Method Detail

      • create

        public void create​(Connection aConnection,
                           ExtendedFieldValue aExtendedFieldValue,
                           boolean aCommit)
                    throws SQLException
        Create a ExtendedFieldValue in persistent storage.
        Parameters:
        aConnection - an open connection to the HarvestDatabase.
        aExtendedFieldValue - The ExtendedFieldValue to create in persistent storage
        aCommit - Should we commit this or not
        Throws:
        SQLException - In case of Database access problems.
      • delete

        public void delete​(long aExtendedfieldValueID)
                    throws IOFailure
        Description copied from class: ExtendedFieldValueDAO
        Delete a ExtendedFieldValue in persistent storage.
        Specified by:
        delete in class ExtendedFieldValueDAO
        Parameters:
        aExtendedfieldValueID - The ID for a extendedFieldValue to delete
        Throws:
        IOFailure
      • exists

        public boolean exists​(Long aExtendedFieldValueID)
        Description copied from class: ExtendedFieldValueDAO
        Find out if there exists in persistent storage a ExtendedFieldValue with the given id.
        Specified by:
        exists in class ExtendedFieldValueDAO
        Parameters:
        aExtendedFieldValueID - An id associated with a ExtendedFieldValue
        Returns:
        true, if there already exists in persistent storage a ExtendedFieldValue with the given id.
      • read

        public ExtendedFieldValue read​(Long aExtendedFieldID,
                                       Long aInstanceID)
        Description copied from class: ExtendedFieldValueDAO
        Read the ExtendedFieldValue with the given extendedFieldID.
        Specified by:
        read in class ExtendedFieldValueDAO
        Parameters:
        aExtendedFieldID - A given ID for a ExtendedFieldValue
        aInstanceID - A given instanceID
        Returns:
        the ExtendedFieldValue with the given extendedFieldID.
      • update

        public void update​(Connection aConnection,
                           ExtendedFieldValue aExtendedFieldValue,
                           boolean aCommit)
                    throws SQLException
        Read a ExtendedFieldValue in persistent storage.
        Parameters:
        aConnection - an open connection to the HarvestDatabase
        aExtendedFieldValue - The ExtendedFieldValue to update
        aCommit - Should we commit this or not
        Throws:
        SQLException - In case of database problems.