Class EntitiesClient

The client responsible for getting, saving and deleting entities.

Constructors

EntitiesClient()

Declaration
RequestResponse
new EntitiesClient()

Functions

getAsync(param, loadConfiguration)

Gets the <xref:IEntity> instance with the specified id or identifier.

Declaration
RequestResponse
function getAsync(param, loadConfiguration)
Parameters
TypeNameDescription
param

The id or identifier of the entity to get

loadConfiguration

The loading configuration for the entity

Returns
TypeDescription

The entity or null when it was not found.

getManyAsync(param, loadConfiguration)

Gets the <xref:IEntity> instances with the specified ids or identifiers.

Declaration
RequestResponse
function getManyAsync(param, loadConfiguration)
Parameters
TypeNameDescription
param

The ids or identifiers of the entities to get

loadConfiguration

The loading configuration for an entity

Returns
TypeDescription

List of entities.

getByDefinitionAsync()

{@inheritDoc}

Declaration
RequestResponse
function getByDefinitionAsync()

getIdsByDefinitionAsync()

{@inheritDoc}

Declaration
RequestResponse
function getIdsByDefinitionAsync()

getEntityIterator()

{@inheritDoc}

Declaration
RequestResponse
function getEntityIterator()

getEntityIdIterator()

{@inheritDoc}

Declaration
RequestResponse
function getEntityIdIterator()

saveAsync()

{@inheritDoc}

Declaration
RequestResponse
function saveAsync()

deleteAsync()

{@inheritDoc}

Declaration
RequestResponse
function deleteAsync()

createEntityAsync(entity)

Creates the specified <xref:IEntity> in the system.

Declaration
RequestResponse
function createEntityAsync(entity)
Parameters
TypeNameDescription
entity

The entity to create/save in the system

updateEntityAsync(entity)

Update the specified <xref:IEntity>.

Declaration
RequestResponse
function updateEntityAsync(entity)
Parameters
TypeNameDescription
entity

The entity to update

single(queryResult)

Get an <xref:IEntity> or null from the specified IEntityQueryResult.

Declaration
RequestResponse
function single(queryResult)
Parameters
TypeNameDescription
queryResult

The query result (should contain one or no items)

Returns
TypeDescription

An <xref:IEntity> or null.

Do you have some feedback for us?

If you have suggestions for improving this article,