first commit lol
This commit is contained in:
commit
1328afffd9
33 changed files with 1999 additions and 0 deletions
13
.idea/artifacts/Autovermietung.xml
Normal file
13
.idea/artifacts/Autovermietung.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="Autovermietung">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/Autovermietung</output-path>
|
||||
<root id="archive" name="Autovermietung.jar">
|
||||
<element id="module-output" name="autovermietung-int" />
|
||||
<element id="directory" name="META-INF">
|
||||
<element id="file-copy" path="$PROJECT_DIR$/out/production/autovermietung-int/META-INF/MANIFEST.MF" />
|
||||
</element>
|
||||
<element id="file-copy" path="$PROJECT_DIR$/database.properties" />
|
||||
<element id="extracted-dir" path="$USER_HOME$/Downloads/mysql-connector-java-8.0.22.jar" path-in-jar="/" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
1
.idea/description.html
Normal file
1
.idea/description.html
Normal file
|
@ -0,0 +1 @@
|
|||
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html>
|
6
.idea/encodings.xml
Normal file
6
.idea/encodings.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="PROJECT" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
9
.idea/libraries/mysql_connector_java_8_0_22.xml
Normal file
9
.idea/libraries/mysql_connector_java_8_0_22.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<component name="libraryTable">
|
||||
<library name="mysql-connector-java-8.0.22">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/Downloads/mysql-connector-java-8.0.22.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
.idea/libraries/oszimtJE.xml
Normal file
9
.idea/libraries/oszimtJE.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<component name="libraryTable">
|
||||
<library name="oszimtJE">
|
||||
<CLASSES>
|
||||
<root url="file://$PROJECT_DIR$/../Documents/Java/oszimtJE.jar" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
.idea/libraries/oszimtJE1.xml
Normal file
9
.idea/libraries/oszimtJE1.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<component name="libraryTable">
|
||||
<library name="oszimtJE1">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/Downloads/oszimtJE.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
6
.idea/misc.xml
Normal file
6
.idea/misc.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/autovermietung-int.iml" filepath="$PROJECT_DIR$/autovermietung-int.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
3
.idea/project-template.xml
Normal file
3
.idea/project-template.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<template>
|
||||
<input-field default="com.company">IJ_BASE_PACKAGE</input-field>
|
||||
</template>
|
607
.idea/workspace.xml
Normal file
607
.idea/workspace.xml
Normal file
|
@ -0,0 +1,607 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ArtifactsWorkspaceSettings">
|
||||
<artifacts-to-build>
|
||||
<artifact name="Autovermietung" />
|
||||
</artifacts-to-build>
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="20f6192e-712c-4901-ab50-abe79c149ecf" name="Default Changelist" comment="" />
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="DefaultGradleProjectSettings">
|
||||
<option name="isMigrated" value="true" />
|
||||
</component>
|
||||
<component name="FavoritesManager">
|
||||
<favorites_list name="autovermietung-int" />
|
||||
</component>
|
||||
<component name="FileEditorManager">
|
||||
<splitter split-orientation="horizontal" split-proportion="0.48266166">
|
||||
<split-first>
|
||||
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
||||
<file pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/Main.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="770">
|
||||
<caret line="95" column="63" selection-start-line="95" selection-start-column="63" selection-end-line="95" selection-end-column="63" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/helper/Shop.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="770">
|
||||
<caret line="158" column="34" selection-start-line="158" selection-start-column="34" selection-end-line="158" selection-end-column="34" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/helper/Database.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="260">
|
||||
<caret line="150" lean-forward="true" selection-start-line="150" selection-end-line="150" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</split-first>
|
||||
<split-second>
|
||||
<leaf>
|
||||
<file pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/helper/Tastatur.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="986">
|
||||
<caret line="127" column="50" selection-start-line="127" selection-start-column="50" selection-end-line="127" selection-end-column="50" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/models/Pkw.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="532">
|
||||
<caret line="68" column="22" selection-start-line="68" selection-start-column="22" selection-end-line="68" selection-end-column="22" />
|
||||
<folding>
|
||||
<element signature="e#1099#1100#0" expanded="true" />
|
||||
<element signature="e#1134#1135#0" expanded="true" />
|
||||
<element signature="e#1190#1191#0" expanded="true" />
|
||||
<element signature="e#1238#1239#0" expanded="true" />
|
||||
<element signature="e#1582#1583#0" expanded="true" />
|
||||
<element signature="e#1608#1609#0" expanded="true" />
|
||||
<element signature="e#1643#1644#0" expanded="true" />
|
||||
<element signature="e#1673#1674#0" expanded="true" />
|
||||
<element signature="e#1700#1701#0" expanded="true" />
|
||||
<element signature="e#1726#1727#0" expanded="true" />
|
||||
<element signature="e#1761#1762#0" expanded="true" />
|
||||
<element signature="e#1791#1792#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/models/Kunde.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="935">
|
||||
<caret line="73" column="25" selection-start-line="73" selection-start-column="25" selection-end-line="73" selection-end-column="25" />
|
||||
<folding>
|
||||
<element signature="e#427#428#0" expanded="true" />
|
||||
<element signature="e#453#454#0" expanded="true" />
|
||||
<element signature="e#488#489#0" expanded="true" />
|
||||
<element signature="e#518#519#0" expanded="true" />
|
||||
<element signature="e#1232#1233#0" expanded="true" />
|
||||
<element signature="e#1270#1271#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/models/Modell.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="867">
|
||||
<caret line="73" column="29" selection-start-line="73" selection-start-column="29" selection-end-line="73" selection-end-column="29" />
|
||||
<folding>
|
||||
<element signature="e#1275#1276#0" expanded="true" />
|
||||
<element signature="e#1317#1318#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</split-second>
|
||||
</splitter>
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
<option name="RECENT_TEMPLATES">
|
||||
<list>
|
||||
<option value="Class" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="HighlightingSettingsPerFile">
|
||||
<setting file="file://$PROJECT_DIR$/src/autovermietung/helper/Database.java" root0="SKIP_INSPECTION" />
|
||||
</component>
|
||||
<component name="IdeDocumentHistory">
|
||||
<option name="CHANGED_PATHS">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/Shop.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/Datenbankverbindung.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/database.properties" />
|
||||
<option value="$USER_HOME$/Desktop/bruder-bot-master/src/main/java/tf/spenny/bot/database/Database.java" />
|
||||
<option value="$PROJECT_DIR$/database.properties" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/Tastatur.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/Pkw.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/Modell.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/Kunde.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/Database.java" />
|
||||
<option value="$PROJECT_DIR$/src/helper/Shop.java" />
|
||||
<option value="$PROJECT_DIR$/src/helper/Database.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/models/Modell.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/models/Kunde.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/helper/Tastatur.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/models/Pkw.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/helper/Database.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/helper/Shop.java" />
|
||||
<option value="$PROJECT_DIR$/src/autovermietung/Main.java" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectFrameBounds" extendedState="6">
|
||||
<option name="x" value="497" />
|
||||
<option name="y" value="-21" />
|
||||
<option name="width" value="1400" />
|
||||
<option name="height" value="999" />
|
||||
</component>
|
||||
<component name="ProjectId" id="1jpLXsrDCTp0Xd4C5LNjJSceSTF" />
|
||||
<component name="ProjectView">
|
||||
<navigator proportions="" version="1">
|
||||
<foldersAlwaysOnTop value="true" />
|
||||
</navigator>
|
||||
<panes>
|
||||
<pane id="ProjectPane">
|
||||
<subPane>
|
||||
<expand>
|
||||
<path>
|
||||
<item name="autovermietung-int" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="autovermietung-int" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="autovermietung-int" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="autovermietung-int" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="out" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="autovermietung-int" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="autovermietung-int" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="out" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="artifacts" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="autovermietung-int" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="autovermietung-int" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="out" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="artifacts" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="Autovermietung" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="autovermietung-int" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="autovermietung-int" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="autovermietung-int" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="autovermietung-int" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="autovermietung" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="autovermietung-int" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="autovermietung-int" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="autovermietung" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="helper" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="autovermietung-int" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
|
||||
</path>
|
||||
</expand>
|
||||
<select />
|
||||
</subPane>
|
||||
</pane>
|
||||
<pane id="Scope" />
|
||||
<pane id="PackagesPane" />
|
||||
</panes>
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="GenerateAntBuildDialog.backupFiles" value="true" />
|
||||
<property name="GenerateAntBuildDialog.enableUiFormCompile" value="true" />
|
||||
<property name="GenerateAntBuildDialog.forceTargetJdk" value="true" />
|
||||
<property name="GenerateAntBuildDialog.outputFileNameProperty" value="autovermietung" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/database.properties" />
|
||||
<property name="project.structure.last.edited" value="Artifacts" />
|
||||
<property name="project.structure.proportion" value="0.15" />
|
||||
<property name="project.structure.side.proportion" value="0.2" />
|
||||
<property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
|
||||
</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="MoveFile.RECENT_KEYS">
|
||||
<recent name="C:\Users\Philipp\Documents\Schule\AS\autovermietung-int" />
|
||||
<recent name="C:\Users\Philipp\Documents\Schule\AS\autovermietung-int\src\autovermietung" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="ruleStates">
|
||||
<list>
|
||||
<RuleState>
|
||||
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
<RuleState>
|
||||
<option name="name" value="StatusDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<configuration name="Main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||
<option name="MAIN_CLASS_NAME" value="autovermietung.Main" />
|
||||
<module name="autovermietung-int" />
|
||||
<extension name="coverage">
|
||||
<pattern>
|
||||
<option name="PATTERN" value="autovermietung.models.*" />
|
||||
<option name="ENABLED" value="true" />
|
||||
</pattern>
|
||||
</extension>
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Application.Main" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="20f6192e-712c-4901-ab50-abe79c149ecf" name="Default Changelist" comment="" />
|
||||
<created>1604496128593</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1604496128593</updated>
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TodoView">
|
||||
<todo-panel id="selected-file">
|
||||
<is-autoscroll-to-source value="true" />
|
||||
</todo-panel>
|
||||
<todo-panel id="all">
|
||||
<are-packages-shown value="true" />
|
||||
<is-autoscroll-to-source value="true" />
|
||||
</todo-panel>
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="-8" y="22" width="2576" height="1426" extended-state="6" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info id="Favorites" order="0" sideWeight="0.50117373" side_tool="true" weight="0.15063593" />
|
||||
<window_info id="Designer" order="1" />
|
||||
<window_info content_ui="combo" id="Project" order="2" sideWeight="0.4988263" visible="true" weight="0.1518283" />
|
||||
<window_info id="Structure" order="3" sideWeight="0.5013123" side_tool="true" weight="0.15063593" />
|
||||
<window_info anchor="bottom" id="Terminal" order="0" weight="0.32992125" />
|
||||
<window_info anchor="bottom" id="Event Log" order="1" sideWeight="0.50039744" side_tool="true" weight="0.20866142" />
|
||||
<window_info anchor="bottom" id="Messages" order="2" weight="0.32913387" />
|
||||
<window_info anchor="bottom" id="Message" order="3" />
|
||||
<window_info anchor="bottom" id="Version Control" order="4" />
|
||||
<window_info anchor="bottom" id="Find" order="5" weight="0.32992125" />
|
||||
<window_info active="true" anchor="bottom" id="Run" order="6" sideWeight="0.49960256" visible="true" weight="0.20866142" />
|
||||
<window_info anchor="bottom" id="Debug" order="7" weight="0.4" />
|
||||
<window_info anchor="bottom" id="Cvs" order="8" weight="0.25" />
|
||||
<window_info anchor="bottom" id="Inspection" order="9" weight="0.4" />
|
||||
<window_info anchor="bottom" id="TODO" order="10" weight="0.32913387" />
|
||||
<window_info anchor="right" id="Palette	" order="0" />
|
||||
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="1" type="SLIDING" weight="0.4" />
|
||||
<window_info anchor="right" id="Maven" order="2" />
|
||||
<window_info anchor="right" id="Ant Build" order="3" weight="0.25" />
|
||||
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="4" weight="0.25" />
|
||||
</layout>
|
||||
<layout-to-restore>
|
||||
<window_info id="Favorites" order="0" side_tool="true" />
|
||||
<window_info id="Designer" order="1" />
|
||||
<window_info content_ui="combo" id="Project" order="2" weight="0.14984101" />
|
||||
<window_info id="Structure" order="3" side_tool="true" weight="0.25" />
|
||||
<window_info anchor="bottom" id="Terminal" order="0" />
|
||||
<window_info anchor="bottom" id="Event Log" order="1" side_tool="true" />
|
||||
<window_info anchor="bottom" id="Messages" order="2" weight="0.32913387" />
|
||||
<window_info anchor="bottom" id="Message" order="3" />
|
||||
<window_info anchor="bottom" id="Version Control" order="4" />
|
||||
<window_info anchor="bottom" id="Find" order="5" />
|
||||
<window_info anchor="bottom" id="Run" order="6" visible="true" weight="0.32913387" />
|
||||
<window_info anchor="bottom" id="Debug" order="7" weight="0.4" />
|
||||
<window_info anchor="bottom" id="Cvs" order="8" weight="0.25" />
|
||||
<window_info anchor="bottom" id="Inspection" order="9" weight="0.4" />
|
||||
<window_info anchor="bottom" id="TODO" order="10" />
|
||||
<window_info anchor="right" id="Palette	" order="0" />
|
||||
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="1" type="SLIDING" weight="0.4" />
|
||||
<window_info anchor="right" id="Maven" order="2" />
|
||||
<window_info anchor="right" id="Ant Build" order="3" weight="0.25" />
|
||||
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="4" weight="0.25" />
|
||||
</layout-to-restore>
|
||||
</component>
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="jar://$USER_HOME$/Downloads/oszimtJE.jar!/Tastatur.class">
|
||||
<provider selected="true" editor-type-id="text-editor" />
|
||||
</entry>
|
||||
<entry file="jar://$USER_HOME$/Downloads/oszimtJE.jar!/Datenbankverbindung.class">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="442">
|
||||
<caret line="26" column="89" selection-start-line="26" selection-start-column="89" selection-end-line="26" selection-end-column="89" />
|
||||
<folding>
|
||||
<element signature="e#0#3754#0" expanded="true" />
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$USER_HOME$/Desktop/bruder-bot-master/src/main/java/tf/spenny/bot/database/Database.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="620">
|
||||
<caret line="106" column="41" selection-start-line="106" selection-start-column="41" selection-end-line="106" selection-end-column="41" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/database.properties">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="17">
|
||||
<caret line="1" column="1" selection-start-line="1" selection-start-column="1" selection-end-line="1" selection-end-column="1" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://C:/Program Files/AdoptOpenJDK/jdk-11.0.9.11-hotspot/lib/src.zip!/java.base/java/io/BufferedInputStream.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="238">
|
||||
<caret line="350" selection-start-line="350" selection-end-line="350" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://C:/Program Files/AdoptOpenJDK/jdk-11.0.9.11-hotspot/lib/src.zip!/java.base/sun/nio/cs/StreamDecoder.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="238">
|
||||
<caret line="177" selection-start-line="177" selection-end-line="177" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://C:/Program Files/AdoptOpenJDK/jdk-11.0.9.11-hotspot/lib/src.zip!/java.base/java/io/InputStreamReader.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="329">
|
||||
<caret line="184" selection-start-line="184" selection-end-line="184" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://C:/Program Files/AdoptOpenJDK/jdk-11.0.9.11-hotspot/lib/src.zip!/java.base/java/io/BufferedReader.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="238">
|
||||
<caret line="391" selection-start-line="391" selection-end-line="391" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://$USER_HOME$/Downloads/mysql-connector-java-8.0.22.jar!/com/mysql/cj/jdbc/AbandonedConnectionCleanupThread.class">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="357">
|
||||
<caret line="34" selection-start-line="34" selection-end-line="34" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://C:/Program Files/AdoptOpenJDK/jdk-11.0.9.11-hotspot/lib/src.zip!/java.base/java/lang/ref/ReferenceQueue.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="245">
|
||||
<caret line="154" selection-start-line="154" selection-end-line="154" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://C:/Program Files/AdoptOpenJDK/jdk-11.0.9.11-hotspot/lib/src.zip!/java.base/java/lang/Object.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="245">
|
||||
<caret line="351" column="29" selection-start-line="351" selection-start-column="29" selection-end-line="351" selection-end-column="29" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://C:/Program Files/AdoptOpenJDK/jdk-11.0.9.11-hotspot/lib/src.zip!/java.base/java/io/FileInputStream.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="245">
|
||||
<caret line="242" column="23" selection-start-line="242" selection-start-column="23" selection-end-line="242" selection-end-column="23" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/models/Pkw.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="532">
|
||||
<caret line="68" column="22" selection-start-line="68" selection-start-column="22" selection-end-line="68" selection-end-column="22" />
|
||||
<folding>
|
||||
<element signature="e#1099#1100#0" expanded="true" />
|
||||
<element signature="e#1134#1135#0" expanded="true" />
|
||||
<element signature="e#1190#1191#0" expanded="true" />
|
||||
<element signature="e#1238#1239#0" expanded="true" />
|
||||
<element signature="e#1582#1583#0" expanded="true" />
|
||||
<element signature="e#1608#1609#0" expanded="true" />
|
||||
<element signature="e#1643#1644#0" expanded="true" />
|
||||
<element signature="e#1673#1674#0" expanded="true" />
|
||||
<element signature="e#1700#1701#0" expanded="true" />
|
||||
<element signature="e#1726#1727#0" expanded="true" />
|
||||
<element signature="e#1761#1762#0" expanded="true" />
|
||||
<element signature="e#1791#1792#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/helper/Database.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="260">
|
||||
<caret line="150" lean-forward="true" selection-start-line="150" selection-end-line="150" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/models/Modell.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="867">
|
||||
<caret line="73" column="29" selection-start-line="73" selection-start-column="29" selection-end-line="73" selection-end-column="29" />
|
||||
<folding>
|
||||
<element signature="e#1275#1276#0" expanded="true" />
|
||||
<element signature="e#1317#1318#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/models/Kunde.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="935">
|
||||
<caret line="73" column="25" selection-start-line="73" selection-start-column="25" selection-end-line="73" selection-end-column="25" />
|
||||
<folding>
|
||||
<element signature="e#427#428#0" expanded="true" />
|
||||
<element signature="e#453#454#0" expanded="true" />
|
||||
<element signature="e#488#489#0" expanded="true" />
|
||||
<element signature="e#518#519#0" expanded="true" />
|
||||
<element signature="e#1232#1233#0" expanded="true" />
|
||||
<element signature="e#1270#1271#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/helper/Shop.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="770">
|
||||
<caret line="158" column="34" selection-start-line="158" selection-start-column="34" selection-end-line="158" selection-end-column="34" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/Main.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="770">
|
||||
<caret line="95" column="63" selection-start-line="95" selection-start-column="63" selection-end-line="95" selection-end-column="63" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/autovermietung/helper/Tastatur.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="986">
|
||||
<caret line="127" column="50" selection-start-line="127" selection-start-column="50" selection-end-line="127" selection-end-column="50" />
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</component>
|
||||
<component name="masterDetails">
|
||||
<states>
|
||||
<state key="ArtifactsStructureConfigurable.UI">
|
||||
<settings>
|
||||
<artifact-editor />
|
||||
<last-edited>Autovermietung</last-edited>
|
||||
<splitter-proportions>
|
||||
<option name="proportions">
|
||||
<list>
|
||||
<option value="0.2" />
|
||||
<option value="0.5" />
|
||||
</list>
|
||||
</option>
|
||||
</splitter-proportions>
|
||||
</settings>
|
||||
</state>
|
||||
<state key="FacetStructureConfigurable.UI">
|
||||
<settings>
|
||||
<last-edited>No facets are configured</last-edited>
|
||||
<splitter-proportions>
|
||||
<option name="proportions">
|
||||
<list>
|
||||
<option value="0.2" />
|
||||
</list>
|
||||
</option>
|
||||
</splitter-proportions>
|
||||
</settings>
|
||||
</state>
|
||||
<state key="GlobalLibrariesConfigurable.UI">
|
||||
<settings>
|
||||
<splitter-proportions>
|
||||
<option name="proportions">
|
||||
<list>
|
||||
<option value="0.2" />
|
||||
</list>
|
||||
</option>
|
||||
</splitter-proportions>
|
||||
</settings>
|
||||
</state>
|
||||
<state key="JdkListConfigurable.UI">
|
||||
<settings>
|
||||
<splitter-proportions>
|
||||
<option name="proportions">
|
||||
<list>
|
||||
<option value="0.2" />
|
||||
</list>
|
||||
</option>
|
||||
</splitter-proportions>
|
||||
</settings>
|
||||
</state>
|
||||
<state key="ModuleStructureConfigurable.UI">
|
||||
<settings>
|
||||
<splitter-proportions>
|
||||
<option name="proportions">
|
||||
<list>
|
||||
<option value="0.2" />
|
||||
</list>
|
||||
</option>
|
||||
</splitter-proportions>
|
||||
</settings>
|
||||
</state>
|
||||
<state key="ProjectLibrariesConfigurable.UI">
|
||||
<settings>
|
||||
<last-edited>mysql-connector-java-8.0.22</last-edited>
|
||||
<splitter-proportions>
|
||||
<option name="proportions">
|
||||
<list>
|
||||
<option value="0.2" />
|
||||
</list>
|
||||
</option>
|
||||
</splitter-proportions>
|
||||
</settings>
|
||||
</state>
|
||||
</states>
|
||||
</component>
|
||||
</project>
|
14
autovermietung-int.iml
Normal file
14
autovermietung-int.iml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="oszimtJE" level="project" />
|
||||
<orderEntry type="library" name="oszimtJE1" level="project" />
|
||||
<orderEntry type="library" name="mysql-connector-java-8.0.22" level="project" />
|
||||
</component>
|
||||
</module>
|
4
autovermietung.properties
Normal file
4
autovermietung.properties
Normal file
|
@ -0,0 +1,4 @@
|
|||
path.variable.kotlin_bundled=C\:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2019.1.3\\plugins\\Kotlin\\kotlinc
|
||||
path.variable.maven_repository=C\:\\Users\\Philipp\\.m2\\repository
|
||||
jdk.home.11=C\:/Program Files/AdoptOpenJDK/jdk-11.0.9.11-hotspot
|
||||
javac2.instrumentation.includeJavaRuntime=false
|
183
autovermietung.xml
Normal file
183
autovermietung.xml
Normal file
|
@ -0,0 +1,183 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="autovermietung-int" default="all">
|
||||
|
||||
|
||||
<property file="autovermietung.properties"/>
|
||||
<!-- Uncomment the following property if no tests compilation is needed -->
|
||||
<!--
|
||||
<property name="skip.tests" value="true"/>
|
||||
-->
|
||||
|
||||
<!-- Compiler options -->
|
||||
|
||||
<property name="compiler.debug" value="on"/>
|
||||
<property name="compiler.generate.no.warnings" value="off"/>
|
||||
<property name="compiler.args" value=""/>
|
||||
<property name="compiler.max.memory" value="700m"/>
|
||||
<patternset id="ignored.files">
|
||||
<exclude name="**/*.hprof/**"/>
|
||||
<exclude name="**/*.pyc/**"/>
|
||||
<exclude name="**/*.pyo/**"/>
|
||||
<exclude name="**/*.rbc/**"/>
|
||||
<exclude name="**/*.yarb/**"/>
|
||||
<exclude name="**/*~/**"/>
|
||||
<exclude name="**/.DS_Store/**"/>
|
||||
<exclude name="**/.git/**"/>
|
||||
<exclude name="**/.hg/**"/>
|
||||
<exclude name="**/.svn/**"/>
|
||||
<exclude name="**/CVS/**"/>
|
||||
<exclude name="**/__pycache__/**"/>
|
||||
<exclude name="**/_svn/**"/>
|
||||
<exclude name="**/vssver.scc/**"/>
|
||||
<exclude name="**/vssver2.scc/**"/>
|
||||
</patternset>
|
||||
<patternset id="library.patterns">
|
||||
<include name="*.war"/>
|
||||
<include name="*.swc"/>
|
||||
<include name="*.apk"/>
|
||||
<include name="*.zip"/>
|
||||
<include name="*.egg"/>
|
||||
<include name="*.ane"/>
|
||||
<include name="*.jar"/>
|
||||
<include name="*.ear"/>
|
||||
<include name="*.klib"/>
|
||||
</patternset>
|
||||
<patternset id="compiler.resources">
|
||||
<exclude name="**/?*.java"/>
|
||||
<exclude name="**/?*.form"/>
|
||||
<exclude name="**/?*.class"/>
|
||||
<exclude name="**/?*.groovy"/>
|
||||
<exclude name="**/?*.scala"/>
|
||||
<exclude name="**/?*.flex"/>
|
||||
<exclude name="**/?*.kt"/>
|
||||
<exclude name="**/?*.clj"/>
|
||||
<exclude name="**/?*.aj"/>
|
||||
</patternset>
|
||||
|
||||
<!-- JDK definitions -->
|
||||
|
||||
<property name="jdk.bin.11" value="${jdk.home.11}/bin"/>
|
||||
<path id="jdk.classpath.11">
|
||||
<fileset dir="${jdk.home.11}">
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.base"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.compiler"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.datatransfer"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.desktop"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.instrument"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.logging"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.management"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.management.rmi"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.naming"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.net.http"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.prefs"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.rmi"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.scripting"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.se"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.security.jgss"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.security.sasl"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.smartcardio"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.sql"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.sql.rowset"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.transaction.xa"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.xml"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/java.xml.crypto"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.accessibility"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.aot"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.attach"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.charsets"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.compiler"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.crypto.cryptoki"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.crypto.ec"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.crypto.mscapi"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.dynalink"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.editpad"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.hotspot.agent"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.httpserver"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.internal.ed"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.internal.jvmstat"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.internal.le"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.internal.opt"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.internal.vm.ci"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.internal.vm.compiler"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.internal.vm.compiler.management"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jartool"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.javadoc"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jcmd"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jconsole"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jdeps"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jdi"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jdwp.agent"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jfr"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jlink"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jshell"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jsobject"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.jstatd"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.localedata"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.management"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.management.agent"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.management.jfr"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.naming.dns"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.naming.ldap"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.naming.rmi"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.net"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.pack"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.rmic"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.scripting.nashorn"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.scripting.nashorn.shell"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.sctp"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.security.auth"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.security.jgss"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.unsupported"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.unsupported.desktop"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.xml.dom"/>
|
||||
<include name="../jdk-11.0.9.11-hotspot!/jdk.zipfs"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<property name="project.jdk.home" value="${jdk.home.11}"/>
|
||||
<property name="project.jdk.bin" value="${jdk.bin.11}"/>
|
||||
<property name="project.jdk.classpath" value="jdk.classpath.11"/>
|
||||
|
||||
|
||||
<!-- Project Libraries -->
|
||||
|
||||
<path id="library.mysql-connector-java-8.0.22.classpath">
|
||||
<pathelement location="${basedir}/../../../../Downloads/mysql-connector-java-8.0.22.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="library.oszimtje.classpath">
|
||||
<pathelement location="${basedir}/../Documents/Java/oszimtJE.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="library.oszimtje1.classpath">
|
||||
<pathelement location="${basedir}/../../../../Downloads/oszimtJE.jar"/>
|
||||
</path>
|
||||
<!-- Register Custom Compiler Taskdefs -->
|
||||
<property name="javac2.home" value="${idea.home}/lib"/>
|
||||
<path id="javac2.classpath">
|
||||
<fileset dir="${javac2.home}">
|
||||
<include name="javac2.jar"/>
|
||||
<include name="jdom.jar"/>
|
||||
<include name="asm-all*.jar"/>
|
||||
<include name="forms-*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
<target name="register.custom.compilers">
|
||||
<taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
|
||||
<taskdef name="instrumentIdeaExtensions" classname="com.intellij.ant.InstrumentIdeaExtensions" classpathref="javac2.classpath"/>
|
||||
</target>
|
||||
|
||||
<!-- Modules -->
|
||||
|
||||
<import file="${basedir}/module_autovermietung-int.xml"/>
|
||||
|
||||
<target name="init" description="Build initialization">
|
||||
<!-- Perform any build initialization in this target -->
|
||||
</target>
|
||||
|
||||
<target name="clean" depends="clean.module.autovermietung-int" description="cleanup all"/>
|
||||
|
||||
<target name="build.modules" depends="init, clean, compile.module.autovermietung-int" description="build all modules"/>
|
||||
|
||||
<target name="all" depends="build.modules" description="build all"/>
|
||||
</project>
|
5
database.properties
Normal file
5
database.properties
Normal file
|
@ -0,0 +1,5 @@
|
|||
#Wed Apr 04 19:46:31 CEST 2018
|
||||
db=gruppenarbeit
|
||||
ip=s.spenny.tf
|
||||
username=gruppenarbeit
|
||||
password=gruppenarbeit21
|
90
module_autovermietung-int.xml
Normal file
90
module_autovermietung-int.xml
Normal file
|
@ -0,0 +1,90 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="module_autovermietung-int" default="compile.module.autovermietung-int">
|
||||
<dirname property="module.autovermietung-int.basedir" file="${ant.file.module_autovermietung-int}"/>
|
||||
|
||||
<property name="module.jdk.home.autovermietung-int" value="${project.jdk.home}"/>
|
||||
<property name="module.jdk.bin.autovermietung-int" value="${project.jdk.bin}"/>
|
||||
<property name="module.jdk.classpath.autovermietung-int" value="${project.jdk.classpath}"/>
|
||||
|
||||
<property name="compiler.args.autovermietung-int" value="-encoding UTF-8 -source 11 -target 11 ${compiler.args}"/>
|
||||
|
||||
<property name="autovermietung-int.output.dir" value="${module.autovermietung-int.basedir}/out/production/autovermietung-int"/>
|
||||
<property name="autovermietung-int.testoutput.dir" value="${module.autovermietung-int.basedir}/out/test/autovermietung-int"/>
|
||||
|
||||
<path id="autovermietung-int.module.bootclasspath">
|
||||
<!-- Paths to be included in compilation bootclasspath -->
|
||||
</path>
|
||||
|
||||
<path id="autovermietung-int.module.production.classpath">
|
||||
<path refid="${module.jdk.classpath.autovermietung-int}"/>
|
||||
<path refid="library.oszimtje.classpath"/>
|
||||
<path refid="library.oszimtje1.classpath"/>
|
||||
<path refid="library.mysql-connector-java-8.0.22.classpath"/>
|
||||
</path>
|
||||
|
||||
<path id="autovermietung-int.runtime.production.module.classpath">
|
||||
<pathelement location="${autovermietung-int.output.dir}"/>
|
||||
<path refid="library.oszimtje.classpath"/>
|
||||
<path refid="library.oszimtje1.classpath"/>
|
||||
<path refid="library.mysql-connector-java-8.0.22.classpath"/>
|
||||
</path>
|
||||
|
||||
<path id="autovermietung-int.module.classpath">
|
||||
<path refid="${module.jdk.classpath.autovermietung-int}"/>
|
||||
<pathelement location="${autovermietung-int.output.dir}"/>
|
||||
<path refid="library.oszimtje.classpath"/>
|
||||
<path refid="library.oszimtje1.classpath"/>
|
||||
<path refid="library.mysql-connector-java-8.0.22.classpath"/>
|
||||
</path>
|
||||
|
||||
<path id="autovermietung-int.runtime.module.classpath">
|
||||
<pathelement location="${autovermietung-int.testoutput.dir}"/>
|
||||
<pathelement location="${autovermietung-int.output.dir}"/>
|
||||
<path refid="library.oszimtje.classpath"/>
|
||||
<path refid="library.oszimtje1.classpath"/>
|
||||
<path refid="library.mysql-connector-java-8.0.22.classpath"/>
|
||||
</path>
|
||||
|
||||
|
||||
<patternset id="excluded.from.module.autovermietung-int">
|
||||
<patternset refid="ignored.files"/>
|
||||
</patternset>
|
||||
|
||||
<patternset id="excluded.from.compilation.autovermietung-int">
|
||||
<patternset refid="excluded.from.module.autovermietung-int"/>
|
||||
</patternset>
|
||||
|
||||
<path id="autovermietung-int.module.sourcepath">
|
||||
<dirset dir="${module.autovermietung-int.basedir}">
|
||||
<include name="src"/>
|
||||
</dirset>
|
||||
</path>
|
||||
|
||||
|
||||
<target name="compile.module.autovermietung-int" depends="compile.module.autovermietung-int.production,compile.module.autovermietung-int.tests" description="Compile module autovermietung-int"/>
|
||||
|
||||
<target name="compile.module.autovermietung-int.production" depends="register.custom.compilers" description="Compile module autovermietung-int; production classes">
|
||||
<mkdir dir="${autovermietung-int.output.dir}"/>
|
||||
<javac2 destdir="${autovermietung-int.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.autovermietung-int}/javac">
|
||||
<compilerarg line="${compiler.args.autovermietung-int}"/>
|
||||
<bootclasspath refid="autovermietung-int.module.bootclasspath"/>
|
||||
<classpath refid="autovermietung-int.module.production.classpath"/>
|
||||
<src refid="autovermietung-int.module.sourcepath"/>
|
||||
<patternset refid="excluded.from.compilation.autovermietung-int"/>
|
||||
</javac2>
|
||||
|
||||
<copy todir="${autovermietung-int.output.dir}">
|
||||
<fileset dir="${module.autovermietung-int.basedir}/src">
|
||||
<patternset refid="compiler.resources"/>
|
||||
<type type="file"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="compile.module.autovermietung-int.tests" depends="register.custom.compilers,compile.module.autovermietung-int.production" description="compile module autovermietung-int; test classes" unless="skip.tests"/>
|
||||
|
||||
<target name="clean.module.autovermietung-int" description="cleanup module">
|
||||
<delete dir="${autovermietung-int.output.dir}"/>
|
||||
<delete dir="${autovermietung-int.testoutput.dir}"/>
|
||||
</target>
|
||||
</project>
|
BIN
out/artifacts/Autovermietung/Autovermietung.jar
Normal file
BIN
out/artifacts/Autovermietung/Autovermietung.jar
Normal file
Binary file not shown.
5
out/artifacts/Autovermietung/database.properties
Normal file
5
out/artifacts/Autovermietung/database.properties
Normal file
|
@ -0,0 +1,5 @@
|
|||
#Wed Apr 04 19:46:31 CEST 2018
|
||||
db=gruppenarbeit
|
||||
ip=s.spenny.tf
|
||||
username=gruppenarbeit
|
||||
password=gruppenarbeit21
|
3
out/production/autovermietung-int/META-INF/MANIFEST.MF
Normal file
3
out/production/autovermietung-int/META-INF/MANIFEST.MF
Normal file
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: autovermietung.Main
|
||||
|
Binary file not shown.
BIN
out/production/autovermietung-int/autovermietung/Main.class
Normal file
BIN
out/production/autovermietung-int/autovermietung/Main.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
121
src/autovermietung/Main.java
Normal file
121
src/autovermietung/Main.java
Normal file
|
@ -0,0 +1,121 @@
|
|||
package autovermietung;
|
||||
|
||||
import autovermietung.helper.Shop;
|
||||
import autovermietung.models.Kunde;
|
||||
import autovermietung.models.Modell;
|
||||
import autovermietung.models.Pkw;
|
||||
import autovermietung.helper.Database;
|
||||
import autovermietung.helper.Tastatur;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
// Auslesen der momentanen Datenbank Daten
|
||||
ArrayList<Kunde> kunden;
|
||||
ArrayList<Modell> modelle;
|
||||
ArrayList<Pkw> pkws;
|
||||
int auswahl = 99;
|
||||
|
||||
do {
|
||||
kunden = Database.liesKunden();
|
||||
modelle = Database.liesModell();
|
||||
pkws = Database.liesPkw();
|
||||
|
||||
Shop.hauptMenu();
|
||||
auswahl = Tastatur.liesInt();
|
||||
switch (auswahl) {
|
||||
// Auto Menü wird angezeigt
|
||||
case 1:
|
||||
Shop.autoMenu();
|
||||
auswahl = Tastatur.liesInt();
|
||||
switch (auswahl) {
|
||||
// Auto erstellen Menü wird ausgeführt
|
||||
case 1:
|
||||
pkws.add(Shop.autoVermieten(modelle, kunden));
|
||||
break;
|
||||
// Autos anzeigen in der Datenbank
|
||||
case 2:
|
||||
Shop.autoAnzeigen(pkws, modelle, kunden);
|
||||
Tastatur.liesString();
|
||||
break;
|
||||
// Auto löschen aus der Datenbank
|
||||
case 9:
|
||||
auswahl = Shop.autoEntfernen(pkws, modelle, kunden);
|
||||
Database.deletePkw(pkws.get(auswahl));
|
||||
pkws.remove(auswahl);
|
||||
break;
|
||||
}
|
||||
|
||||
// Updaten aller Autos in der PKW Liste.
|
||||
for(Pkw pkw : pkws) {
|
||||
Database.updatePkw(pkw);
|
||||
}
|
||||
break;
|
||||
// Modell Menü wird angezeigt
|
||||
case 2:
|
||||
Shop.modellMenu();
|
||||
auswahl = Tastatur.liesInt();
|
||||
switch (auswahl) {
|
||||
// Erstellen eines Auto Modells
|
||||
case 1:
|
||||
Shop.modellErstellen(modelle);
|
||||
break;
|
||||
// Anzeigen aller Auto Modelle
|
||||
case 2:
|
||||
Shop.modellAnzeigen(modelle);
|
||||
Tastatur.liesString();
|
||||
break;
|
||||
// Löschen eines Auto Modells
|
||||
case 9:
|
||||
auswahl = Shop.modellEntfernen(modelle);
|
||||
Database.deleteModell(modelle.get(auswahl));
|
||||
modelle.remove(auswahl);
|
||||
break;
|
||||
}
|
||||
|
||||
// Updaten aller Modelle in der Modell Liste.
|
||||
for(Modell modell : modelle) {
|
||||
Database.updateModell(modell);
|
||||
}
|
||||
break;
|
||||
// Kunden Menü wird angezeigt
|
||||
case 3:
|
||||
Shop.kundenMenu();
|
||||
auswahl = Tastatur.liesInt();
|
||||
switch (auswahl) {
|
||||
// Erstellen eines neues Kunden
|
||||
case 1:
|
||||
Shop.kundeErstellen(kunden);
|
||||
break;
|
||||
// Anzeigen aller eingetragenen Kunden
|
||||
case 2:
|
||||
Shop.kundeAnzeigen(kunden);
|
||||
Tastatur.liesString();
|
||||
break;
|
||||
// Löschen eines Kunden in der Datenbank
|
||||
case 9:
|
||||
auswahl = Shop.kundenEntfernen(kunden);
|
||||
Database.deleteKunde(kunden.get(auswahl));
|
||||
kunden.remove(auswahl);
|
||||
}
|
||||
|
||||
// Updaten aller Kunden in der Kunden Liste.
|
||||
for(Kunde kunde : kunden) {
|
||||
Database.updateKunde(kunde);
|
||||
}
|
||||
break;
|
||||
// Programm wird beendet
|
||||
case 0:
|
||||
Shop.programmBeendet();
|
||||
break;
|
||||
// Hauptmenü wird angezeigt da falsche Eingabe
|
||||
default:
|
||||
Shop.falscheEingabe();
|
||||
Shop.hauptMenu();
|
||||
auswahl = Tastatur.liesInt();
|
||||
}
|
||||
|
||||
} while(auswahl != 0);
|
||||
}
|
||||
}
|
232
src/autovermietung/helper/Database.java
Normal file
232
src/autovermietung/helper/Database.java
Normal file
|
@ -0,0 +1,232 @@
|
|||
package autovermietung.helper;
|
||||
|
||||
import autovermietung.models.Kunde;
|
||||
import autovermietung.models.Modell;
|
||||
import autovermietung.models.Pkw;
|
||||
|
||||
import java.io.*;
|
||||
import java.sql.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Properties;
|
||||
|
||||
public class Database {
|
||||
private static String strUsername, strPassword, ipStr, dbStr;
|
||||
|
||||
public static ArrayList<Kunde> liesKunden() {
|
||||
ArrayList<Kunde> Kunden = new ArrayList<>();
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
|
||||
PreparedStatement kunden = conn.prepareStatement("SELECT * FROM kunde");
|
||||
ResultSet result = kunden.executeQuery();
|
||||
|
||||
while(result.next()) {
|
||||
Kunden.add(new Kunde(result.getInt(1), result.getString(2), result.getString(3), result.getString(4), result.getString(5), result.getInt(6)));
|
||||
}
|
||||
|
||||
conn.close();
|
||||
|
||||
} catch(Exception e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
return Kunden;
|
||||
}
|
||||
|
||||
public static ArrayList<Modell> liesModell() {
|
||||
ArrayList<Modell> Modelle = new ArrayList<>();
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
|
||||
PreparedStatement modelle = conn.prepareStatement("SELECT * FROM modell");
|
||||
ResultSet result = modelle.executeQuery();
|
||||
|
||||
while(result.next()) {
|
||||
Modelle.add(new Modell(result.getInt(1), result.getString(2), result.getInt(3), result.getInt(4), result.getFloat(5), result.getFloat(6)));
|
||||
}
|
||||
|
||||
conn.close();
|
||||
|
||||
} catch(Exception e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
return Modelle;
|
||||
}
|
||||
|
||||
public static ArrayList<Pkw> liesPkw() {
|
||||
ArrayList<Pkw> Pkws = new ArrayList<>();
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
|
||||
PreparedStatement pkws = conn.prepareStatement("SELECT * FROM pkw");
|
||||
ResultSet result = pkws.executeQuery();
|
||||
|
||||
while(result.next()) {
|
||||
Pkws.add(new Pkw(result.getString(1), result.getDate(2), result.getInt(3), result.getString(4), result.getDate(5), result.getInt(6), result.getInt(7)));
|
||||
}
|
||||
|
||||
conn.close();
|
||||
|
||||
} catch(Exception e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
return Pkws;
|
||||
}
|
||||
|
||||
public static void updatePkw(Pkw auto) {
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
|
||||
String kennzeichen = auto.getKennzeichen();
|
||||
Date erstzulassung = auto.getErstzulassung();
|
||||
int tachostand = auto.getTachostand();
|
||||
String farbe = auto.getFarbe();
|
||||
Date ausleihdatum = auto.getAusleihdatum();
|
||||
int mnr = auto.getMnr();
|
||||
int knr = auto.getKnr();
|
||||
|
||||
PreparedStatement updatePkw = conn.prepareStatement("REPLACE INTO pkw VALUES(\"" + kennzeichen + "\", \"" + erstzulassung + "\", " + tachostand + ", \"" + farbe + "\", \"" + ausleihdatum + "\", " + mnr + ", " + knr + ");");
|
||||
updatePkw.executeQuery();
|
||||
|
||||
conn.close();
|
||||
} catch(Exception e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
public static void deletePkw(Pkw auto) {
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
|
||||
String kennzeichen = auto.getKennzeichen();
|
||||
|
||||
String deletePkwSQL = "DELETE FROM pkw WHERE kennzeichen = ?;";
|
||||
PreparedStatement deletePkw = conn.prepareStatement(deletePkwSQL);
|
||||
deletePkw.setString(1, kennzeichen);
|
||||
deletePkw.executeUpdate();
|
||||
|
||||
conn.close();
|
||||
} catch(Exception e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void updateKunde(Kunde kunde) {
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
|
||||
int knr = kunde.getKnr();
|
||||
String vorname = kunde.getVorname();
|
||||
String nachname = kunde.getNachname();
|
||||
String anschrift = kunde.getAnschrift();
|
||||
String telefon = kunde.getTelefon();
|
||||
int personr = kunde.getPersonr();
|
||||
|
||||
PreparedStatement updateKunde = conn.prepareStatement("REPLACE INTO kunde VALUES(" + knr + ", " + vorname + ", " + nachname + ", " + anschrift + ", " + telefon + ", " + personr + ";");
|
||||
updateKunde.executeQuery();
|
||||
|
||||
conn.close();
|
||||
} catch(Exception e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
public static void deleteKunde(Kunde kunde) {
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
|
||||
int knr = kunde.getKnr();
|
||||
|
||||
String deleteKundeSQL = "DELETE FROM kunde WHERE knr = ?;";
|
||||
PreparedStatement deleteKunde = conn.prepareStatement(deleteKundeSQL);
|
||||
deleteKunde.setInt(1, knr);
|
||||
deleteKunde.executeUpdate();
|
||||
|
||||
conn.close();
|
||||
} catch(Exception e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void updateModell(Modell modell) {
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
|
||||
int mnr = modell.getMnr();
|
||||
String modellname = modell.getModellname();
|
||||
int hubraum = modell.getHubraum();
|
||||
int leistung = modell.getLeistung();
|
||||
float kmpreis = modell.getKmpreis();
|
||||
float pauschale = modell.getPauschale();
|
||||
|
||||
PreparedStatement updateModell = conn.prepareStatement("REPLACE INTO modell VALUES(" + mnr + ", " + modellname + ", " + hubraum + ", " + leistung + ", " + kmpreis + ", " + pauschale + ";");
|
||||
updateModell.executeQuery();
|
||||
|
||||
conn.close();
|
||||
} catch(Exception e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
public static void deleteModell(Modell modell) {
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
|
||||
int mnr = modell.getMnr();
|
||||
|
||||
String deleteModellSQL = "DELETE FROM modell WHERE mnr = ?;";
|
||||
PreparedStatement deleteModell = conn.prepareStatement(deleteModellSQL);
|
||||
deleteModell.setInt(1, mnr);
|
||||
deleteModell.executeUpdate();
|
||||
|
||||
conn.close();
|
||||
} catch(Exception e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static Connection getConnection() throws Exception {
|
||||
Properties prop = new Properties();
|
||||
InputStream input = null;
|
||||
|
||||
try {
|
||||
input = new FileInputStream("database.properties");
|
||||
|
||||
// load input
|
||||
prop.load(input);
|
||||
|
||||
// get all values
|
||||
ipStr = prop.getProperty("ip");
|
||||
dbStr = prop.getProperty("db");
|
||||
strUsername = prop.getProperty("username");
|
||||
strPassword = prop.getProperty("password");
|
||||
|
||||
} catch(IOException ex) {
|
||||
ex.printStackTrace();
|
||||
} finally {
|
||||
if(input != null) {
|
||||
try {
|
||||
input.close();
|
||||
} catch(IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
String driver = "com.mysql.cj.jdbc.Driver";
|
||||
String url = "jdbc:mysql://" + ipStr + "/" + dbStr + "?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC";
|
||||
String username = strUsername;
|
||||
String password = strPassword;
|
||||
Class.forName(driver);
|
||||
|
||||
Connection conn = DriverManager.getConnection(url, username, password);
|
||||
return conn;
|
||||
} catch(Exception e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
219
src/autovermietung/helper/Shop.java
Normal file
219
src/autovermietung/helper/Shop.java
Normal file
|
@ -0,0 +1,219 @@
|
|||
package autovermietung.helper;
|
||||
|
||||
import autovermietung.models.Kunde;
|
||||
import autovermietung.models.Modell;
|
||||
import autovermietung.models.Pkw;
|
||||
|
||||
import java.sql.Array;
|
||||
import java.sql.Date;
|
||||
import java.time.LocalDate;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Shop {
|
||||
private static void clearScreen() {
|
||||
try
|
||||
{
|
||||
final String os = System.getProperty("os.name");
|
||||
|
||||
if (os.contains("Windows"))
|
||||
{
|
||||
new ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor();
|
||||
}
|
||||
else
|
||||
{
|
||||
Runtime.getRuntime().exec("clear");
|
||||
}
|
||||
}
|
||||
catch (final Exception e)
|
||||
{
|
||||
System.out.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
private static void menuText() {
|
||||
clearScreen();
|
||||
System.out.println("================================================");
|
||||
System.out.println("Bitte aus den folgenen Menüpunkten wählen:");
|
||||
System.out.println("================================================");
|
||||
}
|
||||
|
||||
private static void menuEnde() {
|
||||
System.out.println();
|
||||
System.out.println("0.\tProgramm beenden");
|
||||
System.out.println("================================================");
|
||||
System.out.print("Ihre Auswahl: ");
|
||||
}
|
||||
|
||||
public static void hauptMenu() {
|
||||
menuText();
|
||||
System.out.println("1.\tAuto Verwaltung");
|
||||
System.out.println("2.\tModell Verwaltung");
|
||||
System.out.println("3.\tKunden Verwaltung");
|
||||
menuEnde();
|
||||
}
|
||||
|
||||
public static void falscheEingabe() {
|
||||
System.out.println("Es wurde kein Menüpunkt ausgewählt!");
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
public static void autoMenu() {
|
||||
menuText();
|
||||
System.out.println("1.\tAutos vermieten");
|
||||
System.out.println("2.\tAutos anzeigen");
|
||||
System.out.println("9.\tAuto entfernen");
|
||||
menuEnde();
|
||||
}
|
||||
|
||||
public static void modellMenu() {
|
||||
menuText();
|
||||
System.out.println("1.\tModell erstellen");
|
||||
System.out.println("2.\tModell anzeigen");
|
||||
System.out.println("9.\tModell entfernen");
|
||||
menuEnde();
|
||||
}
|
||||
|
||||
public static void kundenMenu() {
|
||||
menuText();
|
||||
System.out.println("1.\tKunde erstellen");
|
||||
System.out.println("2.\tKunde anzeigen");
|
||||
System.out.println("9.\tKunde entfernen");
|
||||
menuEnde();
|
||||
}
|
||||
|
||||
public static void autoAnzeigen(ArrayList<Pkw> autos, ArrayList<Modell> modelle, ArrayList<Kunde> kunden) {
|
||||
clearScreen();
|
||||
for(Pkw auto : autos) {
|
||||
auto.getInformation();
|
||||
System.out.print("\t" + modelle.get(auto.getMnr() - 1).getModellname());
|
||||
System.out.println("\t" + kunden.get(auto.getKnr() - 1).getNachname());
|
||||
}
|
||||
System.out.println("Beliebige Taste drücken, um fortzufahren.");
|
||||
}
|
||||
|
||||
public static Pkw autoVermieten(ArrayList<Modell> modelle, ArrayList<Kunde> kunden) {
|
||||
clearScreen();
|
||||
System.out.print("Bitte das Kennzeichen angeben: ");
|
||||
String k = Tastatur.liesString();
|
||||
System.out.print("Erstzulassung Datum angeben (YYYY-MM-DD): ");
|
||||
Date e = Tastatur.liesDate();
|
||||
System.out.print("Bitte momentanen Tachostand angeben: ");
|
||||
int t = Tastatur.liesInt();
|
||||
System.out.print("Bitte die Farbe des Fahrzeugs angeben: ");
|
||||
String f = Tastatur.liesString();
|
||||
|
||||
System.out.println("Bitte das Ausleihdatum angeben(YYYY-MM-DD oder heute): ");
|
||||
String aTemp = Tastatur.liesString();
|
||||
Date a;
|
||||
if(aTemp.equals("heute")) {
|
||||
a = Date.valueOf(LocalDate.now());
|
||||
} else {
|
||||
a = Date.valueOf(aTemp);
|
||||
}
|
||||
|
||||
System.out.println("Liste der Modelle: ");
|
||||
for(Modell modell : modelle) {
|
||||
modell.getInformation();
|
||||
}
|
||||
System.out.print("Bitte die Modell-Nr angeben:");
|
||||
int mnr = Tastatur.liesInt();
|
||||
|
||||
System.out.println("Liste der Kunden: ");
|
||||
for(Kunde kunde : kunden) {
|
||||
kunde.getInformation();
|
||||
}
|
||||
System.out.print("Bitte die Kundennummer angeben: ");
|
||||
int knr = Tastatur.liesInt();
|
||||
|
||||
System.out.println("Das Auto wurde vermietet.");
|
||||
return new Pkw(k, e, t, f, a, mnr, knr);
|
||||
}
|
||||
|
||||
public static Modell modellErstellen(ArrayList<Modell> modelle) {
|
||||
clearScreen();
|
||||
System.out.print("Bitte den Modellnamen angeben: ");
|
||||
String mn = Tastatur.liesString();
|
||||
System.out.print("Bitte den Hubraum angeben: ");
|
||||
int h = Tastatur.liesInt();
|
||||
System.out.print("Bitte die Leistung angeben: ");
|
||||
int l = Tastatur.liesInt();
|
||||
System.out.print("Bitte den KM Preis angeben: ");
|
||||
float kmp = Tastatur.liesFloat();
|
||||
System.out.print("Bitte den Pauschalpreis angeben: ");
|
||||
float p = Tastatur.liesFloat();
|
||||
|
||||
return new Modell(modelle.size() + 1, mn, h, l, kmp, p);
|
||||
}
|
||||
|
||||
public static Kunde kundeErstellen(ArrayList<Kunde> kunden) {
|
||||
clearScreen();
|
||||
System.out.print("Bitte Vorname des Kunden angeben: ");
|
||||
String v = Tastatur.liesString();
|
||||
System.out.print("Bitte Nachnamen des Kunden angeben: ");
|
||||
String n = Tastatur.liesString();
|
||||
System.out.print("Bitte Anschrift des Kunden angeben: ");
|
||||
String a = Tastatur.liesString();
|
||||
System.out.print("Bitte die Telefonnummer des Kunden angeben: ");
|
||||
String t = Tastatur.liesString();
|
||||
System.out.print("Bitte die Personalausweisnummer angeben: ");
|
||||
int p = Tastatur.liesInt();
|
||||
|
||||
return new Kunde(kunden.size() + 1, v, n, a, t, p);
|
||||
}
|
||||
|
||||
public static int autoEntfernen(ArrayList<Pkw> autos, ArrayList<Modell> modelle, ArrayList<Kunde> kunden) {
|
||||
clearScreen();
|
||||
System.out.println("Liste der Autos:");
|
||||
for (int i = 0; i < autos.size(); i++) {
|
||||
System.out.print(i + 1 + ": ");
|
||||
autos.get(i).getInformation();
|
||||
System.out.print("\t" + modelle.get(autos.get(i).getMnr() - 1).getModellname());
|
||||
System.out.println("\t" + kunden.get(autos.get(i).getKnr() - 1).getNachname());
|
||||
}
|
||||
System.out.print("Bitte die Nummer des zu entfernenen Auto abgeben: ");
|
||||
return Tastatur.liesInt() - 1;
|
||||
}
|
||||
|
||||
public static void modellAnzeigen(ArrayList<Modell> modelle) {
|
||||
clearScreen();
|
||||
for(Modell modell : modelle) {
|
||||
modell.getInformation();
|
||||
}
|
||||
System.out.println("Beliebige Taste drücken, um fortzufahren.");
|
||||
}
|
||||
|
||||
public static int modellEntfernen(ArrayList<Modell> modell) {
|
||||
clearScreen();
|
||||
System.out.println("Liste der Autos:");
|
||||
for (int i = 0; i < modell.size(); i++) {
|
||||
System.out.print(i + 1 + ": ");
|
||||
modell.get(i).getInformation();
|
||||
}
|
||||
System.out.print("Bitte die Nummer des zu entfernenen Modell abgeben: ");
|
||||
return Tastatur.liesInt() - 1;
|
||||
}
|
||||
|
||||
public static void kundeAnzeigen(ArrayList<Kunde> kunden) {
|
||||
clearScreen();
|
||||
for(Kunde kunde : kunden) {
|
||||
kunde.getInformation();
|
||||
}
|
||||
System.out.println("Beliebige Taste drücken, um fortzufahren.");
|
||||
}
|
||||
|
||||
public static int kundenEntfernen(ArrayList<Kunde> kunden) {
|
||||
clearScreen();
|
||||
System.out.println("Liste der Autos:");
|
||||
for (int i = 0; i < kunden.size(); i++) {
|
||||
System.out.print(i + 1 + ": ");
|
||||
kunden.get(i).getInformation();
|
||||
}
|
||||
System.out.print("Bitte die Nummer des zu entfernenen Kunden abgeben: ");
|
||||
return Tastatur.liesInt() - 1;
|
||||
}
|
||||
|
||||
public static void programmBeendet() {
|
||||
clearScreen();
|
||||
System.out.println("Das Programm wurde durch den User beendet!");
|
||||
}
|
||||
}
|
213
src/autovermietung/helper/Tastatur.java
Normal file
213
src/autovermietung/helper/Tastatur.java
Normal file
|
@ -0,0 +1,213 @@
|
|||
package autovermietung.helper;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.sql.Date;
|
||||
|
||||
public final class Tastatur {
|
||||
private static BufferedReader b = null;
|
||||
private static Exception fehler = null;
|
||||
private static boolean einfacheFehlerbehandlung = true;
|
||||
|
||||
public Tastatur() {
|
||||
}
|
||||
|
||||
private static void Tastatur() {
|
||||
if (b == null) {
|
||||
b = new BufferedReader(new InputStreamReader(System.in));
|
||||
}
|
||||
|
||||
fehler = null;
|
||||
}
|
||||
|
||||
public static Exception getFehler() {
|
||||
return fehler;
|
||||
}
|
||||
|
||||
public static String getFehlerMeldung() {
|
||||
return fehler != null ? fehler.toString() : "";
|
||||
}
|
||||
|
||||
public static boolean istFehlerAufgetreten() {
|
||||
return fehler != null;
|
||||
}
|
||||
|
||||
public static void setEinfacheFehlerbehandlung(boolean ein) {
|
||||
einfacheFehlerbehandlung = ein;
|
||||
fehler = null;
|
||||
}
|
||||
|
||||
public static boolean istEinfacheFehlerbehandlung() {
|
||||
return einfacheFehlerbehandlung;
|
||||
}
|
||||
|
||||
public static byte liesByte() {
|
||||
while(true) {
|
||||
try {
|
||||
return Byte.parseByte(liesString());
|
||||
} catch (Exception var1) {
|
||||
fehler = var1;
|
||||
if (!einfacheFehlerbehandlung) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
System.out.println("Dies ist kein gueltiger Byte-Wert. Bitte Eingabe wiederholen!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static short liesShort() {
|
||||
while(true) {
|
||||
try {
|
||||
return Short.parseShort(liesString());
|
||||
} catch (Exception var1) {
|
||||
fehler = var1;
|
||||
if (!einfacheFehlerbehandlung) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
System.out.println("Dies ist kein gueltiger Short-Wert. Bitte Eingabe wiederholen!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static int liesInt() {
|
||||
while(true) {
|
||||
try {
|
||||
return Integer.parseInt(liesString(), 10);
|
||||
} catch (Exception var1) {
|
||||
fehler = var1;
|
||||
if (!einfacheFehlerbehandlung) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
System.out.println("Dies ist kein gueltiger Integer-Wert. Bitte Eingabe wiederholen!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static char liesChar() {
|
||||
while(true) {
|
||||
try {
|
||||
return liesString().charAt(0);
|
||||
} catch (Exception var1) {
|
||||
fehler = var1;
|
||||
if (!einfacheFehlerbehandlung) {
|
||||
return '\u0000';
|
||||
}
|
||||
|
||||
System.out.println("Das ist kein gueltiges Zeichen. Bitte Eingabe wiederholen!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static long liesLong() {
|
||||
while(true) {
|
||||
try {
|
||||
fehler = null;
|
||||
return Long.parseLong(liesString(), 10);
|
||||
} catch (Exception var1) {
|
||||
fehler = var1;
|
||||
if (!einfacheFehlerbehandlung) {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
System.out.println("Dies ist kein gueltiger Long-Wert. Bitte Eingabe wiederholen!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static Date liesDate() {
|
||||
while(true) {
|
||||
try {
|
||||
fehler = null;
|
||||
return Date.valueOf(liesString());
|
||||
} catch (Exception var1) {
|
||||
fehler = var1;
|
||||
if (!einfacheFehlerbehandlung) {
|
||||
return Date.valueOf("2020-12-12");
|
||||
}
|
||||
|
||||
System.out.println("Dies ist kein gueltiger Date-Wert. Bitte Eingabe wiederholen!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean liesBoolean() {
|
||||
while(true) {
|
||||
try {
|
||||
fehler = null;
|
||||
String s = liesString();
|
||||
if (s.toUpperCase().charAt(0) != 'J' && s.toUpperCase().charAt(0) != 'Y' && s.toUpperCase().charAt(0) != 'T' && s.toUpperCase().charAt(0) != '1') {
|
||||
if (s.toUpperCase().charAt(0) == 'N') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return Boolean.valueOf(s);
|
||||
}
|
||||
|
||||
return true;
|
||||
} catch (Exception var1) {
|
||||
fehler = var1;
|
||||
if (!einfacheFehlerbehandlung) {
|
||||
return false;
|
||||
}
|
||||
|
||||
System.out.println("Das ist kein gueltiger boolean-Wert. Bitte Eingabe wiederholen!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static double liesDouble() {
|
||||
while(true) {
|
||||
try {
|
||||
fehler = null;
|
||||
return Double.parseDouble(liesString());
|
||||
} catch (Exception var1) {
|
||||
fehler = var1;
|
||||
if (!einfacheFehlerbehandlung) {
|
||||
return 0.0D;
|
||||
}
|
||||
|
||||
System.out.println("Das ist kein gueltiger Double-Wert. Bitte Eingabe wiederholen!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static float liesFloat() {
|
||||
while(true) {
|
||||
try {
|
||||
fehler = null;
|
||||
return Float.parseFloat(liesString());
|
||||
} catch (Exception var1) {
|
||||
fehler = var1;
|
||||
if (!einfacheFehlerbehandlung) {
|
||||
return 0.0F;
|
||||
}
|
||||
|
||||
System.out.println("Das ist kein gueltiger float-Wert. Bitte Eingabe wiederholen!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static String liesString() {
|
||||
Tastatur();
|
||||
|
||||
while(true) {
|
||||
try {
|
||||
return b.readLine();
|
||||
} catch (Exception var1) {
|
||||
fehler = var1;
|
||||
if (!einfacheFehlerbehandlung) {
|
||||
return "";
|
||||
}
|
||||
|
||||
System.out.println("Bei der Eingabe ist ein Fehler aufgetreten. Bitte wiederholen!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void loescheFehler() {
|
||||
fehler = null;
|
||||
}
|
||||
}
|
76
src/autovermietung/models/Kunde.java
Normal file
76
src/autovermietung/models/Kunde.java
Normal file
|
@ -0,0 +1,76 @@
|
|||
package autovermietung.models;
|
||||
|
||||
public class Kunde {
|
||||
private int knr;
|
||||
private String vorname;
|
||||
private String nachname;
|
||||
private String anschrift;
|
||||
private String telefon;
|
||||
private int personr;
|
||||
|
||||
public Kunde(int k, String v, String n, String a, String t, int p) {
|
||||
this.knr = k;
|
||||
this.vorname = v;
|
||||
this.nachname = n;
|
||||
this.anschrift = a;
|
||||
this.telefon = t;
|
||||
this.personr = p;
|
||||
}
|
||||
|
||||
public int getKnr() {
|
||||
return knr;
|
||||
}
|
||||
|
||||
public void setKnr(int knr) {
|
||||
this.knr = knr;
|
||||
}
|
||||
|
||||
public String getVorname() {
|
||||
return vorname;
|
||||
}
|
||||
|
||||
public void setVorname(String vorname) {
|
||||
this.vorname = vorname;
|
||||
}
|
||||
|
||||
public String getNachname() {
|
||||
return nachname;
|
||||
}
|
||||
|
||||
public void setNachname(String nachname) {
|
||||
this.nachname = nachname;
|
||||
}
|
||||
|
||||
public String getAnschrift() {
|
||||
return anschrift;
|
||||
}
|
||||
|
||||
public void setAnschrift(String anschrift) {
|
||||
this.anschrift = anschrift;
|
||||
}
|
||||
|
||||
public int getPersonr() {
|
||||
return personr;
|
||||
}
|
||||
|
||||
public void setPersonr(int personr) {
|
||||
this.personr = personr;
|
||||
}
|
||||
|
||||
public String getTelefon() {
|
||||
return telefon;
|
||||
}
|
||||
|
||||
public void setTelefon(String telefon) {
|
||||
this.telefon = telefon;
|
||||
}
|
||||
|
||||
public void getInformation() {
|
||||
System.out.print(this.knr);
|
||||
System.out.print("\t" + this.vorname);
|
||||
System.out.print("\t" + this.nachname);
|
||||
System.out.print("\t" + this.anschrift);
|
||||
System.out.print("\t" + this.telefon);
|
||||
System.out.println("\t" + this.personr);
|
||||
}
|
||||
}
|
76
src/autovermietung/models/Modell.java
Normal file
76
src/autovermietung/models/Modell.java
Normal file
|
@ -0,0 +1,76 @@
|
|||
package autovermietung.models;
|
||||
|
||||
public class Modell {
|
||||
private int mnr;
|
||||
private String modellname;
|
||||
private int hubraum;
|
||||
private int leistung;
|
||||
private float kmpreis;
|
||||
private float pauschale;
|
||||
|
||||
public Modell(int nr, String mn, int h, int l, float kmp, float p) {
|
||||
this.mnr = nr;
|
||||
this.modellname = mn;
|
||||
this.hubraum = h;
|
||||
this.leistung = l;
|
||||
this.kmpreis = kmp;
|
||||
this.pauschale = p;
|
||||
}
|
||||
|
||||
public int getMnr() {
|
||||
return mnr;
|
||||
}
|
||||
|
||||
public void setMnr(int mnr) {
|
||||
this.mnr = mnr;
|
||||
}
|
||||
|
||||
public String getModellname() {
|
||||
return modellname;
|
||||
}
|
||||
|
||||
public void setModellname(String modellname) {
|
||||
this.modellname = modellname;
|
||||
}
|
||||
|
||||
public int getHubraum() {
|
||||
return hubraum;
|
||||
}
|
||||
|
||||
public void setHubraum(int hubraum) {
|
||||
this.hubraum = hubraum;
|
||||
}
|
||||
|
||||
public int getLeistung() {
|
||||
return leistung;
|
||||
}
|
||||
|
||||
public void setLeistung(int leistung) {
|
||||
this.leistung = leistung;
|
||||
}
|
||||
|
||||
public float getKmpreis() {
|
||||
return kmpreis;
|
||||
}
|
||||
|
||||
public void setKmpreis(float kmpreis) {
|
||||
this.kmpreis = kmpreis;
|
||||
}
|
||||
|
||||
public float getPauschale() {
|
||||
return pauschale;
|
||||
}
|
||||
|
||||
public void setPauschale(float pauschale) {
|
||||
this.pauschale = pauschale;
|
||||
}
|
||||
|
||||
public void getInformation() {
|
||||
System.out.print(this.mnr);
|
||||
System.out.print("\t" + this.modellname);
|
||||
System.out.print("\t" + this.hubraum);
|
||||
System.out.print("\t" + this.leistung);
|
||||
System.out.print("\t" + this.kmpreis);
|
||||
System.out.println("\t" + this.pauschale);
|
||||
}
|
||||
}
|
87
src/autovermietung/models/Pkw.java
Normal file
87
src/autovermietung/models/Pkw.java
Normal file
|
@ -0,0 +1,87 @@
|
|||
package autovermietung.models;
|
||||
|
||||
import java.sql.Date;
|
||||
|
||||
public class Pkw {
|
||||
private String kennzeichen;
|
||||
private Date erstzulassung;
|
||||
private int tachostand;
|
||||
private String farbe;
|
||||
private Date ausleihdatum;
|
||||
private int mnr;
|
||||
private int knr;
|
||||
|
||||
public Pkw(String k, Date e, int t, String f, Date a, int mnr, int knr) {
|
||||
this.kennzeichen = k;
|
||||
this.erstzulassung = e;
|
||||
this.tachostand = t;
|
||||
this.farbe = f;
|
||||
this.ausleihdatum = a;
|
||||
this.mnr = mnr;
|
||||
this.knr = knr;
|
||||
}
|
||||
|
||||
public Date getAusleihdatum() {
|
||||
return ausleihdatum;
|
||||
}
|
||||
|
||||
public void setAusleihdatum(Date ausleihdatum) {
|
||||
this.ausleihdatum = ausleihdatum;
|
||||
}
|
||||
|
||||
public String getFarbe() {
|
||||
return farbe;
|
||||
}
|
||||
|
||||
public void setFarbe(String farbe) {
|
||||
this.farbe = farbe;
|
||||
}
|
||||
|
||||
public int getTachostand() {
|
||||
return tachostand;
|
||||
}
|
||||
|
||||
public void setTachostand(int tachostand) {
|
||||
this.tachostand = tachostand;
|
||||
}
|
||||
|
||||
public Date getErstzulassung() {
|
||||
return erstzulassung;
|
||||
}
|
||||
|
||||
public void setErstzulassung(Date erstzulassung) {
|
||||
this.erstzulassung = erstzulassung;
|
||||
}
|
||||
|
||||
public String getKennzeichen() {
|
||||
return kennzeichen;
|
||||
}
|
||||
|
||||
public void setKennzeichen(String kennzeichen) {
|
||||
this.kennzeichen = kennzeichen;
|
||||
}
|
||||
|
||||
public void getInformation() {
|
||||
System.out.print(this.kennzeichen);
|
||||
System.out.print("\t" + this.farbe);
|
||||
System.out.print("\t" + this.tachostand);
|
||||
System.out.print("\t" + this.erstzulassung);
|
||||
System.out.print("\t" + this.ausleihdatum);
|
||||
}
|
||||
|
||||
public int getKnr() {
|
||||
return knr;
|
||||
}
|
||||
|
||||
public void setKnr(int knr) {
|
||||
this.knr = knr;
|
||||
}
|
||||
|
||||
public int getMnr() {
|
||||
return mnr;
|
||||
}
|
||||
|
||||
public void setMnr(int mnr) {
|
||||
this.mnr = mnr;
|
||||
}
|
||||
}
|
Reference in a new issue