Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (34 sloc)
1.06 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Enumeration that represents transaction propagation behaviors for use with the see {@link Transactional} | |
* decorator. Only 'REQUIRED' is currently supported. | |
*/ | |
export enum Propagation { | |
/** | |
* Support a current transaction, throw an exception if none exists. | |
*/ | |
MANDATORY = 'MANDATORY', | |
/** | |
* Execute within a nested transaction if a current transaction exists, behave like `REQUIRED` else. | |
*/ | |
NESTED = 'NESTED', | |
/** | |
* Execute non-transactionally, throw an exception if a transaction exists. | |
*/ | |
NEVER = 'NEVER', | |
/** | |
* Execute non-transactionally, suspend the current transaction if one exists. | |
*/ | |
NOT_SUPPORTED = 'NOT_SUPPORTED', | |
/** | |
* Support a current transaction, create a new one if none exists. | |
*/ | |
REQUIRED = 'REQUIRED', | |
/** | |
* Create a new transaction, and suspend the current transaction if one exists. | |
*/ | |
REQUIRES_NEW = 'REQUIRES_NEW', | |
/** | |
* Support a current transaction, execute non-transactionally if none exists. | |
*/ | |
SUPPORTS = 'SUPPORTS' | |
} |