public interface EntityIdFactory
Factory to create entity identifier.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsType(String type) Verifies if the given type string is a valid one.createEntityId(String type, String id) Creates an entity id by type and string identifier.booleanDetermines if an identifier of the given type is valid.
-
Method Details
-
containsType
Verifies if the given type string is a valid one.- Parameters:
type- Type to be verified.- Returns:
- TRUE if the factory can create identifiers for the given type.
-
isValid
Determines if an identifier of the given type is valid.- Parameters:
type- Type of the identifier.id- Identifier to be verified.- Returns:
- TRUE if the factory can create and identifier for the given type and value.
-
createEntityId
Creates an entity id by type and string identifier.- Parameters:
type- Type of the identifier.id- Identifier.- Returns:
- Entity identifier.
-