Class InterfaceManagerDB


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

      • InterfaceManagerDB

        public InterfaceManagerDB​(SQLiteDataSource dataSource)
        Constructor.
    • 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​(Interface iface)
        Store into database
        Parameters:
        iface - Interface to store
      • getInterfaceByID

        public Interface getInterfaceByID​(InterfaceID ifaceID)
        Get interface by ID
        Parameters:
        ifaceID - ID of the interface
        Returns:
        The interface
      • deleteInterface

        public void deleteInterface​(InterfaceID id)
        Delete
        Parameters:
        id - ID of object to delete
      • getInterfacesOfClass

        public List<Interface> getInterfacesOfClass​(NamespaceID namespaceID,
                                                    MetaClassID classID)
        Get interfaces of class
        Parameters:
        namespaceID - Namespace ID
        classID - class ID
        Returns:
        The classes
      • getInterfaceByNames

        public Interface getInterfaceByNames​(String providerAccount,
                                             String namespace,
                                             String classname,
                                             Set<String> propertiesInIface,
                                             Set<String> operationsSignatureInIface)
        Get interface by names
        Parameters:
        providerAccount - Name of the account providing the interface
        namespace - Namespace of the class of the interface
        classname - Classname of the class of the interface
        propertiesInIface - Properties in interface
        operationsSignatureInIface - Operations in interface
        Returns:
        The interface
      • close

        public void close()
        Close DB.
      • existsObjectByID

        public boolean existsObjectByID​(InterfaceID dataClayID)
        check if iface exists.
        Parameters:
        dataClayID - ID of interface
        Returns:
        TRUE if exists.