#352- Unit Of Work : Update puml diagram.
This commit is contained in:
parent
530b9e9662
commit
1dc143abca
@ -1,48 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<class-diagram version="1.2.0" icons="true" always-add-relationships="false" generalizations="true" realizations="true"
|
|
||||||
associations="true" dependencies="false" nesting-relationships="true" router="FAN">
|
|
||||||
<class id="1" language="java" name="com.iluwatar.datatransfer.CustomerClientApp" project="data-transfer-object"
|
|
||||||
file="/data-transfer-object/src/main/java/com/iluwatar/datatransfer/CustomerClientApp.java" binary="false"
|
|
||||||
corner="BOTTOM_RIGHT">
|
|
||||||
<position height="-1" width="-1" x="145" y="93"/>
|
|
||||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
|
||||||
sort-features="false" accessors="true" visibility="true">
|
|
||||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
|
||||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
|
||||||
</display>
|
|
||||||
</class>
|
|
||||||
<class id="2" language="java" name="com.iluwatar.datatransfer.CustomerDto" project="data-transfer-object"
|
|
||||||
file="/data-transfer-object/src/main/java/com/iluwatar/datatransfer/CustomerDto.java" binary="false"
|
|
||||||
corner="BOTTOM_RIGHT">
|
|
||||||
<position height="-1" width="-1" x="386" y="329"/>
|
|
||||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
|
||||||
sort-features="false" accessors="true" visibility="true">
|
|
||||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
|
||||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
|
||||||
</display>
|
|
||||||
</class>
|
|
||||||
<class id="3" language="java" name="com.iluwatar.datatransfer.CustomerResource" project="data-transfer-object"
|
|
||||||
file="/data-transfer-object/src/main/java/com/iluwatar/datatransfer/CustomerResource.java" binary="false"
|
|
||||||
corner="BOTTOM_RIGHT">
|
|
||||||
<position height="-1" width="-1" x="677" y="93"/>
|
|
||||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
|
||||||
sort-features="false" accessors="true" visibility="true">
|
|
||||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
|
||||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
|
||||||
</display>
|
|
||||||
</class>
|
|
||||||
<association id="4">
|
|
||||||
<end type="SOURCE" refId="3" navigable="false">
|
|
||||||
<attribute id="5" name="customers"/>
|
|
||||||
<multiplicity id="6" minimum="0" maximum="2147483647"/>
|
|
||||||
</end>
|
|
||||||
<end type="TARGET" refId="2" navigable="true"/>
|
|
||||||
<display labels="true" multiplicity="true"/>
|
|
||||||
</association>
|
|
||||||
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
|
||||||
sort-features="false" accessors="true" visibility="true">
|
|
||||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
|
||||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
|
||||||
</classifier-display>
|
|
||||||
<association-display labels="true" multiplicity="true"/>
|
|
||||||
</class-diagram>
|
|
Binary file not shown.
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 41 KiB |
@ -1,10 +1,48 @@
|
|||||||
@startuml
|
@startuml
|
||||||
package com.iluwatar.unitofwork {
|
package com.iluwatar.unitofwork {
|
||||||
|
interface IUnitOfWork<T> {
|
||||||
|
+ DELETE : String {static}
|
||||||
|
+ INSERT : String {static}
|
||||||
|
+ MODIFY : String {static}
|
||||||
|
+ commit() {abstract}
|
||||||
|
+ registerDeleted(T) {abstract}
|
||||||
|
+ registerModified(T) {abstract}
|
||||||
|
+ registerNew(T) {abstract}
|
||||||
|
}
|
||||||
class Student {
|
class Student {
|
||||||
- address : String
|
- address : String
|
||||||
- id : Integer
|
- id : Integer
|
||||||
- name : String
|
- name : String
|
||||||
+ Student(id : Integer, name : String, address : String)
|
+ Student(id : Integer, name : String, address : String)
|
||||||
|
+ getAddress() : String
|
||||||
|
+ getId() : Integer
|
||||||
|
+ getName() : String
|
||||||
|
}
|
||||||
|
class StudentDatabase {
|
||||||
|
+ StudentDatabase()
|
||||||
|
+ delete(student : Student)
|
||||||
|
+ insert(student : Student)
|
||||||
|
+ modify(student : Student)
|
||||||
|
}
|
||||||
|
class StudentManagementApp {
|
||||||
|
+ StudentManagementApp()
|
||||||
|
+ main(args : String[]) {static}
|
||||||
|
}
|
||||||
|
class StudentRepository {
|
||||||
|
- LOGGER : Logger {static}
|
||||||
|
- context : Map<String, List<Student>>
|
||||||
|
- studentDatabase : StudentDatabase
|
||||||
|
+ StudentRepository(context : Map<String, List<Student>>, studentDatabase : StudentDatabase)
|
||||||
|
+ commit()
|
||||||
|
- commitDelete()
|
||||||
|
- commitInsert()
|
||||||
|
- commitModify()
|
||||||
|
- register(student : Student, operation : String)
|
||||||
|
+ registerDeleted(student : Student)
|
||||||
|
+ registerModified(student : Student)
|
||||||
|
+ registerNew(student : Student)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
StudentRepository --> "-studentDatabase" StudentDatabase
|
||||||
|
StudentRepository ..|> IUnitOfWork
|
||||||
@enduml
|
@enduml
|
Loading…
x
Reference in New Issue
Block a user