java-design-patterns/table-module/etc/table-module.urm.puml
Tao e498c25675
feature: #1319 add table module pattern (#1742)
* modify table module pattern

* fix code smells

* resolve conversation

Co-authored-by: tao-sun2 <sustc18st@gmai.com>
Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
2021-05-17 22:06:35 +03:00

38 lines
1.1 KiB
Plaintext

@startuml
package com.iluwatar.tablemodule {
class App {
- DB_URL : String {static}
- LOGGER : Logger {static}
- App()
- createDataSource() : DataSource {static}
- createSchema(dataSource : DataSource) {static}
- deleteSchema(dataSource : DataSource) {static}
+ main(args : String[]) {static}
}
class User {
- id : int
- password : String
- username : String
+ User(id : int, username : String, password : String)
# canEqual(other : Object) : boolean
+ equals(o : Object) : boolean
+ getId() : int
+ getPassword() : String
+ getUsername() : String
+ hashCode() : int
+ setId(id : int)
+ setPassword(password : String)
+ setUsername(username : String)
+ toString() : String
}
class UserTableModule {
+ CREATE_SCHEMA_SQL : String {static}
+ DELETE_SCHEMA_SQL : String {static}
- LOGGER : Logger {static}
- dataSource : DataSource
+ UserTableModule(userDataSource : DataSource)
+ login(username : String, password : String) : int
+ registerUser(user : User) : int
}
}
@enduml