Package com._1c.g5.v8.dt.supply
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
beginTransaction()
Begins underlying store transaction.void
commitTransaction(Object handle)
Commits underlying transaction using the transaction handle obtained via thebeginTransaction()
call.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.org.eclipse.emf.ecore.EObject
getTopLevelObject(String symlink, Object transactionHandle)
Gets the top-level object from the data source.String
getTopLevelObjectSymlink(org.eclipse.emf.ecore.EObject source, Object transactionHandle)
Gets the symlink to the top object
-
-
-
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 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
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 benull
transactionHandle
- Transaction handle obtained viabeginTransaction()
. Cannot benull
- Returns:
- The object if exist.
null
otherwise.
-
-