TitleIndex Class
Packages > @anticrm/core > TitleIndex
Signature:
export declare class TitleIndex implements DomainIndex
Implements: DomainIndex
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(modelDb, storage) | Constructs a new instance of the TitleIndex class |
Methods
Method | Modifiers | Description |
---|---|---|
onCreate(ctx, create) | ||
onUpdate(ctx, update) | ||
tx(ctx, tx) |
Constructors
TitleIndex.(constructor)
Constructs a new instance of the TitleIndex
class
Signature:
constructor(modelDb: Model, storage: Storage);
Parameters
Parameter | Type | Description |
---|---|---|
modelDb | Model | |
storage | Storage |
Methods
onCreate
Signature:
onCreate(ctx: TxContext, create: CreateTx): Promise<any>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | TxContext | |
create | CreateTx |
Returns:
Promise<any>
onUpdate
Signature:
onUpdate(ctx: TxContext, update: UpdateTx): Promise<any>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | TxContext | |
update | UpdateTx |
Returns:
Promise<any>
tx
Signature:
tx(ctx: TxContext, tx: Tx): Promise<any>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | TxContext | |
tx | Tx |
Returns:
Promise<any>