AggregateMetadata

data class AggregateMetadata<C : Any, S : Any>(val namedAggregate: NamedAggregate, val staticTenantId: String?, val state: StateAggregateMetadata<S>, val command: CommandAggregateMetadata<C>) : NamedAggregateDecorator, Metadata

StateAggregateMetadata .

Author

ahoo wang

Constructors

Link copied to clipboard
constructor(namedAggregate: NamedAggregate, staticTenantId: String?, state: StateAggregateMetadata<S>, command: CommandAggregateMetadata<C>)

Properties

Link copied to clipboard
open override val aggregateName: String
Link copied to clipboard
Link copied to clipboard
open override val contextName: String
Link copied to clipboard

Are state aggregation and command aggregation a aggregation relationship?.

Link copied to clipboard
open override val namedAggregate: NamedAggregate
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun NamedAggregate.aggregateId(id: String = generateId(), tenantId: String = TenantId.DEFAULT_TENANT_ID): DefaultAggregateId
fun AggregateMetadata<*, *>.aggregateId(id: String = generateId(), tenantId: String = staticTenantId ?: TenantId.DEFAULT_TENANT_ID): DefaultAggregateId
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
fun NamedBoundedContext.getContextAlias(boundedContext: BoundedContext? = MetadataSearcher.metadata.contexts[contextName]): String
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <S : Any> AggregateMetadata<*, S>.toStateAggregate(state: S, version: Int, eventId: String = "", firstOperator: String = "", operator: String = "", firstEventTime: Long = 0, eventTime: Long = 0, deleted: Boolean = false): StateAggregate<S>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard