Class MediaItemDataAccess


  • public class MediaItemDataAccess
    extends Object
    This class handles all access to the external media repository database.
    • Method Detail

      • getMediaRepositoryDatabaseType

        public String getMediaRepositoryDatabaseType()
        Returns the database type of the media repository
        Returns:
        Type of the media repository, can be 'mssql', 'oracle' or 'mysql'
      • doSingleSelectQuery

        public int doSingleSelectQuery​(String selectStatement,
                                       Object[] args)
                                throws SQLException,
                                       ServiceNotFoundException
        Executes a select statement on the database.
        Parameters:
        selectStatement - Statement to execute
        args - Arguments to use for the udpate query
        Returns:
        Resulting id of the select query
        Throws:
        SQLException - Thrown when an error occurs while executing SQL statement
        ServiceNotFoundException