Class: TransactionalAspect
AspectJS • Docs
Class: TransactionalAspect
Make a method transactional. Transactional annotation. This class is intended to be subclassed for ORM-specific implementations.
Constructors
new TransactionalAspect()
new TransactionalAspect(
transactionManager):TransactionalAspect
Parameters
• transactionManager: TransactionManager
The transaction manager to use to create transactions.
Returns
Defined in
packages/persistence/src/transactional/transactional.aspect.ts:23
Methods
closeTransaction()
protectedcloseTransaction(transaction):Promise<void>
Close the transaction
Parameters
• transaction: Transaction
the transaction to close
Returns
Promise<void>
a promise that is resolved once the transaction has been closed.
Defined in
packages/persistence/src/transactional/transactional.aspect.ts:78
createTransaction()
protectedcreateTransaction():Promise<Transaction>
Create a new transaction.
Returns
Promise<Transaction>
A promise of the created transaction.
Defined in
packages/persistence/src/transactional/transactional.aspect.ts:86
Properties
transactionManager
protectedtransactionManager:TransactionManager
The transaction manager to use to create transactions.
Defined in
packages/persistence/src/transactional/transactional.aspect.ts:23
