Index

A B C D E G H J M O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AbstractAggregateCommand<ROOT_ID extends org.fuin.ddd4j.ddd.AggregateRootId,ENTITY_ID extends org.fuin.ddd4j.ddd.EntityId> - Class in org.fuin.cqrs4j
Base class for all commands that are directed to an existing aggregate.
AbstractAggregateCommand() - Constructor for class org.fuin.cqrs4j.AbstractAggregateCommand
Default constructor for JAXB.
AbstractAggregateCommand(AggregateRootId, AggregateVersion) - Constructor for class org.fuin.cqrs4j.AbstractAggregateCommand
Constructor with aggregate root id and version.
AbstractAggregateCommand(EntityIdPath, AggregateVersion) - Constructor for class org.fuin.cqrs4j.AbstractAggregateCommand
Constructor with entitiy id path and version.
AbstractAggregateCommand(EntityIdPath, AggregateVersion, Event) - Constructor for class org.fuin.cqrs4j.AbstractAggregateCommand
Constructor with event this one responds to.
AbstractAggregateCommand(EntityIdPath, AggregateVersion, EventId, EventId) - Constructor for class org.fuin.cqrs4j.AbstractAggregateCommand
Constructor with optional data.
AbstractAggregateCommand.Builder<ROOT_ID extends org.fuin.ddd4j.ddd.AggregateRootId,ENTITY_ID extends org.fuin.ddd4j.ddd.EntityId,TYPE extends AbstractAggregateCommand<ROOT_ID,ENTITY_ID>,BUILDER extends AbstractCommand.Builder<ROOT_ID,TYPE,BUILDER>> - Class in org.fuin.cqrs4j
Base class for event builders.
AbstractCommand - Class in org.fuin.cqrs4j
Base class for all commands.
AbstractCommand() - Constructor for class org.fuin.cqrs4j.AbstractCommand
Default constructor.
AbstractCommand(Event) - Constructor for class org.fuin.cqrs4j.AbstractCommand
Constructor with event this one responds to.
AbstractCommand(EventId, EventId) - Constructor for class org.fuin.cqrs4j.AbstractCommand
Constructor with optional data.
AbstractCommand.Builder<ID extends org.fuin.ddd4j.ddd.EntityId,TYPE extends AbstractCommand,BUILDER extends AbstractCommand.Builder<ID,TYPE,BUILDER>> - Class in org.fuin.cqrs4j
Base class for event builders.
AbstractMultiCommandExecutor<CONTEXT,RESULT> - Class in org.fuin.cqrs4j
Handles multiple commands by delegating the call to other executors.
AbstractMultiCommandExecutor(List<CommandExecutor>) - Constructor for class org.fuin.cqrs4j.AbstractMultiCommandExecutor
Constructor with mandatory data.
AbstractMultiCommandExecutor(CommandExecutor...) - Constructor for class org.fuin.cqrs4j.AbstractMultiCommandExecutor
Constructor with command handler array.
AbstractResult<DATA> - Class in org.fuin.cqrs4j
Result of a request.
AbstractResult() - Constructor for class org.fuin.cqrs4j.AbstractResult
Protected default constructor for de-serialization.
AbstractResult(Exception) - Constructor for class org.fuin.cqrs4j.AbstractResult
Constructor with exception.
AbstractResult(ResultType, String, String) - Constructor for class org.fuin.cqrs4j.AbstractResult
Constructor with all data.
adaptFromJson(JsonObject) - Method in class org.fuin.cqrs4j.DataResultJsonbAdapter
 
adaptToJson(DataResult) - Method in class org.fuin.cqrs4j.DataResultJsonbAdapter
 
AggregateCommand<ROOT_ID extends org.fuin.ddd4j.ddd.AggregateRootId,ENTITY_ID extends org.fuin.ddd4j.ddd.EntityId> - Interface in org.fuin.cqrs4j
Common behavior shared by all commands related to an aggregate.
aggregateVersion(AggregateVersion) - Method in class org.fuin.cqrs4j.AbstractAggregateCommand.Builder
Sets the expected aggregate version.

B

Builder(TYPE) - Constructor for class org.fuin.cqrs4j.AbstractAggregateCommand.Builder
Constructor with event.
Builder(TYPE) - Constructor for class org.fuin.cqrs4j.AbstractCommand.Builder
Constructor with event.

C

Command - Interface in org.fuin.cqrs4j
Common behavior shared by all commands.
CommandExecutionFailedException - Exception in org.fuin.cqrs4j
The execution of a command failed.
CommandExecutionFailedException(Exception) - Constructor for exception org.fuin.cqrs4j.CommandExecutionFailedException
Constructor with all data.
CommandExecutor<CONTEXT,RESULT,CMD extends Command> - Interface in org.fuin.cqrs4j
Executes one or more commands.
Cqrs4JUtils - Class in org.fuin.cqrs4j
Provides some helper methods.

D

DataResult<DATA> - Class in org.fuin.cqrs4j
Result of a request that contains data in addition to the standard result fields.
DataResult() - Constructor for class org.fuin.cqrs4j.DataResult
Protected default constructor for de-serialization.
DataResult(Exception) - Constructor for class org.fuin.cqrs4j.DataResult
Constructor with exception.
DataResult(ResultType, String, String, DATA) - Constructor for class org.fuin.cqrs4j.DataResult
Constructor without data element name.
DataResult(ResultType, String, String, DATA, String) - Constructor for class org.fuin.cqrs4j.DataResult
Constructor with all data.
DataResultJsonbAdapter - Class in org.fuin.cqrs4j
Converts an DataResult from/to JSON.
DataResultJsonbAdapter(Jsonb) - Constructor for class org.fuin.cqrs4j.DataResultJsonbAdapter
Constructor with jsonb instance.
dispatchCommonEvents(List<CommonEvent>) - Method in interface org.fuin.cqrs4j.EventDispatcher
Dispatch all common events to the appropriate event handler.
dispatchCommonEvents(List<CommonEvent>) - Method in class org.fuin.cqrs4j.SimpleEventDispatcher
 
dispatchEvent(Event) - Method in interface org.fuin.cqrs4j.EventDispatcher
Dispatches the given event to the appropriate event handler.
dispatchEvent(Event) - Method in class org.fuin.cqrs4j.SimpleEventDispatcher
 
dispatchEvents(List<Event>) - Method in interface org.fuin.cqrs4j.EventDispatcher
Dispatch all events to the appropriate event handler.
dispatchEvents(List<Event>) - Method in class org.fuin.cqrs4j.SimpleEventDispatcher
 

E

ensureBuildableAbstractAggregateCommand() - Method in class org.fuin.cqrs4j.AbstractAggregateCommand.Builder
Ensures that everything is setup for building the object or throws a runtime exception otherwise.
ensureBuildableAbstractCommand() - Method in class org.fuin.cqrs4j.AbstractCommand.Builder
Ensures that everything is setup for building the object or throws a runtime exception otherwise.
entityIdPath(AggregateRootId) - Method in class org.fuin.cqrs4j.AbstractAggregateCommand.Builder
Convenience method to set the entity identifier path if the path has only the aggregate root identifier.
entityIdPath(EntityIdPath) - Method in class org.fuin.cqrs4j.AbstractAggregateCommand.Builder
Sets the identifier path from aggregate root to the entity that emitted the event.
equals(Object) - Method in class org.fuin.cqrs4j.DataResult
 
equals(Object) - Method in class org.fuin.cqrs4j.SimpleResult
 
error(String, String) - Static method in class org.fuin.cqrs4j.DataResult
Create an error result without any data.
error(String, String) - Static method in class org.fuin.cqrs4j.SimpleResult
Create an error result.
ERROR - Enum constant in enum org.fuin.cqrs4j.ResultType
The command execution failed.
EventDispatcher - Interface in org.fuin.cqrs4j
Registry with all event handlers.
EventHandler<TYPE extends org.fuin.ddd4j.ddd.Event> - Interface in org.fuin.cqrs4j
Does something useful using the input from an event.
execute(CONTEXT, CMD) - Method in interface org.fuin.cqrs4j.CommandExecutor
Executes the given command.
execute(CONTEXT, Command) - Method in class org.fuin.cqrs4j.AbstractMultiCommandExecutor
 

G

getAggregateRootId() - Method in class org.fuin.cqrs4j.AbstractAggregateCommand
 
getAggregateRootId() - Method in interface org.fuin.cqrs4j.AggregateCommand
Returns the identifier of the aggregate root this command targets.
getAggregateVersion() - Method in class org.fuin.cqrs4j.AbstractAggregateCommand
 
getAggregateVersionInteger() - Method in class org.fuin.cqrs4j.AbstractAggregateCommand
 
getAllTypes() - Method in interface org.fuin.cqrs4j.EventDispatcher
Returns a set of all known types.
getAllTypes() - Method in class org.fuin.cqrs4j.SimpleEventDispatcher
 
getCode() - Method in class org.fuin.cqrs4j.AbstractResult
 
getCode() - Method in interface org.fuin.cqrs4j.Result
Returns the result code.
getCommandTypes() - Method in class org.fuin.cqrs4j.AbstractMultiCommandExecutor
 
getCommandTypes() - Method in interface org.fuin.cqrs4j.CommandExecutor
Returns a list of commands this executor can handle.
getData() - Method in class org.fuin.cqrs4j.DataResult
Returns the result data.
getData() - Method in interface org.fuin.cqrs4j.Result
Returns the result data.
getData() - Method in class org.fuin.cqrs4j.SimpleResult
 
getDataClass() - Method in class org.fuin.cqrs4j.DataResult
Returns the name of the class contained in the data element.
getDataElement() - Method in class org.fuin.cqrs4j.DataResult
Returns the name of the data attribute.
getEntityId() - Method in class org.fuin.cqrs4j.AbstractAggregateCommand
 
getEntityIdPath() - Method in class org.fuin.cqrs4j.AbstractAggregateCommand
 
getEventType() - Method in interface org.fuin.cqrs4j.EventHandler
Returns the type of event this handler operates on.
getMessage() - Method in class org.fuin.cqrs4j.AbstractResult
 
getMessage() - Method in interface org.fuin.cqrs4j.Result
Returns the result message.
getType() - Method in class org.fuin.cqrs4j.AbstractResult
 
getType() - Method in interface org.fuin.cqrs4j.Result
Returns the result type.

H

handle(TYPE) - Method in interface org.fuin.cqrs4j.EventHandler
Modifies the view using the given event.
hashCode() - Method in class org.fuin.cqrs4j.DataResult
 
hashCode() - Method in class org.fuin.cqrs4j.SimpleResult
 

J

JAXB_CLASSES - Static variable in class org.fuin.cqrs4j.Cqrs4JUtils
Classes used for JAX-B serialization.

M

MultiCommandExecutor<CONTEXT,RESULT> - Class in org.fuin.cqrs4j
Handles multiple commands by delegating the call to other executors.
MultiCommandExecutor(List<CommandExecutor>) - Constructor for class org.fuin.cqrs4j.MultiCommandExecutor
Constructor with mandatory data.
MultiCommandExecutor(CommandExecutor...) - Constructor for class org.fuin.cqrs4j.MultiCommandExecutor
Constructor with command handler array.

O

ok() - Static method in class org.fuin.cqrs4j.DataResult
Create a success result without any data.
ok() - Static method in class org.fuin.cqrs4j.SimpleResult
Create a success result.
ok(T) - Static method in class org.fuin.cqrs4j.DataResult
Create a success result with some data.
ok(T, String) - Static method in class org.fuin.cqrs4j.DataResult
Create a success result with some data.
OK - Enum constant in enum org.fuin.cqrs4j.ResultType
Command was successfully executed.
org.fuin.cqrs4j - module org.fuin.cqrs4j
 
org.fuin.cqrs4j - package org.fuin.cqrs4j
Copyright (C) 2015 Michael Schnell.

P

PARAM_ENTITY_PATH_NOT_EQUAL_CMD_ENTITY_PATH - Static variable in class org.fuin.cqrs4j.Cqrs4JUtils
PRECONDITION_VIOLATED - Static variable in class org.fuin.cqrs4j.Cqrs4JUtils
Some constraints were violated.
ProjectionService - Interface in org.fuin.cqrs4j
Provides functionality related to projections.

R

readProjectionPosition(StreamId) - Method in interface org.fuin.cqrs4j.ProjectionService
Reads the position that was read last time.
resetAbstractAggregateCommand(TYPE) - Method in class org.fuin.cqrs4j.AbstractAggregateCommand.Builder
Sets the internal instance to a new one.
resetAbstractCommand(TYPE) - Method in class org.fuin.cqrs4j.AbstractCommand.Builder
Sets the internal instance to a new one.
resetProjectionPosition(StreamId) - Method in interface org.fuin.cqrs4j.ProjectionService
Sets the stored position of the projection to the start position.
Result<DATA> - Interface in org.fuin.cqrs4j
Result of a request.
ResultType - Enum in org.fuin.cqrs4j
Type of the result.
runLocked(Semaphore, Runnable) - Static method in class org.fuin.cqrs4j.Cqrs4JUtils
Waits until a lock is available and executes the code after it was acquired.

S

SHORT_ID_PREFIX - Static variable in class org.fuin.cqrs4j.Cqrs4JUtils
Prefix for unique short identifiers.
SimpleEventDispatcher - Class in org.fuin.cqrs4j
Registry with all event handlers.
SimpleEventDispatcher(List<EventHandler>) - Constructor for class org.fuin.cqrs4j.SimpleEventDispatcher
Constructor with list of event handlers.
SimpleEventDispatcher(EventHandler...) - Constructor for class org.fuin.cqrs4j.SimpleEventDispatcher
Constructor with array of event handlers.
SimpleResult - Class in org.fuin.cqrs4j
Result of a request.
SimpleResult() - Constructor for class org.fuin.cqrs4j.SimpleResult
Protected default constructor for de-serialization.
SimpleResult(Exception) - Constructor for class org.fuin.cqrs4j.SimpleResult
Constructor with exception.
SimpleResult(ResultType, String, String) - Constructor for class org.fuin.cqrs4j.SimpleResult
Constructor with all data.

T

toResult() - Method in interface org.fuin.cqrs4j.ToResultCapable
Returns a result for the object.
ToResultCapable - Interface in org.fuin.cqrs4j
Marks an object that can be converted into a result.
toString() - Method in class org.fuin.cqrs4j.DataResult
 
toString() - Method in class org.fuin.cqrs4j.SimpleResult
 
tryLocked(Semaphore, Runnable) - Static method in class org.fuin.cqrs4j.Cqrs4JUtils
Tries to acquire a lock and runs the code.

U

updateProjectionPosition(StreamId, Long) - Method in interface org.fuin.cqrs4j.ProjectionService
Updates the position to read next time.

V

valueOf(String) - Static method in enum org.fuin.cqrs4j.ResultType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.fuin.cqrs4j.ResultType
Returns an array containing the constants of this enum type, in the order they are declared.
verifyParamEntityIdPathEqualsCmdEntityIdPath(AggregateCommand<?, ?>, ID...) - Static method in class org.fuin.cqrs4j.Cqrs4JUtils
Verifies that an aggregate identifier from a parameter is equal to the aggregate identifier from the command.
verifyPrecondition(Validator, Object) - Static method in class org.fuin.cqrs4j.Cqrs4JUtils
Verifies a precondition.

W

warning(String, String) - Static method in class org.fuin.cqrs4j.SimpleResult
Create a warning result.
WARNING - Enum constant in enum org.fuin.cqrs4j.ResultType
The command was executed, but there was some kind of issue.
A B C D E G H J M O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form