Class DataSetManagerDB


  • public final class DataSetManagerDB
    extends Object
    Data base connection.
    • Constructor Detail

      • DataSetManagerDB

        public DataSetManagerDB​(SQLiteDataSource dataSource)
        MetaDataServiceDB constructor.
        Parameters:
        dataSource - Name of the LM service managing.
    • Method Detail

      • createTables

        public void createTables()
        Create tables of MDS.
      • dropTables

        public void dropTables()
        Delete the tables of MDS. Just the other way around of createTables --much simpler.
      • store

        public void store​(DataSet dataSet)
        Store dataSet into database
        Parameters:
        dataSet - dataSet
      • getDataSetByID

        public DataSet getDataSetByID​(DataSetID datasetID)
        Get by ID
        Parameters:
        datasetID - ID of object
        Returns:
        The object
        Throws:
        SQLException - if not found
      • deleteDataSetByID

        public void deleteDataSetByID​(DataSetID dataSetID)
        Delete by ID
        Parameters:
        dataSetID - ID of object
      • getDataSetsWithProvider

        public List<DataSet> getDataSetsWithProvider​(AccountID providerAccountID)
        Get datasets containing provider
        Parameters:
        providerAccountID - Account ID
        Returns:
        The DataSets
      • getDataSetByName

        public DataSet getDataSetByName​(String name)
        Get by name
        Parameters:
        name - the name
        Returns:
        The object
        Throws:
        SQLException - if not found
      • getPublicDataSets

        public Set<DataSet> getPublicDataSets()
        Get public datasets
        Returns:
        Set of datasets
      • close

        public void close()
        Close DB.