CommittedScope
pentaho.type.changes. CommittedScope
The CommittedScope
class provides a way for a certain region of code to read the committed values of instances.
Extends
Constructor
Name | Description |
---|---|
new CommittedScope() | Creates a |
Members
Name | Description |
---|---|
isCurrent : | Gets a value that indicates if this scope is the current scope. |
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 CommittedScope() |
---|
Creates a Source: javascript/web/pentaho/type/changes/CommittedScope.js, line 36 |
Members Details
isCurrent: |
---|
Gets a value that indicates if this scope is the current scope. The current scope is the innermost scope. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 136 Inherited From: pentaho.type.changes.AbstractTransactionScope#isCurrent |
isInside: |
---|
Gets a value that indicates if this scope has not been exited. Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 124 Inherited From: pentaho.type.changes.AbstractTransactionScope#isInside |
transaction: |
---|
Gets the associated transaction, if any, or Source: javascript/web/pentaho/type/changes/AbstractTransactionScope.js, line 49 Inherited From: pentaho.type.changes.AbstractTransactionScope#transaction |
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 91 Inherited From: pentaho.type.changes.AbstractTransactionScope#_assertInsideAndCurrent
|
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 225 Inherited From: pentaho.type.changes.AbstractTransactionScope#dispose |
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 181 Inherited From: pentaho.type.changes.AbstractTransactionScope#exit
|
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 154 Inherited From: pentaho.type.changes.AbstractTransactionScope#using
|