org.axonframework.domain
Class StringAggregateIdentifier
java.lang.Object
org.axonframework.domain.AbstractAggregateIdentifier
org.axonframework.domain.StringAggregateIdentifier
- All Implemented Interfaces:
- Serializable, Comparable<AggregateIdentifier>, AggregateIdentifier
- Direct Known Subclasses:
- UUIDAggregateIdentifier
public class StringAggregateIdentifier
- extends AbstractAggregateIdentifier
Aggregate identifier implementation that requires a String as the actual backing identifier value.
- Since:
- 0.7
- Author:
- Allard Buijze
- See Also:
- Serialized Form
|
Method Summary |
String |
asString()
Returns the String representation of this aggregate identifier. |
StringAggregateIdentifier
public StringAggregateIdentifier(String identifier)
- Creates a String based AggregateIdentifier instance backed with the given
identifier.
- Parameters:
identifier - The String representation of the identifier. May not be null.
asString
public String asString()
- Description copied from interface:
AggregateIdentifier
- Returns the String representation of this aggregate identifier. May never return
null.
- Returns:
- the non-
null String representation of this aggregate identifier.
Copyright © 2011. All Rights Reserved.