Class CharacterHelper

java.lang.Object
org.starwars.server.datafetchersdelegate.CharacterHelper

@Component public class CharacterHelper extends Object
Author:
etienne-sf
  • Constructor Details

    • CharacterHelper

      public CharacterHelper()
  • Method Details

    • findById

      public Character findById(UUID id)
      Reads one Character, from its id
      Parameters:
      id -
      Returns:
    • friends

      public List<Character> friends(UUID id)
      Retrieves the list of friends of the character which id is given. This character can be a Human or a Droid.
      Parameters:
      id -
      Returns:
    • findAll

      public List<Character> findAll()
    • findByAppearsIn

      public List<Character> findByAppearsIn(String episode)
    • findAppearsInById

      public List<Episode> findAppearsInById(UUID id)
    • batchLoader

      public List<Character> batchLoader(List<UUID> keys)