Interface IDtProjectDataSourceConnector


  • public interface IDtProjectDataSourceConnector
    Abstraction of the project data access being used by the library supply/integration subsystem. Used to support different store formats of projects (native EDT, file only, etc).
    • Method Detail

      • beginTransaction

        Object beginTransaction()
        Begins underlying store transaction. In case if the store doesn't support transactional operations, the implementation should simulate it by providing and storing requested handles
        Returns:
        The transactional handle. Cannot be null
      • commitTransaction

        void commitTransaction​(Object handle)
        Commits underlying transaction using the transaction handle obtained via the beginTransaction() call.
        Parameters:
        handle - The transactional handle. Cannot be null
      • getCollectionSymlinks

        List<String> getCollectionSymlinks​(org.eclipse.emf.ecore.EObject source,
                                           org.eclipse.emf.ecore.EReference feature,
                                           org.eclipse.xtext.scoping.IScopeProvider scopeProvider,
                                           Object transactionHandle)
        Gets the list of collection symlinks.
        Parameters:
        source - The source object. Cannot be null
        feature - The target feature. Can be null
        scopeProvider - The scope provider. Can be null
        transactionHandle - Transaction handle obtained via beginTransaction().
        Returns:
        The list of collection element symlinks. Cannot be null
      • getTopLevelObject

        org.eclipse.emf.ecore.EObject getTopLevelObject​(String symlink,
                                                        Object transactionHandle)
        Gets the top-level object from the data source.
        Parameters:
        symlink - The symlink of the top object. Cannot be null
        transactionHandle - Transaction handle obtained via beginTransaction(). Cannot be null
        Returns:
        The object if exist. null otherwise.
      • getTopLevelObjectSymlink

        String getTopLevelObjectSymlink​(org.eclipse.emf.ecore.EObject source,
                                        Object transactionHandle)
        Gets the symlink to the top object
        Parameters:
        source - The source object. Cannot be null
        Returns:
        The transactional handle. Cannot be null