Constructor
new TransactionService(httpRequestExecutor, repositoryClientConfig)
Instantiates the transaction service with the supplied executor and repository client config.
Parameters:
Name | Type | Description |
---|---|---|
httpRequestExecutor |
function | used to execute HTTP requests |
repositoryClientConfig |
RepositoryClientConfig | used to create transaction client configurations |
- Source:
Methods
beginTransaction(isolationLevelopt) → {Promise.<TransactionalRepositoryClient>}
Starts a transaction and produces a TransactionalRepositoryClient
.
The transactions ID is extracted from the location
header and
is used as endpoint for the produced TransactionalRepositoryClient.
If no transaction isolation level is provided, the server will use its default isolation level.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
isolationLevel |
string |
<optional> |
an optional parameter to specify the
transaction's level of isolation; for possible values see
|
- Source:
Returns:
transactional client
- Type
- Promise.<TransactionalRepositoryClient>
getServiceName()
- Source: