Browse Source

Curtis Cook's SimpleAccount Lab

curtiscook 6 years ago
parent
commit
eb02a6121e

BIN
.DS_Store View File


+ 9
- 0
.idea/ZCW-ORM-SimpleAccount.iml View File

@@ -0,0 +1,9 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+    <exclude-output />
5
+    <content url="file://$MODULE_DIR$" />
6
+    <orderEntry type="inheritedJdk" />
7
+    <orderEntry type="sourceFolder" forTests="false" />
8
+  </component>
9
+</module>

+ 7
- 0
.idea/misc.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="JavaScriptSettings">
4
+    <option name="languageLevel" value="ES6" />
5
+  </component>
6
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
7
+</project>

+ 8
- 0
.idea/modules.xml View File

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml" filepath="$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml View File

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="" vcs="Git" />
5
+  </component>
6
+</project>

+ 192
- 0
.idea/workspace.xml View File

@@ -0,0 +1,192 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="27b3bdb3-6a92-4c50-879e-631b4a199d31" name="Default Changelist" comment="" />
5
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6
+    <option name="SHOW_DIALOG" value="false" />
7
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
8
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
9
+    <option name="LAST_RESOLUTION" value="IGNORE" />
10
+  </component>
11
+  <component name="FUSProjectUsageTrigger">
12
+    <session id="1837328840">
13
+      <usages-collector id="statistics.lifecycle.project">
14
+        <counts>
15
+          <entry key="project.closed" value="3" />
16
+          <entry key="project.open.time.0" value="2" />
17
+          <entry key="project.open.time.5" value="1" />
18
+          <entry key="project.opened" value="3" />
19
+        </counts>
20
+      </usages-collector>
21
+    </session>
22
+  </component>
23
+  <component name="Git.Settings">
24
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
25
+  </component>
26
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
27
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
28
+  <component name="JsGulpfileManager">
29
+    <detection-done>true</detection-done>
30
+    <sorting>DEFINITION_ORDER</sorting>
31
+  </component>
32
+  <component name="ProjectFrameBounds">
33
+    <option name="y" value="23" />
34
+    <option name="width" value="1440" />
35
+    <option name="height" value="877" />
36
+  </component>
37
+  <component name="ProjectView">
38
+    <navigator proportions="" version="1">
39
+      <foldersAlwaysOnTop value="true" />
40
+    </navigator>
41
+    <panes>
42
+      <pane id="Scope" />
43
+      <pane id="PackagesPane" />
44
+      <pane id="ProjectPane">
45
+        <subPane>
46
+          <expand>
47
+            <path>
48
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
49
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
50
+            </path>
51
+            <path>
52
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
53
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
54
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
55
+            </path>
56
+          </expand>
57
+          <select />
58
+        </subPane>
59
+      </pane>
60
+    </panes>
61
+  </component>
62
+  <component name="PropertiesComponent">
63
+    <property name="WebServerToolWindowFactoryState" value="false" />
64
+    <property name="aspect.path.notification.shown" value="true" />
65
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
66
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
67
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
68
+    <property name="project.structure.last.edited" value="Project" />
69
+    <property name="project.structure.proportion" value="0.15" />
70
+    <property name="project.structure.side.proportion" value="0.0" />
71
+    <property name="settings.editor.selected.configurable" value="vcs.Git" />
72
+  </component>
73
+  <component name="RunDashboard">
74
+    <option name="ruleStates">
75
+      <list>
76
+        <RuleState>
77
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
78
+        </RuleState>
79
+        <RuleState>
80
+          <option name="name" value="StatusDashboardGroupingRule" />
81
+        </RuleState>
82
+      </list>
83
+    </option>
84
+  </component>
85
+  <component name="SvnConfiguration">
86
+    <configuration />
87
+  </component>
88
+  <component name="TaskManager">
89
+    <task active="true" id="Default" summary="Default task">
90
+      <changelist id="27b3bdb3-6a92-4c50-879e-631b4a199d31" name="Default Changelist" comment="" />
91
+      <created>1542376082144</created>
92
+      <option name="number" value="Default" />
93
+      <option name="presentableId" value="Default" />
94
+      <updated>1542376082144</updated>
95
+      <workItem from="1542376085824" duration="216000" />
96
+      <workItem from="1542376345804" duration="50000" />
97
+      <workItem from="1542376490537" duration="61000" />
98
+    </task>
99
+    <servers />
100
+  </component>
101
+  <component name="TimeTrackingManager">
102
+    <option name="totallyTimeSpent" value="327000" />
103
+  </component>
104
+  <component name="ToolWindowManager">
105
+    <frame x="0" y="23" width="1440" height="877" extended-state="0" />
106
+    <layout>
107
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25679544" />
108
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
109
+      <window_info id="Image Layers" order="2" />
110
+      <window_info id="Designer" order="3" />
111
+      <window_info id="UI Designer" order="4" />
112
+      <window_info id="Capture Tool" order="5" />
113
+      <window_info id="Favorites" order="6" side_tool="true" />
114
+      <window_info anchor="bottom" id="Message" order="0" />
115
+      <window_info anchor="bottom" id="Find" order="1" />
116
+      <window_info anchor="bottom" id="Run" order="2" />
117
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
118
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
119
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
120
+      <window_info anchor="bottom" id="TODO" order="6" />
121
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
122
+      <window_info anchor="bottom" id="Terminal" order="8" />
123
+      <window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
124
+      <window_info anchor="bottom" id="Version Control" order="10" />
125
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
126
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
127
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
128
+      <window_info anchor="right" id="Palette" order="3" />
129
+      <window_info anchor="right" id="Capture Analysis" order="4" />
130
+      <window_info anchor="right" id="Theme Preview" order="5" />
131
+      <window_info anchor="right" id="Palette&#9;" order="6" />
132
+      <window_info anchor="right" id="Database" order="7" />
133
+      <window_info anchor="right" id="Maven Projects" order="8" />
134
+    </layout>
135
+  </component>
136
+  <component name="TypeScriptGeneratedFilesManager">
137
+    <option name="version" value="1" />
138
+  </component>
139
+  <component name="VcsContentAnnotationSettings">
140
+    <option name="myLimit" value="2678400000" />
141
+  </component>
142
+  <component name="masterDetails">
143
+    <states>
144
+      <state key="GlobalLibrariesConfigurable.UI">
145
+        <settings>
146
+          <splitter-proportions>
147
+            <option name="proportions">
148
+              <list>
149
+                <option value="0.2" />
150
+              </list>
151
+            </option>
152
+          </splitter-proportions>
153
+        </settings>
154
+      </state>
155
+      <state key="JdkListConfigurable.UI">
156
+        <settings>
157
+          <last-edited>1.8</last-edited>
158
+          <splitter-proportions>
159
+            <option name="proportions">
160
+              <list>
161
+                <option value="0.2" />
162
+              </list>
163
+            </option>
164
+          </splitter-proportions>
165
+        </settings>
166
+      </state>
167
+      <state key="ProjectJDKs.UI">
168
+        <settings>
169
+          <last-edited>1.8</last-edited>
170
+          <splitter-proportions>
171
+            <option name="proportions">
172
+              <list>
173
+                <option value="0.2" />
174
+              </list>
175
+            </option>
176
+          </splitter-proportions>
177
+        </settings>
178
+      </state>
179
+      <state key="ProjectLibrariesConfigurable.UI">
180
+        <settings>
181
+          <splitter-proportions>
182
+            <option name="proportions">
183
+              <list>
184
+                <option value="0.2" />
185
+              </list>
186
+            </option>
187
+          </splitter-proportions>
188
+        </settings>
189
+      </state>
190
+    </states>
191
+  </component>
192
+</project>

+ 13
- 0
SimpleAccount/.idea/compiler.xml View File

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="CompilerConfiguration">
4
+    <annotationProcessing>
5
+      <profile name="Maven default annotation processors profile" enabled="true">
6
+        <sourceOutputDir name="target/generated-sources/annotations" />
7
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8
+        <outputRelativeToContentRoot value="true" />
9
+        <module name="SimpleAccount" />
10
+      </profile>
11
+    </annotationProcessing>
12
+  </component>
13
+</project>

+ 14
- 0
SimpleAccount/.idea/misc.xml View File

@@ -0,0 +1,14 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ExternalStorageConfigurationManager" enabled="true" />
4
+  <component name="MavenProjectsManager">
5
+    <option name="originalFiles">
6
+      <list>
7
+        <option value="$PROJECT_DIR$/pom.xml" />
8
+      </list>
9
+    </option>
10
+  </component>
11
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
12
+    <output url="file://$PROJECT_DIR$/out" />
13
+  </component>
14
+</project>

+ 6
- 0
SimpleAccount/.idea/vcs.xml View File

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
+  </component>
6
+</project>

+ 504
- 0
SimpleAccount/.idea/workspace.xml View File

@@ -0,0 +1,504 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="832738f0-587c-4923-9977-8e98eee6de5c" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/src/main/java/AccountService.java" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/src/test/java/AccountServiceTest.java" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/src/test/java/MockDao.java" afterDir="false" />
9
+    </list>
10
+    <ignored path="$PROJECT_DIR$/out/" />
11
+    <ignored path="$PROJECT_DIR$/target/" />
12
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
13
+    <option name="SHOW_DIALOG" value="false" />
14
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
15
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
16
+    <option name="LAST_RESOLUTION" value="IGNORE" />
17
+  </component>
18
+  <component name="DatabaseView">
19
+    <option name="SHOW_INTERMEDIATE" value="true" />
20
+    <option name="GROUP_DATA_SOURCES" value="true" />
21
+    <option name="GROUP_SCHEMA" value="true" />
22
+    <option name="GROUP_CONTENTS" value="false" />
23
+    <option name="SORT_POSITIONED" value="false" />
24
+    <option name="SHOW_EMPTY_GROUPS" value="false" />
25
+    <option name="AUTO_SCROLL_FROM_SOURCE" value="false" />
26
+    <option name="HIDDEN_KINDS">
27
+      <set />
28
+    </option>
29
+    <expand />
30
+    <select />
31
+  </component>
32
+  <component name="FUSProjectUsageTrigger">
33
+    <session id="-1921024198">
34
+      <usages-collector id="statistics.lifecycle.project">
35
+        <counts>
36
+          <entry key="project.closed" value="1" />
37
+          <entry key="project.open.time.3" value="1" />
38
+          <entry key="project.opened" value="1" />
39
+        </counts>
40
+      </usages-collector>
41
+      <usages-collector id="statistics.file.extensions.edit">
42
+        <counts>
43
+          <entry key="java" value="1587" />
44
+          <entry key="xml" value="8" />
45
+        </counts>
46
+      </usages-collector>
47
+      <usages-collector id="statistics.file.types.edit">
48
+        <counts>
49
+          <entry key="JAVA" value="1587" />
50
+          <entry key="XML" value="8" />
51
+        </counts>
52
+      </usages-collector>
53
+      <usages-collector id="statistics.file.extensions.open">
54
+        <counts>
55
+          <entry key="java" value="2" />
56
+        </counts>
57
+      </usages-collector>
58
+      <usages-collector id="statistics.file.types.open">
59
+        <counts>
60
+          <entry key="JAVA" value="2" />
61
+        </counts>
62
+      </usages-collector>
63
+    </session>
64
+    <session id="2140486745">
65
+      <usages-collector id="statistics.lifecycle.project">
66
+        <counts>
67
+          <entry key="project.closed" value="1" />
68
+          <entry key="project.open.time.1" value="1" />
69
+          <entry key="project.opened" value="1" />
70
+        </counts>
71
+      </usages-collector>
72
+      <usages-collector id="statistics.file.extensions.edit">
73
+        <counts>
74
+          <entry key="java" value="2281" />
75
+          <entry key="xml" value="7" />
76
+        </counts>
77
+      </usages-collector>
78
+      <usages-collector id="statistics.file.types.edit">
79
+        <counts>
80
+          <entry key="JAVA" value="2281" />
81
+          <entry key="XML" value="7" />
82
+        </counts>
83
+      </usages-collector>
84
+      <usages-collector id="statistics.file.extensions.open">
85
+        <counts>
86
+          <entry key="class" value="2" />
87
+          <entry key="java" value="11" />
88
+        </counts>
89
+      </usages-collector>
90
+      <usages-collector id="statistics.file.types.open">
91
+        <counts>
92
+          <entry key="CLASS" value="2" />
93
+          <entry key="JAVA" value="11" />
94
+        </counts>
95
+      </usages-collector>
96
+    </session>
97
+  </component>
98
+  <component name="FileEditorManager">
99
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
100
+      <file pinned="false" current-in-tab="false">
101
+        <entry file="file://$PROJECT_DIR$/src/main/java/Account.java">
102
+          <provider selected="true" editor-type-id="text-editor">
103
+            <state relative-caret-position="-169">
104
+              <caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
105
+              <folding>
106
+                <element signature="imports" expanded="true" />
107
+                <element signature="e#668#669#0" expanded="true" />
108
+                <element signature="e#700#701#0" expanded="true" />
109
+              </folding>
110
+            </state>
111
+          </provider>
112
+        </entry>
113
+      </file>
114
+      <file pinned="false" current-in-tab="true">
115
+        <entry file="file://$PROJECT_DIR$/src/main/java/AccountApp.java">
116
+          <provider selected="true" editor-type-id="text-editor">
117
+            <state relative-caret-position="825">
118
+              <caret line="55" column="27" lean-forward="true" selection-start-line="55" selection-start-column="27" selection-end-line="55" selection-end-column="27" />
119
+              <folding>
120
+                <element signature="imports" expanded="true" />
121
+              </folding>
122
+            </state>
123
+          </provider>
124
+        </entry>
125
+      </file>
126
+      <file pinned="false" current-in-tab="false">
127
+        <entry file="file://$PROJECT_DIR$/src/main/java/AccountService.java">
128
+          <provider selected="true" editor-type-id="text-editor">
129
+            <state relative-caret-position="345">
130
+              <caret line="23" column="64" lean-forward="true" selection-start-line="23" selection-start-column="64" selection-end-line="23" selection-end-column="64" />
131
+              <folding>
132
+                <element signature="imports" expanded="true" />
133
+              </folding>
134
+            </state>
135
+          </provider>
136
+        </entry>
137
+      </file>
138
+    </leaf>
139
+  </component>
140
+  <component name="FileTemplateManagerImpl">
141
+    <option name="RECENT_TEMPLATES">
142
+      <list>
143
+        <option value="Class" />
144
+      </list>
145
+    </option>
146
+  </component>
147
+  <component name="FindInProjectRecents">
148
+    <findStrings>
149
+      <find>create</find>
150
+    </findStrings>
151
+  </component>
152
+  <component name="Git.Settings">
153
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
154
+  </component>
155
+  <component name="IdeDocumentHistory">
156
+    <option name="CHANGED_PATHS">
157
+      <list>
158
+        <option value="$PROJECT_DIR$/src/main/java/Account.java" />
159
+        <option value="$PROJECT_DIR$/pom.xml" />
160
+        <option value="$PROJECT_DIR$/src/main/java/MockDao.java" />
161
+        <option value="$PROJECT_DIR$/src/test/java/MockDao.java" />
162
+        <option value="$PROJECT_DIR$/src/main/java/AccountService.java" />
163
+        <option value="$PROJECT_DIR$/src/main/java/AccountApp.java" />
164
+      </list>
165
+    </option>
166
+  </component>
167
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
168
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
169
+  <component name="JsGulpfileManager">
170
+    <detection-done>true</detection-done>
171
+    <sorting>DEFINITION_ORDER</sorting>
172
+  </component>
173
+  <component name="MavenImportPreferences">
174
+    <option name="importingSettings">
175
+      <MavenImportingSettings>
176
+        <option name="importAutomatically" value="true" />
177
+      </MavenImportingSettings>
178
+    </option>
179
+  </component>
180
+  <component name="ProjectFrameBounds">
181
+    <option name="x" value="35" />
182
+    <option name="y" value="-1052" />
183
+    <option name="width" value="1440" />
184
+    <option name="height" value="877" />
185
+  </component>
186
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
187
+  <component name="ProjectView">
188
+    <navigator proportions="" version="1">
189
+      <foldersAlwaysOnTop value="true" />
190
+    </navigator>
191
+    <panes>
192
+      <pane id="PackagesPane" />
193
+      <pane id="ProjectPane">
194
+        <subPane>
195
+          <expand>
196
+            <path>
197
+              <item name="SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
198
+              <item name="SimpleAccount" type="462c0819:PsiDirectoryNode" />
199
+            </path>
200
+            <path>
201
+              <item name="SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
202
+              <item name="SimpleAccount" type="462c0819:PsiDirectoryNode" />
203
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
204
+            </path>
205
+            <path>
206
+              <item name="SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
207
+              <item name="SimpleAccount" type="462c0819:PsiDirectoryNode" />
208
+              <item name="src" type="462c0819:PsiDirectoryNode" />
209
+            </path>
210
+            <path>
211
+              <item name="SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
212
+              <item name="SimpleAccount" type="462c0819:PsiDirectoryNode" />
213
+              <item name="src" type="462c0819:PsiDirectoryNode" />
214
+              <item name="main" type="462c0819:PsiDirectoryNode" />
215
+            </path>
216
+            <path>
217
+              <item name="SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
218
+              <item name="SimpleAccount" type="462c0819:PsiDirectoryNode" />
219
+              <item name="src" type="462c0819:PsiDirectoryNode" />
220
+              <item name="main" type="462c0819:PsiDirectoryNode" />
221
+              <item name="java" type="462c0819:PsiDirectoryNode" />
222
+            </path>
223
+            <path>
224
+              <item name="SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
225
+              <item name="SimpleAccount" type="462c0819:PsiDirectoryNode" />
226
+              <item name="src" type="462c0819:PsiDirectoryNode" />
227
+              <item name="test" type="462c0819:PsiDirectoryNode" />
228
+            </path>
229
+            <path>
230
+              <item name="SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
231
+              <item name="SimpleAccount" type="462c0819:PsiDirectoryNode" />
232
+              <item name="src" type="462c0819:PsiDirectoryNode" />
233
+              <item name="test" type="462c0819:PsiDirectoryNode" />
234
+              <item name="java" type="462c0819:PsiDirectoryNode" />
235
+            </path>
236
+            <path>
237
+              <item name="SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
238
+              <item name="SimpleAccount" type="462c0819:PsiDirectoryNode" />
239
+              <item name="target" type="462c0819:PsiDirectoryNode" />
240
+            </path>
241
+          </expand>
242
+          <select />
243
+        </subPane>
244
+      </pane>
245
+      <pane id="Scope" />
246
+    </panes>
247
+  </component>
248
+  <component name="PropertiesComponent">
249
+    <property name="WebServerToolWindowFactoryState" value="false" />
250
+    <property name="aspect.path.notification.shown" value="true" />
251
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542838324413" />
252
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
253
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
254
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
255
+    <property name="project.structure.last.edited" value="Project" />
256
+    <property name="project.structure.proportion" value="0.15" />
257
+    <property name="project.structure.side.proportion" value="0.0" />
258
+    <property name="settings.editor.selected.configurable" value="vcs.Git" />
259
+  </component>
260
+  <component name="RunDashboard">
261
+    <option name="ruleStates">
262
+      <list>
263
+        <RuleState>
264
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
265
+        </RuleState>
266
+        <RuleState>
267
+          <option name="name" value="StatusDashboardGroupingRule" />
268
+        </RuleState>
269
+      </list>
270
+    </option>
271
+  </component>
272
+  <component name="RunManager">
273
+    <configuration name="AccountApp" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
274
+      <option name="MAIN_CLASS_NAME" value="AccountApp" />
275
+      <module name="SimpleAccount" />
276
+      <method v="2">
277
+        <option name="Make" enabled="true" />
278
+      </method>
279
+    </configuration>
280
+    <recent_temporary>
281
+      <list>
282
+        <item itemvalue="Application.AccountApp" />
283
+      </list>
284
+    </recent_temporary>
285
+  </component>
286
+  <component name="SvnConfiguration">
287
+    <configuration />
288
+  </component>
289
+  <component name="TaskManager">
290
+    <task active="true" id="Default" summary="Default task">
291
+      <changelist id="832738f0-587c-4923-9977-8e98eee6de5c" name="Default Changelist" comment="" />
292
+      <created>1542376620883</created>
293
+      <option name="number" value="Default" />
294
+      <option name="presentableId" value="Default" />
295
+      <updated>1542376620883</updated>
296
+      <workItem from="1542376622609" duration="2905000" />
297
+      <workItem from="1542391149748" duration="26607000" />
298
+    </task>
299
+    <servers />
300
+  </component>
301
+  <component name="TimeTrackingManager">
302
+    <option name="totallyTimeSpent" value="29512000" />
303
+  </component>
304
+  <component name="ToolWindowManager">
305
+    <frame x="35" y="-1052" width="1440" height="877" extended-state="0" />
306
+    <layout>
307
+      <window_info content_ui="combo" id="Project" order="0" weight="0.28612304" />
308
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
309
+      <window_info id="Image Layers" order="2" />
310
+      <window_info id="Designer" order="3" />
311
+      <window_info id="UI Designer" order="4" />
312
+      <window_info id="Capture Tool" order="5" />
313
+      <window_info id="Favorites" order="6" side_tool="true" />
314
+      <window_info anchor="bottom" id="Messages" order="0" weight="0.32866243" />
315
+      <window_info anchor="bottom" id="Message" order="1" />
316
+      <window_info anchor="bottom" id="Find" order="2" />
317
+      <window_info anchor="bottom" id="Run" order="3" weight="0.3477707" />
318
+      <window_info anchor="bottom" id="Debug" order="4" weight="0.4" />
319
+      <window_info anchor="bottom" id="Cvs" order="5" weight="0.25" />
320
+      <window_info anchor="bottom" id="Inspection" order="6" weight="0.4" />
321
+      <window_info anchor="bottom" id="TODO" order="7" />
322
+      <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
323
+      <window_info anchor="bottom" id="Terminal" order="9" />
324
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
325
+      <window_info anchor="bottom" id="Version Control" order="11" show_stripe_button="false" />
326
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
327
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
328
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
329
+      <window_info anchor="right" id="Palette" order="3" />
330
+      <window_info anchor="right" id="Capture Analysis" order="4" />
331
+      <window_info anchor="right" id="Theme Preview" order="5" />
332
+      <window_info anchor="right" id="Palette&#9;" order="6" />
333
+      <window_info anchor="right" id="Database" order="7" weight="0.3297568" />
334
+      <window_info anchor="right" id="Maven Projects" order="8" />
335
+    </layout>
336
+  </component>
337
+  <component name="TypeScriptGeneratedFilesManager">
338
+    <option name="version" value="1" />
339
+  </component>
340
+  <component name="VcsContentAnnotationSettings">
341
+    <option name="myLimit" value="2678400000" />
342
+  </component>
343
+  <component name="editorHistoryManager">
344
+    <entry file="file://$PROJECT_DIR$/src/main/java/MockDao.java">
345
+      <provider selected="true" editor-type-id="text-editor">
346
+        <state relative-caret-position="889">
347
+          <caret line="69" column="19" lean-forward="true" selection-start-line="69" selection-start-column="19" selection-end-line="69" selection-end-column="19" />
348
+          <folding>
349
+            <element signature="imports" expanded="true" />
350
+            <element signature="e#1577#1578#0" expanded="true" />
351
+            <element signature="e#1604#1605#0" expanded="true" />
352
+            <element signature="e#1666#1667#0" expanded="true" />
353
+            <element signature="e#1693#1694#0" expanded="true" />
354
+            <element signature="e#1755#1756#0" expanded="true" />
355
+            <element signature="e#1782#1783#0" expanded="true" />
356
+          </folding>
357
+        </state>
358
+      </provider>
359
+    </entry>
360
+    <entry file="file://$PROJECT_DIR$/pom.xml">
361
+      <provider selected="true" editor-type-id="text-editor">
362
+        <state relative-caret-position="420">
363
+          <caret line="28" column="27" selection-start-line="28" selection-start-column="27" selection-end-line="28" selection-end-column="27" />
364
+        </state>
365
+      </provider>
366
+    </entry>
367
+    <entry file="file://$PROJECT_DIR$/src/test/java/AccountServiceTest.java">
368
+      <provider selected="true" editor-type-id="text-editor">
369
+        <state>
370
+          <caret column="31" selection-start-column="31" selection-end-column="31" />
371
+        </state>
372
+      </provider>
373
+    </entry>
374
+    <entry file="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-core/4.48/ormlite-core-4.48.jar!/com/j256/ormlite/dao/Dao.class">
375
+      <provider selected="true" editor-type-id="text-editor">
376
+        <state relative-caret-position="90">
377
+          <caret line="26" column="17" selection-start-line="26" selection-start-column="17" selection-end-line="26" selection-end-column="17" />
378
+        </state>
379
+      </provider>
380
+    </entry>
381
+    <entry file="file://$PROJECT_DIR$/src/test/java/MockDao.java">
382
+      <provider selected="true" editor-type-id="text-editor">
383
+        <state relative-caret-position="-1127">
384
+          <caret line="15" column="33" lean-forward="true" selection-start-line="15" selection-start-column="33" selection-end-line="15" selection-end-column="33" />
385
+          <folding>
386
+            <element signature="imports" expanded="true" />
387
+            <element signature="e#1577#1578#0" expanded="true" />
388
+            <element signature="e#1604#1605#0" expanded="true" />
389
+            <element signature="e#1666#1667#0" expanded="true" />
390
+            <element signature="e#1693#1694#0" expanded="true" />
391
+            <element signature="e#1755#1756#0" expanded="true" />
392
+            <element signature="e#1782#1783#0" expanded="true" />
393
+            <element signature="e#3134#3135#0" expanded="true" />
394
+            <element signature="e#3161#3162#0" expanded="true" />
395
+            <element signature="e#3218#3219#0" expanded="true" />
396
+            <element signature="e#3245#3246#0" expanded="true" />
397
+            <element signature="e#3591#3592#0" expanded="true" />
398
+            <element signature="e#3618#3619#0" expanded="true" />
399
+            <element signature="e#3723#3724#0" expanded="true" />
400
+            <element signature="e#3750#3751#0" expanded="true" />
401
+            <element signature="e#4995#4996#0" expanded="true" />
402
+            <element signature="e#5022#5023#0" expanded="true" />
403
+            <element signature="e#5274#5275#0" expanded="true" />
404
+            <element signature="e#5301#5302#0" expanded="true" />
405
+            <element signature="e#5363#5364#0" expanded="true" />
406
+            <element signature="e#5390#5391#0" expanded="true" />
407
+            <element signature="e#5426#5427#0" expanded="true" />
408
+            <element signature="e#5454#5455#0" expanded="true" />
409
+            <element signature="e#6149#6150#0" expanded="true" />
410
+            <element signature="e#6176#6177#0" expanded="true" />
411
+            <element signature="e#6506#6507#0" expanded="true" />
412
+            <element signature="e#6533#6534#0" expanded="true" />
413
+            <element signature="e#7465#7466#0" expanded="true" />
414
+            <element signature="e#7492#7493#0" expanded="true" />
415
+            <element signature="e#7634#7635#0" expanded="true" />
416
+            <element signature="e#7661#7662#0" expanded="true" />
417
+          </folding>
418
+        </state>
419
+      </provider>
420
+    </entry>
421
+    <entry file="file://$PROJECT_DIR$/src/main/java/Account.java">
422
+      <provider selected="true" editor-type-id="text-editor">
423
+        <state relative-caret-position="-169">
424
+          <caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
425
+          <folding>
426
+            <element signature="imports" expanded="true" />
427
+            <element signature="e#668#669#0" expanded="true" />
428
+            <element signature="e#700#701#0" expanded="true" />
429
+          </folding>
430
+        </state>
431
+      </provider>
432
+    </entry>
433
+    <entry file="file://$PROJECT_DIR$/src/main/java/AccountService.java">
434
+      <provider selected="true" editor-type-id="text-editor">
435
+        <state relative-caret-position="345">
436
+          <caret line="23" column="64" lean-forward="true" selection-start-line="23" selection-start-column="64" selection-end-line="23" selection-end-column="64" />
437
+          <folding>
438
+            <element signature="imports" expanded="true" />
439
+          </folding>
440
+        </state>
441
+      </provider>
442
+    </entry>
443
+    <entry file="file://$PROJECT_DIR$/src/main/java/AccountApp.java">
444
+      <provider selected="true" editor-type-id="text-editor">
445
+        <state relative-caret-position="825">
446
+          <caret line="55" column="27" lean-forward="true" selection-start-line="55" selection-start-column="27" selection-end-line="55" selection-end-column="27" />
447
+          <folding>
448
+            <element signature="imports" expanded="true" />
449
+          </folding>
450
+        </state>
451
+      </provider>
452
+    </entry>
453
+  </component>
454
+  <component name="masterDetails">
455
+    <states>
456
+      <state key="GlobalLibrariesConfigurable.UI">
457
+        <settings>
458
+          <splitter-proportions>
459
+            <option name="proportions">
460
+              <list>
461
+                <option value="0.2" />
462
+              </list>
463
+            </option>
464
+          </splitter-proportions>
465
+        </settings>
466
+      </state>
467
+      <state key="JdkListConfigurable.UI">
468
+        <settings>
469
+          <last-edited>1.8</last-edited>
470
+          <splitter-proportions>
471
+            <option name="proportions">
472
+              <list>
473
+                <option value="0.2" />
474
+              </list>
475
+            </option>
476
+          </splitter-proportions>
477
+        </settings>
478
+      </state>
479
+      <state key="ProjectJDKs.UI">
480
+        <settings>
481
+          <last-edited>1.8</last-edited>
482
+          <splitter-proportions>
483
+            <option name="proportions">
484
+              <list>
485
+                <option value="0.2" />
486
+              </list>
487
+            </option>
488
+          </splitter-proportions>
489
+        </settings>
490
+      </state>
491
+      <state key="ProjectLibrariesConfigurable.UI">
492
+        <settings>
493
+          <splitter-proportions>
494
+            <option name="proportions">
495
+              <list>
496
+                <option value="0.2" />
497
+              </list>
498
+            </option>
499
+          </splitter-proportions>
500
+        </settings>
501
+      </state>
502
+    </states>
503
+  </component>
504
+</project>

+ 33
- 0
SimpleAccount/pom.xml View File

@@ -0,0 +1,33 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0"
3
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+    <modelVersion>4.0.0</modelVersion>
6
+
7
+    <groupId>com.zipcode.curtiscook</groupId>
8
+    <artifactId>SimpleAccount</artifactId>
9
+    <version>1.0-SNAPSHOT</version>
10
+
11
+    <dependencies>
12
+        <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-core -->
13
+        <dependency>
14
+            <groupId>com.j256.ormlite</groupId>
15
+            <artifactId>ormlite-core</artifactId>
16
+            <version>4.48</version>
17
+        </dependency>
18
+
19
+        <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-jdbc -->
20
+        <dependency>
21
+            <groupId>com.j256.ormlite</groupId>
22
+            <artifactId>ormlite-jdbc</artifactId>
23
+            <version>4.48</version>
24
+        </dependency>
25
+        <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
26
+        <dependency>
27
+            <groupId>mysql</groupId>
28
+            <artifactId>mysql-connector-java</artifactId>
29
+            <version>8.0.13</version>
30
+        </dependency>
31
+    </dependencies>
32
+
33
+</project>

+ 64
- 0
SimpleAccount/src/main/java/Account.java View File

@@ -0,0 +1,64 @@
1
+import com.j256.ormlite.field.DatabaseField;
2
+import com.j256.ormlite.table.DatabaseTable;
3
+
4
+@DatabaseTable(tableName = "account")
5
+public class Account {
6
+
7
+    public static final String NAME_FIELD_NAME = "name";
8
+    public static final String PASSWORD_FIELD_NAME = "password";
9
+
10
+    @DatabaseField(columnName = "id", generatedId = true)
11
+    private int id;
12
+
13
+    @DatabaseField(columnName = "name", canBeNull = false)
14
+    private String name;
15
+
16
+    @DatabaseField(columnName = "password")
17
+    private String password;
18
+
19
+    Account() {
20
+        // all persisted classes must define a no-arg constructor with at least package visibility
21
+    }
22
+
23
+    public Account(String name) {
24
+        this.name = name;
25
+    }
26
+
27
+    public Account(int id, String password) {
28
+        this.id = id;
29
+        this.password = password;
30
+    }
31
+
32
+    public int getId() {
33
+        return id;
34
+    }
35
+
36
+    public String getName() {
37
+        return name;
38
+    }
39
+
40
+    public void setName(String name) {
41
+        this.name = name;
42
+    }
43
+
44
+    public String getPassword() {
45
+        return password;
46
+    }
47
+
48
+    public void setPassword(String password) {
49
+        this.password = password;
50
+    }
51
+
52
+    @Override
53
+    public int hashCode() {
54
+        return name.hashCode();
55
+    }
56
+
57
+    @Override
58
+    public boolean equals(Object other) {
59
+        if (other == null || other.getClass() != getClass()) {
60
+            return false;
61
+        }
62
+        return name.equals(((Account) other).name);
63
+    }
64
+}

+ 114
- 0
SimpleAccount/src/main/java/AccountApp.java View File

@@ -0,0 +1,114 @@
1
+import com.j256.ormlite.dao.Dao;
2
+import com.j256.ormlite.dao.DaoManager;
3
+import com.j256.ormlite.jdbc.JdbcConnectionSource;
4
+import com.j256.ormlite.support.ConnectionSource;
5
+
6
+import java.util.Scanner;
7
+
8
+public class AccountApp {
9
+
10
+    // we are using a MySQL database
11
+    public static final String DATABASE_URL = "jdbc:mysql://localhost:3306/orm_lab?useUnicode=true";
12
+
13
+    private Dao<Account, Integer> accountDao;
14
+    private Account account = new Account();
15
+
16
+    public static void main(String[] args) throws Exception {
17
+        // turn our static method into an instance of Main
18
+        new AccountApp().doMain(args);
19
+    }
20
+
21
+    private void doMain(String[] args) throws Exception {
22
+        ConnectionSource connectionSource = null;
23
+        try {
24
+            // create our data-source for the database
25
+            connectionSource = new JdbcConnectionSource(DATABASE_URL, "root", "");
26
+            // setup our DAOs
27
+            setupDao(connectionSource);
28
+            // read, write and delete some data
29
+            processData();
30
+
31
+            AccountService accountService = new AccountService();
32
+            int input = userInput();
33
+            while(input != 5) {
34
+                Scanner scanner = new Scanner(System.in);
35
+
36
+                switch (input) {
37
+                    case 1:
38
+                        System.out.print("Please enter the name:  ");
39
+                        String name = scanner.nextLine();
40
+                        System.out.print("Please enter the password:  ");
41
+                        String password = scanner.nextLine();
42
+                        accountService.createAccount(name, password, accountDao);
43
+                        break;
44
+
45
+                    case 2:
46
+                        accountService.readAccount(accountDao);
47
+                        break;
48
+
49
+
50
+                    case 3:
51
+                        System.out.print("Please enter the id of the account you want to update:  ");
52
+                        int id = scanner.nextInt();
53
+                        accountService.updateAccount(accountDao, id);
54
+                        break;
55
+
56
+                    case 4:
57
+                        System.out.print("Please enter the id of the account you want to delete:  ");
58
+                        int deletedID = scanner.nextInt();
59
+                        accountService.deleteAccount(accountDao, deletedID);
60
+                        break;
61
+
62
+                    default:
63
+                }
64
+                input = userInput();
65
+            }
66
+
67
+
68
+            System.out.println("\n\nIt seems to have worked\n\n");
69
+        } finally {
70
+            // destroy the data source which should close underlying connections
71
+            if (connectionSource != null) {
72
+                connectionSource.close();
73
+            }
74
+        }
75
+    }
76
+
77
+    private int userInput() {
78
+        Scanner scanner = new Scanner(System.in);
79
+        System.out.println("Press 1 to create a User ");
80
+        System.out.println("Press 2 to read the database");
81
+        System.out.println("Press 3 to update the database");
82
+        System.out.println("Press 4 to delete a User");
83
+        System.out.println("Press 5 to exit");
84
+        System.out.print("-  ");
85
+        return scanner.nextInt();
86
+    }
87
+
88
+    /**
89
+     *  Read and write some example data.
90
+     */
91
+    private void processData() throws Exception {
92
+        // create an instance of Account
93
+        String name = "Jim Coakley";
94
+        account.setName(name);
95
+
96
+        // persist the account object to the database
97
+        accountDao.create(account);
98
+        int id = account.getId();
99
+        System.out.println(id);
100
+        // assign a password
101
+        account.setPassword("_secret");
102
+        // update the database after changing the object
103
+        accountDao.update(account);
104
+        // delete the account
105
+        // accountDao.deleteById(id);
106
+    }
107
+
108
+    /**
109
+     *  Setup our DAOs
110
+     */
111
+    private void setupDao(ConnectionSource connectionSource) throws  Exception {
112
+        accountDao = DaoManager.createDao(connectionSource, Account.class);
113
+    }
114
+}

+ 50
- 0
SimpleAccount/src/main/java/AccountService.java View File

@@ -0,0 +1,50 @@
1
+import com.j256.ormlite.dao.Dao;
2
+
3
+import java.sql.SQLException;
4
+import java.util.Scanner;
5
+
6
+public class AccountService {
7
+    private Dao<Account, Integer> accountDao;
8
+    private Account account = new Account();
9
+    private Scanner scanner = new Scanner(System.in);
10
+
11
+    public void createAccount(String name, String password, Dao<Account, Integer> accountDao) {
12
+        account.setName(name);
13
+        account.setPassword(password);
14
+        try {
15
+            accountDao.create(account);
16
+        } catch (SQLException e) {
17
+            e.printStackTrace();
18
+        }
19
+    }
20
+
21
+    public void readAccount(Dao<Account, Integer> accountDao) {
22
+        for (Account account : accountDao) {
23
+            System.out.println(String.format("| %5d", account.getId()) +
24
+                    String.format("| %15s", account.getName()) +
25
+                    String.format("| %20s|", account.getPassword()));
26
+        }
27
+    }
28
+
29
+    public void updateAccount(Dao<Account, Integer> accountDao, int id) {
30
+        for (Account account : accountDao) {
31
+            if (account.getId() == id) {
32
+                System.out.print("Please enter the updated id:  ");
33
+                int updatedID = scanner.nextInt();
34
+                try {
35
+                    accountDao.updateId(account,updatedID);
36
+                } catch (SQLException e) {
37
+                    e.printStackTrace();
38
+                }
39
+            }
40
+        }
41
+    }
42
+
43
+    public void deleteAccount(Dao<Account, Integer> accountDao, int id) {
44
+        try {
45
+            accountDao.deleteById(id);
46
+        } catch (SQLException e) {
47
+            e.printStackTrace();
48
+        }
49
+    }
50
+}

+ 2
- 0
SimpleAccount/src/test/java/AccountServiceTest.java View File

@@ -0,0 +1,2 @@
1
+public class AccountServiceTest {
2
+}

+ 300
- 0
SimpleAccount/src/test/java/MockDao.java View File

@@ -0,0 +1,300 @@
1
+import com.j256.ormlite.dao.*;
2
+import com.j256.ormlite.field.DataType;
3
+import com.j256.ormlite.field.FieldType;
4
+import com.j256.ormlite.stmt.*;
5
+import com.j256.ormlite.support.ConnectionSource;
6
+import com.j256.ormlite.support.DatabaseConnection;
7
+import com.j256.ormlite.support.DatabaseResults;
8
+import com.j256.ormlite.table.ObjectFactory;
9
+
10
+import java.sql.SQLException;
11
+import java.util.Collection;
12
+import java.util.List;
13
+import java.util.Map;
14
+import java.util.concurrent.Callable;
15
+
16
+public class MockDao implements Dao<Account, Integer> {
17
+    public Account queryForId(Integer integer) throws SQLException {
18
+        return null;
19
+    }
20
+
21
+    public Account queryForFirst(PreparedQuery<Account> preparedQuery) throws SQLException {
22
+        return null;
23
+    }
24
+
25
+    public List<Account> queryForAll() throws SQLException {
26
+        return null;
27
+    }
28
+
29
+    public List<Account> queryForEq(String s, Object o) throws SQLException {
30
+        return null;
31
+    }
32
+
33
+    public List<Account> queryForMatching(Account account) throws SQLException {
34
+        return null;
35
+    }
36
+
37
+    public List<Account> queryForMatchingArgs(Account account) throws SQLException {
38
+        return null;
39
+    }
40
+
41
+    public List<Account> queryForFieldValues(Map<String, Object> map) throws SQLException {
42
+        return null;
43
+    }
44
+
45
+    public List<Account> queryForFieldValuesArgs(Map<String, Object> map) throws SQLException {
46
+        return null;
47
+    }
48
+
49
+    public Account queryForSameId(Account account) throws SQLException {
50
+        return null;
51
+    }
52
+
53
+    public QueryBuilder<Account, Integer> queryBuilder() {
54
+        return null;
55
+    }
56
+
57
+    public UpdateBuilder<Account, Integer> updateBuilder() {
58
+        return null;
59
+    }
60
+
61
+    public DeleteBuilder<Account, Integer> deleteBuilder() {
62
+        return null;
63
+    }
64
+
65
+    public List<Account> query(PreparedQuery<Account> preparedQuery) throws SQLException {
66
+        return null;
67
+    }
68
+
69
+    public int create(Account account) throws SQLException {
70
+        return 0;
71
+    }
72
+
73
+    public Account createIfNotExists(Account account) throws SQLException {
74
+        return null;
75
+    }
76
+
77
+    public CreateOrUpdateStatus createOrUpdate(Account account) throws SQLException {
78
+        return null;
79
+    }
80
+
81
+    public int update(Account account) throws SQLException {
82
+        return 0;
83
+    }
84
+
85
+    public int updateId(Account account, Integer integer) throws SQLException {
86
+        return 0;
87
+    }
88
+
89
+    public int update(PreparedUpdate<Account> preparedUpdate) throws SQLException {
90
+        return 0;
91
+    }
92
+
93
+    public int refresh(Account account) throws SQLException {
94
+        return 0;
95
+    }
96
+
97
+    public int delete(Account account) throws SQLException {
98
+        return 0;
99
+    }
100
+
101
+    public int deleteById(Integer integer) throws SQLException {
102
+        return 0;
103
+    }
104
+
105
+    public int delete(Collection<Account> collection) throws SQLException {
106
+        return 0;
107
+    }
108
+
109
+    public int deleteIds(Collection<Integer> collection) throws SQLException {
110
+        return 0;
111
+    }
112
+
113
+    public int delete(PreparedDelete<Account> preparedDelete) throws SQLException {
114
+        return 0;
115
+    }
116
+
117
+    public CloseableIterator<Account> iterator() {
118
+        return null;
119
+    }
120
+
121
+    public CloseableIterator<Account> iterator(int i) {
122
+        return null;
123
+    }
124
+
125
+    public CloseableIterator<Account> iterator(PreparedQuery<Account> preparedQuery) throws SQLException {
126
+        return null;
127
+    }
128
+
129
+    public CloseableIterator<Account> iterator(PreparedQuery<Account> preparedQuery, int i) throws SQLException {
130
+        return null;
131
+    }
132
+
133
+    public CloseableWrappedIterable<Account> getWrappedIterable() {
134
+        return null;
135
+    }
136
+
137
+    public CloseableWrappedIterable<Account> getWrappedIterable(PreparedQuery<Account> preparedQuery) {
138
+        return null;
139
+    }
140
+
141
+    public void closeLastIterator() throws SQLException {
142
+
143
+    }
144
+
145
+    public GenericRawResults<String[]> queryRaw(String s, String... strings) throws SQLException {
146
+        return null;
147
+    }
148
+
149
+    public <UO> GenericRawResults<UO> queryRaw(String s, RawRowMapper<UO> rawRowMapper, String... strings) throws SQLException {
150
+        return null;
151
+    }
152
+
153
+    public <UO> GenericRawResults<UO> queryRaw(String s, DataType[] dataTypes, RawRowObjectMapper<UO> rawRowObjectMapper, String... strings) throws SQLException {
154
+        return null;
155
+    }
156
+
157
+    public GenericRawResults<Object[]> queryRaw(String s, DataType[] dataTypes, String... strings) throws SQLException {
158
+        return null;
159
+    }
160
+
161
+    public long queryRawValue(String s, String... strings) throws SQLException {
162
+        return 0;
163
+    }
164
+
165
+    public int executeRaw(String s, String... strings) throws SQLException {
166
+        return 0;
167
+    }
168
+
169
+    public int executeRawNoArgs(String s) throws SQLException {
170
+        return 0;
171
+    }
172
+
173
+    public int updateRaw(String s, String... strings) throws SQLException {
174
+        return 0;
175
+    }
176
+
177
+    public <CT> CT callBatchTasks(Callable<CT> callable) throws Exception {
178
+        return null;
179
+    }
180
+
181
+    public String objectToString(Account account) {
182
+        return null;
183
+    }
184
+
185
+    public boolean objectsEqual(Account account, Account t1) throws SQLException {
186
+        return false;
187
+    }
188
+
189
+    public Integer extractId(Account account) throws SQLException {
190
+        return null;
191
+    }
192
+
193
+    public Class<Account> getDataClass() {
194
+        return null;
195
+    }
196
+
197
+    public FieldType findForeignFieldType(Class<?> aClass) {
198
+        return null;
199
+    }
200
+
201
+    public boolean isUpdatable() {
202
+        return false;
203
+    }
204
+
205
+    public boolean isTableExists() throws SQLException {
206
+        return false;
207
+    }
208
+
209
+    public long countOf() throws SQLException {
210
+        return 0;
211
+    }
212
+
213
+    public long countOf(PreparedQuery<Account> preparedQuery) throws SQLException {
214
+        return 0;
215
+    }
216
+
217
+    public void assignEmptyForeignCollection(Account account, String s) throws SQLException {
218
+
219
+    }
220
+
221
+    public <FT> ForeignCollection<FT> getEmptyForeignCollection(String s) throws SQLException {
222
+        return null;
223
+    }
224
+
225
+    public void setObjectCache(boolean b) throws SQLException {
226
+
227
+    }
228
+
229
+    public void setObjectCache(ObjectCache objectCache) throws SQLException {
230
+
231
+    }
232
+
233
+    public ObjectCache getObjectCache() {
234
+        return null;
235
+    }
236
+
237
+    public void clearObjectCache() {
238
+
239
+    }
240
+
241
+    public Account mapSelectStarRow(DatabaseResults databaseResults) throws SQLException {
242
+        return null;
243
+    }
244
+
245
+    public GenericRowMapper<Account> getSelectStarRowMapper() throws SQLException {
246
+        return null;
247
+    }
248
+
249
+    public RawRowMapper<Account> getRawRowMapper() {
250
+        return null;
251
+    }
252
+
253
+    public boolean idExists(Integer integer) throws SQLException {
254
+        return false;
255
+    }
256
+
257
+    public DatabaseConnection startThreadConnection() throws SQLException {
258
+        return null;
259
+    }
260
+
261
+    public void endThreadConnection(DatabaseConnection databaseConnection) throws SQLException {
262
+
263
+    }
264
+
265
+    public void setAutoCommit(boolean b) throws SQLException {
266
+
267
+    }
268
+
269
+    public void setAutoCommit(DatabaseConnection databaseConnection, boolean b) throws SQLException {
270
+
271
+    }
272
+
273
+    public boolean isAutoCommit() throws SQLException {
274
+        return false;
275
+    }
276
+
277
+    public boolean isAutoCommit(DatabaseConnection databaseConnection) throws SQLException {
278
+        return false;
279
+    }
280
+
281
+    public void commit(DatabaseConnection databaseConnection) throws SQLException {
282
+
283
+    }
284
+
285
+    public void rollBack(DatabaseConnection databaseConnection) throws SQLException {
286
+
287
+    }
288
+
289
+    public ConnectionSource getConnectionSource() {
290
+        return null;
291
+    }
292
+
293
+    public void setObjectFactory(ObjectFactory<Account> objectFactory) {
294
+
295
+    }
296
+
297
+    public CloseableIterator<Account> closeableIterator() {
298
+        return null;
299
+    }
300
+}

BIN
SimpleAccount/target/classes/Account.class View File


BIN
SimpleAccount/target/classes/AccountApp.class View File


BIN
SimpleAccount/target/classes/AccountService.class View File


BIN
SimpleAccount/target/test-classes/AccountServiceTest.class View File


BIN
SimpleAccount/target/test-classes/MockDao.class View File