Package org.fuin.ddd4j.ddd
Interface EntityId
-
- All Superinterfaces:
Serializable,TechnicalId
- All Known Subinterfaces:
AggregateRootId
- All Known Implementing Classes:
AggregateRootUuid,IntegerEntityId
public interface EntityId extends TechnicalId
Identifies an entity within all entities of the same type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringasString()Returns the entity identifier as string.StringasTypedString()Returns the entity identifier as string with type and identifier.EntityTypegetType()Returns the type represented by this identifier.
-
-
-
Method Detail
-
getType
EntityType getType()
Returns the type represented by this identifier.- Returns:
- Type of entity.
-
asString
String asString()
Returns the entity identifier as string.- Returns:
- Entity identifier.
-
asTypedString
String asTypedString()
Returns the entity identifier as string with type and identifier.- Returns:
- Type and identifier.
-
-