-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclasses.plantuml
More file actions
193 lines (193 loc) · 5.3 KB
/
classes.plantuml
File metadata and controls
193 lines (193 loc) · 5.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
@startuml
namespace main.java {
namespace main.java.config {
class DatabaseHelper{
-String URL
-ConnectionSource connectionSource
-Dao<Candidate, Integer> candidateDao
-Dao<Category, Integer> categoryDao
-Dao<Interview, Integer> interviewDao
-Dao<InterviewComment, Integer> interviewCommentDao
-Dao<Interviewer, Integer> interviewerDao
-Dao<Mark, Integer> markDao
+List<Interview> getInterviewsByCandidateFio(String fio)
+List<Interview> getInterviewsByDate(Date date)
+List<Interview> getInterviewsByPost(String post)
+Interview getInterviewById(int id)
+Candidate getCandidateById(int id)
+Category getCategoryById(int id)
+Interviewer getInterviewerById(int id)
+List<Category> getCategories()
+List<Candidate> getCandidates()
+List<Interviewer> getInterviewers()
+void addInterview()
+void addInterviewer(String fio)
+void addCategory(String name)
+void addMark(int idCategory, int idInterview, double value)
+void addInterviewComment(int idInterview, String experience, String recommendations, String lastWork, String comment)
+void addCandidate(String fio, Date date, String banned)
+void delCategoryById(int id)
+void delCandidateById(int id)
}
class HelperFactory{
-{static}DatabaseHelper databaseHelper
+{static}DatabaseHelper getHelper()
}
}
namespace main.java.controller {
class AddInterviewController <<Initializable>> {
+void initialize(URL location, ResourceBundle resources)
}
class MainController <<Initializable>> {
+void initialize(URL location, ResourceBundle resources)
}
}
namespace main.java.dao {
interface CandidateDao
namespace main.java.dao.impl {
class CandidateDaoImpl{
}
}
}
namespace main.java.entity {
class Candidate{
-int idCandidate
-String fio
-Date bornDate
-String banned
-Collection<Interview> interviews
+int getIdCandidate()
+void setIdCandidate(int idCandidate)
+String getFio()
+void setFio(String fio)
+Date getBornDate()
+void setBornDate(Date bornDate)
+String getBanned()
+void setBanned(String banned)
+Collection<Interview> getInterviews()
+void setInterviews(Collection<Interview> interviews)
+String toString()
}
class Category{
-int idCategory
-String name
-Collection<Mark> marks
+String toString()
+void setIdCategory(int idCategory)
+String getName()
+void setName(String name)
+Collection<Mark> getMarks()
+void setMarks(Collection<Mark> marks)
+int getIdCategory()
}
class Interview{
-int idInterview
-Candidate idCandidate
-Interviewer idInterviewer
-Date date
-String result
-String post
-ForeignCollection<Mark> marks
+int getIdInterview()
+void setIdInterview(int idInterview)
+Candidate getIdCandidate()
+void setIdCandidate(Candidate idCandidate)
+Interviewer getIdInterviewer()
+void setIdInterviewer(Interviewer idInterviewer)
+java.util.Date getDate()
+void setDate(java.util.Date date)
+String getResult()
+void setResult(String result)
+String getPost()
+void setPost(String post)
+ForeignCollection<Mark> getMarks()
+void setMarks(ForeignCollection<Mark> marks)
+String toString()
}
class InterviewComment{
-int idIC
-Interview idInterview
-String experience
-String recommendations
-String lastWork
-String comment
+int getIdIC()
+void setIdIC(int idIC)
+Interview getIdInterview()
+void setIdInterview(Interview idInterview)
+String getExperience()
+void setExperience(String experience)
+String getRecommendations()
+void setRecommendations(String recommendations)
+String getLastWork()
+void setLastWork(String lastWork)
+String getComment()
+void setComment(String comment)
}
class Interviewer{
-int idInterviewer
-String fio
-Collection<Interview> interviews
+String toString()
+int getIdInterviewer()
+void setIdInterviewer(int idInterviewer)
+String getFio()
+void setFio(String fio)
+Collection<Interview> getInterviews()
+void setInterviews(Collection<Interview> interviews)
}
class Mark{
-int idMark
-double value
-Category idCategory
-Interview idInterview
+int getIdMark()
+double getValue()
+Category getIdCategory()
+Interview getIdInterview()
+void setIdMark(int idMark)
+void setValue(double value)
+void setIdCategory(Category idCategory)
+void setIdInterview(Interview idInterview)
}
}
class MainTest << (C,yellow) start >> {
+{static}void main(String[] args)
}
namespace main.java.util {
class ConstantManager{
+{static}String MAIN_VIEW_TITLE
}
}
namespace main.java.view {
class MainConsoleDao << (C,yellow) start >> {
+{static}void main(String[] args)
}
class UIEntry << (C,yellow) start >> {
-{static}String FXML_MAIN
-Stage dlgInterviewerStage
-MainController mainController
-FXMLLoader fxmlLoader
-VBox currentRoot
+void start(Stage dlgInterviewerStage)
+{static}void main(String[] args)
-VBox loadFXML()
-void createGUI()
}
}
}
Dao ()- dao.impl.CandidateDao
dao.impl.CandidateDao <|.. dao.impl.CandidateDaoImpl
BaseDaoImpl ()- dao.impl.CandidateDaoImpl
Application ()- view.UIEntry
entity.Candidate " 1" o-- "0..*" entity.Interview
entity.Category " 1" o-- "0..*" entity.Mark
entity.Interview " 1" o-- "0..1" entity.Candidate
entity.Interview " 1" o-- "0..1" entity.Interviewer
entity.Interview " 1" o-- "0..*" entity.Mark
entity.InterviewComment " 1" o-- "0..1" entity.Interview
entity.Interviewer " 1" o-- "0..*" entity.Interview
entity.Mark " 1" o-- "0..1" entity.Category
entity.Mark " 1" o-- "0..1" entity.Interview
view.UIEntry " 1" o-- "0..1" controller.MainController
@enduml