Class: WebDataService

(protected) WebDataService(uuidopt, autocommitopt, additionalConnectorOptionsopt)

Base class representing the data service provided by a Container.

Constructor

(protected) new WebDataService(uuidopt, autocommitopt, additionalConnectorOptionsopt)

Constructor.

Parameters:
Name Type Attributes Description
uuid string <optional>

The UUID of the container.

autocommit boolean <optional>

Should this data service auto commit?

additionalConnectorOptions Object <optional>

Additional connector specific options for this transaction.

Source:

Methods

(static) newComposerDataService(additionalConnectorOptionsopt) → {DataService}

Get the top-level Composer data service.

Parameters:
Name Type Attributes Description
additionalConnectorOptions Object <optional>

Additional connector specific options for this transaction.

Source:
Returns:

the data service.

Type
DataService

(static) newNetworkDataService(containerName, autocommitopt, additionalConnectorOptionsopt) → {DataService}

Get a new data service for storing network (blockchain) data.

Parameters:
Name Type Attributes Default Description
containerName String

Name of the runtime container.

autocommit boolean <optional>
false

true if the data service should be auto-commit; otherwise false.

additionalConnectorOptions Object <optional>

Additional connector specific options for this transaction.

Source:
Returns:

the data service.

Type
DataService