Interface EntityIdFactory


public interface EntityIdFactory
Factory to create entity identifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Verifies if the given type string is a valid one.
    Creates an entity id by type and string identifier.
    boolean
    isValid(String type, String id)
    Determines if an identifier of the given type is valid.
  • Method Details

    • containsType

      boolean containsType(String type)
      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

      boolean isValid(String type, String id)
      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

      EntityId createEntityId(String type, String id)
      Creates an entity id by type and string identifier.
      Parameters:
      type - Type of the identifier.
      id - Identifier.
      Returns:
      Entity identifier.