-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename and delete some patterns (#2970)
- Loading branch information
Showing
94 changed files
with
972 additions
and
3,619 deletions.
There are no files selected for viewing
File renamed without changes.
136 changes: 136 additions & 0 deletions
136
...nd-query-responsibility-segregation/etc/command-query-responsibility-segregation.urm.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
@startuml | ||
package com.iluwatar.cqrs.util { | ||
class HibernateUtil { | ||
- LOGGER : Logger {static} | ||
- SESSIONFACTORY : SessionFactory {static} | ||
+ HibernateUtil() | ||
- buildSessionFactory() : SessionFactory {static} | ||
+ getSessionFactory() : SessionFactory {static} | ||
} | ||
} | ||
package com.iluwatar.cqrs.app { | ||
class App { | ||
- LOGGER : Logger {static} | ||
+ App() | ||
+ main(args : String[]) {static} | ||
} | ||
} | ||
package com.iluwatar.cqrs.dto { | ||
class Author { | ||
- email : String | ||
- name : String | ||
- username : String | ||
+ Author() | ||
+ Author(name : String, email : String, username : String) | ||
# canEqual(other : Object) : boolean | ||
+ equals(o : Object) : boolean | ||
+ getEmail() : String | ||
+ getName() : String | ||
+ getUsername() : String | ||
+ hashCode() : int | ||
+ toString() : String | ||
} | ||
class Book { | ||
- price : double | ||
- title : String | ||
+ Book() | ||
+ Book(title : String, price : double) | ||
# canEqual(other : Object) : boolean | ||
+ equals(o : Object) : boolean | ||
+ getPrice() : double | ||
+ getTitle() : String | ||
+ hashCode() : int | ||
+ toString() : String | ||
} | ||
} | ||
package com.iluwatar.cqrs.commandes { | ||
interface CommandService { | ||
+ authorCreated(String, String, String) {abstract} | ||
+ authorEmailUpdated(String, String) {abstract} | ||
+ authorNameUpdated(String, String) {abstract} | ||
+ authorUsernameUpdated(String, String) {abstract} | ||
+ bookAddedToAuthor(String, double, String) {abstract} | ||
+ bookPriceUpdated(String, double) {abstract} | ||
+ bookTitleUpdated(String, String) {abstract} | ||
} | ||
class CommandServiceImpl { | ||
- sessionFactory : SessionFactory | ||
+ CommandServiceImpl() | ||
+ authorCreated(username : String, name : String, email : String) | ||
+ authorEmailUpdated(username : String, email : String) | ||
+ authorNameUpdated(username : String, name : String) | ||
+ authorUsernameUpdated(oldUsername : String, newUsername : String) | ||
+ bookAddedToAuthor(title : String, price : double, username : String) | ||
+ bookPriceUpdated(title : String, price : double) | ||
+ bookTitleUpdated(oldTitle : String, newTitle : String) | ||
- getAuthorByUsername(username : String) : Author | ||
- getBookByTitle(title : String) : Book | ||
} | ||
} | ||
package com.iluwatar.cqrs.queries { | ||
interface QueryService { | ||
+ getAuthorBooks(String) : List<Book> {abstract} | ||
+ getAuthorBooksCount(String) : BigInteger {abstract} | ||
+ getAuthorByUsername(String) : Author {abstract} | ||
+ getAuthorsCount() : BigInteger {abstract} | ||
+ getBook(String) : Book {abstract} | ||
} | ||
class QueryServiceImpl { | ||
- sessionFactory : SessionFactory | ||
+ QueryServiceImpl() | ||
+ getAuthorBooks(username : String) : List<Book> | ||
+ getAuthorBooksCount(username : String) : BigInteger | ||
+ getAuthorByUsername(username : String) : Author | ||
+ getAuthorsCount() : BigInteger | ||
+ getBook(title : String) : Book | ||
} | ||
} | ||
package com.iluwatar.cqrs.constants { | ||
class AppConstants { | ||
+ E_EVANS : String {static} | ||
+ J_BLOCH : String {static} | ||
+ M_FOWLER : String {static} | ||
+ USER_NAME : String {static} | ||
+ AppConstants() | ||
} | ||
} | ||
package com.iluwatar.cqrs.domain.model { | ||
class Author { | ||
- email : String | ||
- id : long | ||
- name : String | ||
- username : String | ||
# Author() | ||
+ Author(username : String, name : String, email : String) | ||
+ getEmail() : String | ||
+ getId() : long | ||
+ getName() : String | ||
+ getUsername() : String | ||
+ setEmail(email : String) | ||
+ setId(id : long) | ||
+ setName(name : String) | ||
+ setUsername(username : String) | ||
+ toString() : String | ||
} | ||
class Book { | ||
- author : Author | ||
- id : long | ||
- price : double | ||
- title : String | ||
# Book() | ||
+ Book(title : String, price : double, author : Author) | ||
+ getAuthor() : Author | ||
+ getId() : long | ||
+ getPrice() : double | ||
+ getTitle() : String | ||
+ setAuthor(author : Author) | ||
+ setId(id : long) | ||
+ setPrice(price : double) | ||
+ setTitle(title : String) | ||
+ toString() : String | ||
} | ||
} | ||
Book --> "-author" Author | ||
CommandServiceImpl ..|> CommandService | ||
QueryServiceImpl ..|> QueryService | ||
@enduml |
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
commander/src/main/java/com/iluwatar/commander/RetryParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
commander/src/main/java/com/iluwatar/commander/TimeLimits.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.