MutableDomainEventRecord

class MutableDomainEventRecord(val actual: ObjectNode) : DomainEventRecord

Mutable wrapper for domain event records.

This class provides a mutable interface to domain event records stored as Jackson ObjectNode instances. It allows modification of event properties during the upgrading process.

Parameters

actual

The ObjectNode to wrap

See also

Constructors

Link copied to clipboard
constructor(actual: ObjectNode)

Creates a new MutableDomainEventRecord wrapping the given ObjectNode

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val actual: ObjectNode

The underlying ObjectNode containing the event data

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var body: ObjectNode

The body of the event as an ObjectNode, mutable for upgrading.

Link copied to clipboard
open override var bodyType: String

The body type of the event, mutable for upgrading.

Link copied to clipboard
open val commandId: String
Link copied to clipboard
open override val contextName: String
Link copied to clipboard
open val createTime: Long
Link copied to clipboard
open val header: ObjectNode
Link copied to clipboard
open val id: String
Link copied to clipboard
open val isLast: Boolean
Link copied to clipboard
open override var name: String

The name of the event, mutable for upgrading.

Link copied to clipboard
open val ownerId: String
Link copied to clipboard
open override var revision: String

The revision of the event, mutable for upgrading.

Link copied to clipboard
open val sequence: Int
Link copied to clipboard
open val tenantId: String
Link copied to clipboard
open val version: Int

Functions

Link copied to clipboard
fun NamedBoundedContext.getContextAlias(boundedContext: BoundedContext? = MetadataSearcher.metadata.contexts[contextName]): String
Link copied to clipboard

Gets the context alias prefix for this bounded context.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Converts a domain event record to a dropped event record.

Link copied to clipboard
Link copied to clipboard

Extension function to convert a DomainEventRecord to a MutableDomainEventRecord.