public enum AggregateCreationPolicy extends Enum<AggregateCreationPolicy>
Enum Constant and Description |
---|
ALWAYS
Always create a new instance of the aggregate on invoking the method.
|
CREATE_IF_MISSING
Create a new instance of the aggregate when it is not found.
|
NEVER
Expect instance of the aggregate to exist.
|
Modifier and Type | Method and Description |
---|---|
static AggregateCreationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AggregateCreationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AggregateCreationPolicy ALWAYS
public static final AggregateCreationPolicy CREATE_IF_MISSING
public static final AggregateCreationPolicy NEVER
public static AggregateCreationPolicy[] values()
for (AggregateCreationPolicy c : AggregateCreationPolicy.values()) System.out.println(c);
public static AggregateCreationPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2024. All rights reserved.