ListChangeset
pentaho.type.changes. ListChangeset
The class ListChangeset
describes a log of changes in a list value.
AMD Module
require(["pentaho/type/changes/ListChangeset"], function(ListChangeset) { /* code goes here */ });
Extends
Constructor
Name | Description |
---|---|
new ListChangeset(transaction, owner) | Creates a new instance. |
Members
Name | Description |
---|---|
base : Protected | If a method has been overridden, then the base method provides access to the overridden method. |
changes : | Gets the list of contained primitive changes. |
hasChanges : | Gets a value that indicates if this changeset contains any changes, whether they are primitive or in contained changesets. |
isReadOnly : | Gets a value that indicates if the changeset is in a read-only state and can no longer be modified. |
owner : | Gets the list value where the changes take place. |
ownerVersion : | Gets the version of the owner at the time when the changeset was created. |
transaction : | Gets the owning transaction. |
transactionVersion : | Gets the transaction version of this changeset. |
transactionVersionLocal : | Gets the local transaction version of this changeset. |
type : | Gets the type of change. |
Methods
Name | Description |
---|---|
__onChildTxnVersionDirty() | Called by a child changeset when its version changes or becomes dirty. |
_apply(target) Protected | Applies any local primitive changes. |
_assertWritable() Protected | Throws an error if the changeset is read-only. |
_clearChanges() Protected | Actually removes all changes from this changeset. |
_clearChangesRecursive(parentChangeset) Protected | Called by a parent changeset on its child changeset, this, for it to clear its changes. |
_resetNetOrder() Protected | Resets the topological order of this changeset, and of any child changesets, by calculating it based on its current parents. |
_setTransactionVersion(txnVersion, noNotifyParentChangeset) Protected | Updates the transaction version to a given value, if it is greater than the current one. Notifies all parents, except the optionally specified one, that their version is dirty. |
_setTransactionVersionLocal(txnVersionLocal, noNotifyParentChangeset) Protected | Updates the local transaction version to a given value due to a local, primitive change, if it is greater than the current one. Then, it calls |
clearChanges() | Removes all changes from this changeset. |
eachChildChangeset(fun, ctx) | Calls a function once per child changeset. |
extend(source, keyArgs) : Object | Extend an object with the properties of another. |
getChange(key) : pentaho.type.changes.ComplexChangeset | Gets the child changeset for an element with the given key, if any. |
Constructor Details
new ListChangeset(transaction, owner) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Creates a new instance. Source: javascript/web/pentaho/type/changes/ListChangeset.js, line 29
|
Members Details
base: Protected |
---|
If a method has been overridden, then the base method provides access to the overridden method. Can also be called from within a constructor function. Source: javascript/web/pentaho/lang/Base.js, line 299 Inherited From: pentaho.lang.Base#base |
changes: |
---|
Gets the list of contained primitive changes. The returned array should not be modified. Source: javascript/web/pentaho/type/changes/ListChangeset.js, line 100 |
hasChanges: |
---|
Gets a value that indicates if this changeset contains any changes, whether they are primitive or in contained changesets. Source: javascript/web/pentaho/type/changes/Changeset.js, line 386 Overrides: pentaho.type.changes.Changeset#hasChanges |
isReadOnly: |
---|
Gets a value that indicates if the changeset is in a read-only state and can no longer be modified. Source: javascript/web/pentaho/type/changes/Changeset.js, line 216 Inherited From: pentaho.type.changes.Changeset#isReadOnly |
owner: |
---|
Gets the list value where the changes take place. Source: javascript/web/pentaho/type/changes/ListChangeset.js, line 73 Overrides: pentaho.type.changes.Changeset#owner |
ownerVersion: |
---|
Gets the version of the owner at the time when the changeset was created. Source: javascript/web/pentaho/type/changes/Changeset.js, line 239 Inherited From: pentaho.type.changes.Changeset#ownerVersion |
transaction: |
---|
Gets the owning transaction. Source: javascript/web/pentaho/type/changes/Changeset.js, line 51 Inherited From: pentaho.type.changes.Changeset#transaction |
transactionVersion: |
---|
Gets the transaction version of this changeset. This number is at least as high as the transaction version of any child changesets and primitive changes. Source: javascript/web/pentaho/type/changes/Changeset.js, line 263 Inherited From: pentaho.type.changes.Changeset#transactionVersion |
transactionVersionLocal: |
---|
Gets the local transaction version of this changeset. This number is the maximum transaction version of the contained primitive changes. Source: javascript/web/pentaho/type/changes/Changeset.js, line 251 Inherited From: pentaho.type.changes.Changeset#transactionVersionLocal |
type: |
---|
Gets the type of change. Source: javascript/web/pentaho/type/changes/ListChangeset.js, line 88 Default Value: "list" Overrides: pentaho.type.changes.Changeset#type |
Methods Details
__onChildTxnVersionDirty() |
---|
Called by a child changeset when its version changes or becomes dirty. Source: javascript/web/pentaho/type/changes/Changeset.js, line 378 Inherited From: pentaho.type.changes.Changeset#__onChildTxnVersionDirty |
_apply(target) Protected | ||||||
---|---|---|---|---|---|---|
Applies any local primitive changes. Source: javascript/web/pentaho/type/changes/Change.js, line 60 Overrides: pentaho.type.changes.Changeset#_apply
|
_assertWritable() Protected | ||||
---|---|---|---|---|
Throws an error if the changeset is read-only. Source: javascript/web/pentaho/type/changes/Changeset.js, line 205 Inherited From: pentaho.type.changes.Changeset#_assertWritable
|
_clearChanges() Protected |
---|
Actually removes all changes from this changeset. Source: javascript/web/pentaho/type/changes/Changeset.js, line 446 Overrides: pentaho.type.changes.Changeset#_clearChanges |
_clearChangesRecursive(parentChangeset) Protected | ||||||
---|---|---|---|---|---|---|
Called by a parent changeset on its child changeset, this, for it to clear its changes. This method updates the transaction version of this changeset to match the parent's version and then delegates to the Source: javascript/web/pentaho/type/changes/Changeset.js, line 434 Inherited From: pentaho.type.changes.Changeset#_clearChangesRecursive
See also: pentaho.type.changes.Changeset#transactionVersion , pentaho.type.changes.Changeset#clearChanges |
_resetNetOrder() Protected |
---|
Resets the topological order of this changeset, and of any child changesets, by calculating it based on its current parents. Source: javascript/web/pentaho/type/changes/Changeset.js, line 110 Inherited From: pentaho.type.changes.Changeset#_resetNetOrder See also: pentaho.type.changes.Changeset#__calculateNetOrder |
_setTransactionVersion(txnVersion, noNotifyParentChangeset) Protected | |||||||||
---|---|---|---|---|---|---|---|---|---|
Updates the transaction version to a given value, if it is greater than the current one. Notifies all parents, except the optionally specified one, that their version is dirty. Source: javascript/web/pentaho/type/changes/Changeset.js, line 307 Inherited From: pentaho.type.changes.Changeset#_setTransactionVersion
|
_setTransactionVersionLocal(txnVersionLocal, noNotifyParentChangeset) Protected | |||||||||
---|---|---|---|---|---|---|---|---|---|
Updates the local transaction version to a given value due to a local, primitive change, if it is greater than the current one. Then, it calls Source: javascript/web/pentaho/type/changes/Changeset.js, line 334 Inherited From: pentaho.type.changes.Changeset#_setTransactionVersionLocal
|
clearChanges() | ||||
---|---|---|---|---|
Removes all changes from this changeset. Primitive changes are removed, while contained changesets are cleared. This method validates that the changeset is in a valid state and then delegates actual work to the Source: javascript/web/pentaho/type/changes/Changeset.js, line 415 Inherited From: pentaho.type.changes.Changeset#clearChanges
See also: pentaho.type.changes.Changeset#_clearChanges , pentaho.type.changes.Changeset#_clearChangesRecursive |
eachChildChangeset(fun, ctx) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Calls a function once per child changeset. Source: javascript/web/pentaho/type/changes/Changeset.js, line 185 Overrides: pentaho.type.changes.Changeset#eachChildChangeset
|
extend(source, keyArgs) : Object | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Extend an object with the properties of another. Methods that are overridden are accessible through This object is extended, but its class doesn't change. Source: javascript/web/pentaho/lang/Base.js, line 1037 Inherited From: pentaho.lang.Base#extend
|
getChange(key) : pentaho.type.changes.ComplexChangeset | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets the child changeset for an element with the given key, if any. Source: javascript/web/pentaho/type/changes/ListChangeset.js, line 127
|