AbstractTransactionScope
pentaho.type.changes. AbstractTransactionScope
The AbstractTransactionScope
class is the abstract base class of classes that control the ambient/current transaction
.
Constructor
Name | Description |
---|---|
new AbstractTransactionScope(context, transaction) | Creates a |
Members
Name | Description |
---|---|
context : | Gets the associated context. |
isCurrent : | Gets a value that indicates if this scope is the current scope of its context. |
isInside : | Gets a value that indicates if this scope has not been exited. |
transaction : | Gets the associated transaction, if any, or |
Methods
Name | Description |
---|---|
_assertInsideAndCurrent() Protected | Throws an error if the scope has been exited from or is not the current scope. |
dispose() | Exits the scope, without any warnings in case it is not inside or is not the current scope. |
exit(keyArgs) : pentaho.type.changes.AbstractTransactionScope | Exits the scope. |
using(fun, ctx) : any | Calls a given function within the scope and safely exits from the scope. |
Constructor Details
new AbstractTransactionScope(context, transaction) | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 48
|
Members Details
context: |
---|
Gets the associated context. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 51 |
isCurrent: |
---|
Gets a value that indicates if this scope is the current scope of its context. A context's current scope is its innermost scope. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 148 |
isInside: |
---|
Gets a value that indicates if this scope has not been exited. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 136 |
transaction: |
---|
Gets the associated transaction, if any, or Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 61 |
Methods Details
_assertInsideAndCurrent() Protected | ||||
---|---|---|---|---|
Throws an error if the scope has been exited from or is not the current scope. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 103
|
dispose() |
---|
Exits the scope, without any warnings in case it is not inside or is not the current scope. This method is equivalent to calling Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 238 |
exit(keyArgs) : pentaho.type.changes.AbstractTransactionScope | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Exits the scope. After this operation, the scope cannot be operated on anymore. However, properties like If this method is called and the the scope has already been exited from, or is not the current scope, a warning is logged, unless Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 194
|
using(fun, ctx) : any | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Calls a given function within the scope and safely exits from the scope. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 166
|