Package org.fuin.ddd4j.ddd
-
Interface Summary Interface Description AggregateCache<AGGREGATE> Cache for aggregates of the same type.AggregateRoot<ID extends AggregateRootId> Dedicated entity of a group of entities (The group is called "Aggregate") that guarantees the consistency of changes being made within the group by forbidding external objects from holding direct references to its members.AggregateRootId Identifies an aggregate within all aggregates of the same type.BusinessKey Human readable business (natural) key often used in documents or shown in the user interface.DomainEvent<ID extends EntityId> Domain event published by an entity.EncryptedData.Decrypter Decrypts some data.EncryptedData.Encrypter Encrypts some data.Entity<ID extends EntityId> An object that is not defined by its attributes, but rather by a thread of continuity and its identity.EntityId Identifies an entity within all entities of the same type.EntityIdFactory Factory to create entity identifier.EntityType Identifies a type of entity within all entity types of the context.Event Something that happened in the system.Repository<ID extends AggregateRootId,T extends AggregateRoot<ID>> Repository that supports CRUD operations for an aggregate.TechnicalId Technical identifier that is only used internally and never shown to a user. -
Class Summary Class Description AbstractAggregateRoot<ID extends AggregateRootId> Base class for aggregate roots.AbstractDomainEvent<ID extends EntityId> Base class for domain events.AbstractDomainEvent.Builder<ID extends EntityId,TYPE extends AbstractDomainEvent<ID>,BUILDER extends AbstractDomainEvent.Builder<ID,TYPE,BUILDER>> Base class for event builders.AbstractEntity<ROOT_ID extends AggregateRootId,ROOT extends AbstractAggregateRoot<ROOT_ID>,ID extends EntityId> Base class for entities.AbstractEvent Base class for events.AbstractEvent.Builder<TYPE extends AbstractEvent,BUILDER extends AbstractEvent.Builder<TYPE,BUILDER>> Base class for event builders.AggregateAlreadyExistsException.Data Specific exception data.AggregateDeletedException.Data Specific exception data.AggregateNoCache<AGGREGATE> Never caches anything.AggregateNotFoundException.Data Specific exception data.AggregateRootUuid UUID based aggregate root identifier.AggregateVersion Version of an aggregate.AggregateVersionConflictException.Data Specific exception data.AggregateVersionConverter Converts an aggregate version into an integer and back (JAXB and JPA).AggregateVersionNotFoundException.Data Specific exception data.Ddd4JUtils Utility methods and constants.DecryptionFailedException.Data Specific exception data.DomainEventExpectedEntityIdPathValidator Validates that the path has a defined order and type.DuplicateEntityException.Data Specific exception data.EncryptedData Container for encrypted data.EncryptionIvVersionUnknownException.Data Specific exception data.EncryptionKeyIdUnknownException.Data Specific exception data.EncryptionKeyVersionUnknownException.Data Specific exception data.EntityIdConverter JAXB and JSON converter for an entity identifier.EntityIdPath An ordered list of entity identifiers.EntityIdPathConverter JAXB and JPA converter for an entity identifier path.EntityNotFoundException.Data Specific exception data.EventId Universal unique event identifier.EventIdConverter JAXB and JPA converter for an entity identifier.EventType Identifies an event type within an aggregate type.ExpectedEntityIdPathValidator Validates that the path has a defined order and type.IntegerEntityId Integer based entity identifier.MethodExecutor Lightweight utility class to execute a method using reflection.StringBasedEntityType Entity type based on a string with a maximum length of 255 characters. -
Exception Summary Exception Description AggregateAlreadyExistsException An aggregate already exists when trying to create it.AggregateDeletedException Signals that an aggregate of a given type and identifier was deleted from the repository.AggregateNotFoundException Signals that an aggregate of a given type and identifier was not found in the repository.AggregateVersionConflictException Signals a conflict between an expected and an actual version for an aggregate.AggregateVersionNotFoundException Signals that the requested version for an aggregate does not exist.DecryptionFailedException Signals that decrypting the data failed.DuplicateEntityException Signals that an entity already existed in it's parent.EncryptionIvVersionUnknownException Signals that the requested version of the initialization vector is unknown.EncryptionKeyIdUnknownException Signals that the encryption key identifier is unknown.EncryptionKeyVersionUnknownException Signals that the requested version of the encryption key is unknown.EntityNotFoundException Signals that an entity was not found. -
Annotation Types Summary Annotation Type Description ApplyEvent Identifies a method in an aggregate or an entity that applies a given domain event.ChildEntityLocator Method that is able to return a child entity by it's identifier.DomainEventExpectedEntityIdPath The entity identifier path of a domain event should contain a defined order and type of entries.ExpectedEntityIdPath The entity identifier path should contain a defined order and type of entries.