Constructors
constructor
- new CQRSGraph(graph?: GraphInterface, version?: number): CQRSGraph
-
Parameters
-
Optional graph: GraphInterface
-
Optional version: number
Properties
Private graph
graph: GraphInterface
Private rollbackGraph
rollbackGraph: Object
Private rollbackVersion
rollbackVersion: number
Private version
version: number
Methods
Protected AddConnector
- AddConnector(action: AddConnectorCommand | ConnectorAddedEvent): void
-
Parameters
-
action: AddConnectorCommand | ConnectorAddedEvent
Returns void
Protected AddEdge
- AddEdge(action: AddEdgeCommand | EdgeAddedEvent): void
-
Parameters
-
action: AddEdgeCommand | EdgeAddedEvent
Returns void
Protected AddModel
- AddModel(action: AddModelCommand | ModelAddedEvent): void
-
Parameters
-
action: AddModelCommand | ModelAddedEvent
Returns void
Protected AddNode
- AddNode(action: AddNodeCommand | NodeAddedEvent): void
-
Parameters
-
action: AddNodeCommand | NodeAddedEvent
Returns void
ApplyCommand
- ApplyCommand(command: Command): Event
ApplyEvent
- ApplyEvent(event: Event): void
CommitTransaction
- CommitTransaction(): void
Protected DeleteConnector
- DeleteConnector(action: DeleteConnectorCommand | ConnectorDeletedEvent): void
-
Parameters
-
action: DeleteConnectorCommand | ConnectorDeletedEvent
Returns void
Protected DeleteConnectorProperty
- DeleteConnectorProperty(action: DeleteConnectorPropertyCommand | ConnectorPropertyDeletedEvent): void
-
Parameters
-
action: DeleteConnectorPropertyCommand | ConnectorPropertyDeletedEvent
Returns void
Protected DeleteEdge
- DeleteEdge(action: DeleteEdgeCommand | EdgeDeletedEvent): void
-
Parameters
-
action: DeleteEdgeCommand | EdgeDeletedEvent
Returns void
Protected DeleteEdgeProperty
- DeleteEdgeProperty(action: DeleteEdgePropertyCommand | EdgePropertyDeletedEvent): void
-
Parameters
-
action: DeleteEdgePropertyCommand | EdgePropertyDeletedEvent
Returns void
Protected DeleteModel
- DeleteModel(action: DeleteModelCommand | ModelDeletedEvent): void
-
Parameters
-
action: DeleteModelCommand | ModelDeletedEvent
Returns void
Protected DeleteModelProperty
- DeleteModelProperty(action: DeleteModelPropertyCommand | ModelPropertyDeletedEvent): void
-
Parameters
-
action: DeleteModelPropertyCommand | ModelPropertyDeletedEvent
Returns void
Protected DeleteNode
- DeleteNode(action: DeleteNodeCommand | NodeDeletedEvent): void
-
Parameters
-
action: DeleteNodeCommand | NodeDeletedEvent
Returns void
Protected DeleteNodeProperty
- DeleteNodeProperty(action: DeleteNodePropertyCommand | NodePropertyDeletedEvent): void
-
Parameters
-
action: DeleteNodePropertyCommand | NodePropertyDeletedEvent
Returns void
GetGraph
- GetGraph(): GraphInterface
Protected SetConnectorProperty
- SetConnectorProperty(action: SetConnectorPropertyCommand | ConnectorPropertySetEvent): void
-
Parameters
-
action: SetConnectorPropertyCommand | ConnectorPropertySetEvent
Returns void
Protected SetEdgeProperty
- SetEdgeProperty(action: SetEdgePropertyCommand | EdgePropertySetEvent): void
-
Parameters
-
action: SetEdgePropertyCommand | EdgePropertySetEvent
Returns void
Protected SetModelProperty
- SetModelProperty(action: SetModelPropertyCommand | ModelPropertySetEvent): void
-
Parameters
-
action: SetModelPropertyCommand | ModelPropertySetEvent
Returns void
Protected SetNodeProperty
- SetNodeProperty(action: SetNodePropertyCommand | NodePropertySetEvent): void
-
Parameters
-
action: SetNodePropertyCommand | NodePropertySetEvent
Returns void
Create a new CQRS Graph