Package com._1c.g5.v8.dt.supply
Interface IDtProjectDataSourceConnector
- All Known Implementing Classes:
IntegrationDataSourceConnector
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 Summary
Modifier and TypeMethodDescriptionBegins underlying store transaction.void
commitTransaction
(Object handle) Commits underlying transaction using the transaction handle obtained via thebeginTransaction()
call.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.org.eclipse.emf.ecore.EObject
getTopLevelObject
(String symlink, Object transactionHandle) Gets the top-level object from the data source.getTopLevelObjectSymlink
(org.eclipse.emf.ecore.EObject source, Object transactionHandle) Gets the symlink to the top object
-
Method Details
-
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
Commits underlying transaction using the transaction handle obtained via thebeginTransaction()
call.- Parameters:
handle
- The transactional handle. Cannot benull
-
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 benull
feature
- The target feature. Can benull
scopeProvider
- The scope provider. Can benull
transactionHandle
- Transaction handle obtained viabeginTransaction()
.- Returns:
- The list of collection element symlinks. Cannot be
null
-
getTopLevelObject
Gets the top-level object from the data source.- Parameters:
symlink
- The symlink of the top object. Cannot benull
transactionHandle
- Transaction handle obtained viabeginTransaction()
. Cannot benull
- Returns:
- The object if exist.
null
otherwise.
-
getTopLevelObjectSymlink
Gets the symlink to the top object- Parameters:
source
- The source object. Cannot benull
- Returns:
- The transactional handle. Cannot be
null
-