fix pmd errors

This commit is contained in:
Sabiq Ihab 2017-06-30 20:30:19 +00:00
parent b67719ab32
commit d8919d88f0
3 changed files with 19 additions and 12 deletions

View File

@ -71,6 +71,13 @@ public class App {
Book dddBook = queries.getBook("Domain-Driven Design");
List<Book> jBlochBooks = queries.getAuthorBooks("jBloch");
System.out.println("Author username : " + nullAuthor);
System.out.println("Author eEvans : " + eEvans);
System.out.println("jBloch number of books : " + jBlochBooksCount);
System.out.println("Number of authors : " + authorsCount);
System.out.println("DDD book : " + dddBook);
System.out.println("jBloch books : " + jBlochBooks);
HibernateUtil.getSessionFactory().close();
}

View File

@ -6,18 +6,18 @@ package com.iluwatar.cqrs.commandes;
*/
public interface ICommandService {
public abstract void authorCreated(String username, String name, String email);
void authorCreated(String username, String name, String email);
public abstract void bookAddedToAuthor(String title, double price, String username);
void bookAddedToAuthor(String title, double price, String username);
public abstract void authorNameUpdated(String username, String name);
void authorNameUpdated(String username, String name);
public abstract void authorUsernameUpdated(String oldUsername, String newUsername);
void authorUsernameUpdated(String oldUsername, String newUsername);
public abstract void authorEmailUpdated(String username, String email);
void authorEmailUpdated(String username, String email);
public abstract void bookTitleUpdated(String oldTitle, String newTitle);
void bookTitleUpdated(String oldTitle, String newTitle);
public abstract void bookPriceUpdated(String title, double price);
void bookPriceUpdated(String title, double price);
}

View File

@ -13,14 +13,14 @@ import com.iluwatar.cqrs.dto.Book;
*/
public interface IQueryService {
public abstract Author getAuthorByUsername(String username);
Author getAuthorByUsername(String username);
public abstract Book getBook(String title);
Book getBook(String title);
public abstract List<Book> getAuthorBooks(String username);
List<Book> getAuthorBooks(String username);
public abstract BigInteger getAuthorBooksCount(String username);
BigInteger getAuthorBooksCount(String username);
public abstract BigInteger getAuthorsCount();
BigInteger getAuthorsCount();
}