| Package | Description |
|---|---|
| org.fuin.ddd4j.ddd |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDomainEvent<ID extends EntityId>
Base class for domain events.
|
class |
AbstractEntity<ROOT_ID extends AggregateRootId,ROOT extends AbstractAggregateRoot<ROOT_ID>,ID extends EntityId>
Base class for entities.
|
interface |
DomainEvent<ID extends EntityId>
Domain event published by an entity.
|
interface |
Entity<ID extends EntityId>
An object that is not defined by its attributes, but rather by a thread of continuity and its identity.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
AggregateRootId
Identifies an aggregate within all aggregates of the same type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AggregateRootUuid
UUID based aggregate root identifier.
|
class |
IntegerEntityId
Integer based entity identifier.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends EntityId> |
EntityIdPath.first()
Returns the first entity identifier in the path.
|
<T extends EntityId> |
EntityIdPath.last()
Returns the last entity identifier in the path.
|
| Modifier and Type | Method and Description |
|---|---|
EntityId |
EntityIdConverter.adaptFromJson(java.lang.String str) |
EntityId |
EntityIdFactory.createEntityId(java.lang.String type,
java.lang.String id)
Creates an entity id by type and string identifier.
|
EntityId |
EntityIdConverter.toVO(java.lang.String value)
Converts a string into an entity identifier.
|
EntityId |
EntityIdConverter.unmarshal(java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<EntityId> |
EntityIdPath.iterator()
Creates a NEW list of the entity identifiers contained in the entity id path and returns an iterator on it.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
EntityIdConverter.adaptToJson(EntityId obj) |
java.lang.String |
EntityIdConverter.fromVO(EntityId value)
Converts the value object into a String.
|
java.lang.String |
EntityIdConverter.marshal(EntityId value) |
| Constructor and Description |
|---|
DuplicateEntityException(@NotNull EntityIdPath parentIdPath,
@NotNull EntityId entityId)
Constructor with all data.
|
EntityIdPath(EntityId... entityIds)
Constructor with ID array.
|
EntityNotFoundException(EntityIdPath parentIdPath,
@NotNull EntityId entityId)
Constructor with all data.
|
| Constructor and Description |
|---|
EntityIdPath(java.util.List<EntityId> ids)
Constructor with ID list.
|
Copyright © 2019 fuin.org (Germany). All Rights Reserved.