Class: DBOExecutionContext

x2node-dbos~ DBOExecutionContext

Base class for various DBO execution contexts.

new DBOExecutionContext(dbo, txOrCon, actor [, filterParams] [, entangledUpdates])

Note: The constructor is not accessible from the client code. Instances are provided to the application components by the framework where needed.
Parameters:
Name Type Argument Description
dbo module:x2node-dbos~AbstractDBO The DBO.
txOrCon module:x2node-dbos~Transaction | * Active transaction or database connection.
actor module:x2node-common.Actor <nullable>
Actor executing the command.
filterParams Object.<string, *> <optional>
Optional filter parameters passed to the DBO execution.
entangledUpdates Object.<string, Set.<(string|number)>> <optional>
Optional entangled updates object.
Throws:
If transaction was provided but it was not active.
Type
module:x2node-common.X2UsageError

Members


<readonly> actor :module:x2node-common.Actor

Actor executing the operation, if any.
Type:

<readonly> connection :*

The database connection.
Type:
  • *

<readonly> dbDriver :module:x2node-dbos.DBDriver

The database driver.
Type:

<readonly> executedOn :Date

Date and time of the operation execution.
Type:
  • Date

<readonly> filterParams :Object.<string, *>

Filter parameters passed to the DBO's execute method.
Type:
  • Object.<string, *>

<readonly> recordTypes :module:x2node-records~RecordTypesLibrary

Record types library.
Type:

<readonly> transaction :module:x2node-dbos~Transaction

The transaction.
Type:

Methods


log(msg)

Log debug message on behalf of the DBO. Transaction id is automatically included in the message.
Parameters:
Name Type Description
msg string The message.