Interface CardRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Card,​java.lang.Long>, org.springframework.data.repository.Repository<Card,​java.lang.Long>

    @Repository
    public interface CardRepository
    extends org.springframework.data.repository.CrudRepository<Card,​java.lang.Long>
    • Method Detail

      • getAllByPlayerAndLocation

        java.util.Optional<java.util.List<Card>> getAllByPlayerAndLocation​(Player player,
                                                                           Card.Location location)
      • getAllByPlayer

        java.util.Optional<java.util.ArrayList<Card>> getAllByPlayer​(Player player)
      • getByType

        java.util.Optional<Card> getByType​(Card.Type valueOf)
      • getAllByTypeAndLocation

        java.util.Optional<java.util.List<Card>> getAllByTypeAndLocation​(Card.Type type,
                                                                         Card.Location stack)
      • countAllByTypeAndLocation

        java.util.Optional<java.lang.Integer> countAllByTypeAndLocation​(Card.Type type,
                                                                        Card.Location location)
      • countAllByPlayerAndLocation

        java.util.Optional<java.lang.Integer> countAllByPlayerAndLocation​(Player player,
                                                                          Card.Location hand)
      • getAllByPlayerAndLocationOrderByOrderInLocation

        java.util.ArrayList<Card> getAllByPlayerAndLocationOrderByOrderInLocation​(Player player,
                                                                                  Card.Location location)