package com.iluwatar.cqrs.queries;

import java.util.List;

import com.iluwatar.cqrs.dto.AuthorDTO;
import com.iluwatar.cqrs.dto.BookDTO;

public interface IQueryService {

  public abstract AuthorDTO getAuthorByUsername(String username);

  public abstract Double getBookPrice(String title);

  public abstract List<BookDTO> getAuthorBooks(String username);

  public abstract long getAuthorBooksCount(String username);

  public abstract long getAuthorsCount();

}

@@ -29,16 +29,45 @@
 eries;%0A%0A
+import java.math.BigInteger;%0A
 import j
@@ -284,22 +284,23 @@
 act 
-Double
+BookDTO
  getBook
 Pric
@@ -299,13 +299,8 @@
 Book
-Price
 (Str
@@ -388,36 +388,42 @@
 public abstract 
-long
+BigInteger
  getAuthorBooksC
@@ -468,12 +468,18 @@
 act 
-long
+BigInteger
  get

change long with BigIntger and replace getBook()