From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- .../DSI1-ausgang/DSI-app-client/build.xml | 74 ++ .../DSI-app-client/nbproject/ant-deploy.xml | 60 ++ .../DSI-app-client/nbproject/build-impl.xml | 847 +++++++++++++++++++++ .../DSI-app-client/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 13 + .../DSI-app-client/nbproject/project.properties | 69 ++ .../DSI-app-client/nbproject/project.xml | 30 + .../DSI-app-client/src/conf/MANIFEST.MF | 3 + .../DSI-app-client/src/conf/application-client.xml | 4 + .../src/java/dsi/ArtikelListeTableModel.java | 118 +++ .../src/java/dsi/KundenListeTableModel.java | 118 +++ .../DSI-app-client/src/java/dsi/Main.form | 694 +++++++++++++++++ .../DSI-app-client/src/java/dsi/Main.java | 807 ++++++++++++++++++++ .../DSI1-ausgang/DSI-ejb/build.xml | 68 ++ .../DSI1-ausgang/DSI-ejb/nbproject/ant-deploy.xml | 60 ++ .../DSI1-ausgang/DSI-ejb/nbproject/build-impl.xml | 590 ++++++++++++++ .../DSI-ejb/nbproject/genfiles.properties | 8 + .../DSI-ejb/nbproject/private/private.properties | 9 + .../DSI-ejb/nbproject/private/private.xml | 4 + .../DSI-ejb/nbproject/project.properties | 53 ++ .../DSI1-ausgang/DSI-ejb/nbproject/project.xml | 19 + .../DSI1-ausgang/DSI-ejb/src/conf/MANIFEST.MF | 2 + .../DSI1-ausgang/DSI-ejb/src/conf/persistence.xml | 10 + .../src/java/beans/adressen/AdressenBean.java | 43 ++ .../src/java/beans/adressen/AdressenRemote.java | 19 + .../beans/artikelManager/ArtikelManagerBean.java | 106 +++ .../beans/artikelManager/ArtikelManagerRemote.java | 29 + .../auftragsAbwicklung/AuftragsAbwicklungBean.java | 70 ++ .../AuftragsAbwicklungRemote.java | 20 + .../src/java/beans/bestell/BestellBean.java | 105 +++ .../src/java/beans/bestell/BestellRemote.java | 23 + .../beans/kundenManager/KundenManagerBean.java | 99 +++ .../beans/kundenManager/KundenManagerRemote.java | 25 + .../DSI-ejb/src/java/beans/lager/LagerBean.java | 80 ++ .../DSI-ejb/src/java/beans/lager/LagerRemote.java | 22 + .../src/java/beans/lieferant/LieferantBean.java | 48 ++ .../src/java/beans/lieferant/LieferantRemote.java | 22 + .../DSI-ejb/src/java/entities/Artikel.java | 112 +++ .../DSI-ejb/src/java/entities/Kunde.java | 100 +++ .../exceptions/AuftragsAbwicklungException.java | 22 + .../exceptions/IdBereitsVergebenException.java | 19 + .../java/exceptions/IllegalerWertException.java | 26 + .../exceptions/UnbekanntesEntityException.java | 29 + .../DSI-ejb/src/java/helper/Auftrag.java | 69 ++ .../DSI-ejb/src/java/helper/AuftragsPosition.java | 56 ++ .../DSI-Praktikum-1_ausgang/DSI1-ausgang/build.xml | 61 ++ ...beans-modules-java-j2seproject-copylibstask.jar | Bin 0 -> 14871 bytes .../DSI1-ausgang/lib/junit/junit-3.8.2-api.zip | Bin 0 -> 72381 bytes .../DSI1-ausgang/lib/junit/junit-3.8.2.jar | Bin 0 -> 118932 bytes .../DSI1-ausgang/lib/junit_4/junit-4.1.jar | Bin 0 -> 111092 bytes .../lib/nblibraries-private.properties | 0 .../DSI1-ausgang/lib/nblibraries.properties | 8 + .../DSI1-ausgang/nbproject/ant-deploy.xml | 60 ++ .../DSI1-ausgang/nbproject/build-impl.xml | 468 ++++++++++++ .../DSI1-ausgang/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 9 + .../DSI1-ausgang/nbproject/project.properties | 31 + .../DSI1-ausgang/nbproject/project.xml | 42 + .../DSI1-ausgang/src/conf/MANIFEST.MF | 2 + .../DSI-Praktikum-1_ausgang/WS-Client/build.xml | 74 ++ .../DSI-Praktikum-1_ausgang/WS-Client/catalog.xml | 19 + ...beans-modules-java-j2seproject-copylibstask.jar | Bin 0 -> 11178 bytes .../WS-Client/lib/jaxws21/FastInfoset.jar | Bin 0 -> 287304 bytes .../WS-Client/lib/jaxws21/activation.jar | Bin 0 -> 62394 bytes .../WS-Client/lib/jaxws21/http.jar | Bin 0 -> 79619 bytes .../WS-Client/lib/jaxws21/jaxb-api.jar | Bin 0 -> 89193 bytes .../WS-Client/lib/jaxws21/jaxb-impl.jar | Bin 0 -> 836655 bytes .../WS-Client/lib/jaxws21/jaxb-xjc.jar | Bin 0 -> 3088762 bytes .../WS-Client/lib/jaxws21/jaxws-2_1-api-doc.zip | Bin 0 -> 230451 bytes .../WS-Client/lib/jaxws21/jaxws-api.jar | Bin 0 -> 36005 bytes .../WS-Client/lib/jaxws21/jaxws-rt.jar | Bin 0 -> 1109301 bytes .../WS-Client/lib/jaxws21/jaxws-tools.jar | Bin 0 -> 492309 bytes .../WS-Client/lib/jaxws21/jsr173_api.jar | Bin 0 -> 23246 bytes .../WS-Client/lib/jaxws21/jsr181-api.jar | Bin 0 -> 7956 bytes .../WS-Client/lib/jaxws21/jsr250-api.jar | Bin 0 -> 5948 bytes .../WS-Client/lib/jaxws21/saaj-api.jar | Bin 0 -> 18623 bytes .../WS-Client/lib/jaxws21/saaj-impl.jar | Bin 0 -> 272777 bytes .../WS-Client/lib/jaxws21/sjsxp.jar | Bin 0 -> 326804 bytes .../WS-Client/lib/jaxws21/stax-ex.jar | Bin 0 -> 10325 bytes .../WS-Client/lib/jaxws21/streambuffer.jar | Bin 0 -> 57148 bytes .../WS-Client/lib/junit/junit-3.8.2-api.zip | Bin 0 -> 72381 bytes .../WS-Client/lib/junit/junit-3.8.2.jar | Bin 0 -> 118932 bytes .../WS-Client/lib/junit_4/junit-4.1.jar | Bin 0 -> 111092 bytes .../WS-Client/lib/nblibraries-private.properties | 0 .../WS-Client/lib/nblibraries.properties | 28 + .../DSI-Praktikum-1_ausgang/WS-Client/manifest.mf | 3 + .../WS-Client/nbproject/build-impl.xml | 662 ++++++++++++++++ .../WS-Client/nbproject/genfiles.properties | 8 + .../WS-Client/nbproject/jax-ws.xml | 107 +++ .../WS-Client/nbproject/jaxws-build.xml | 69 ++ .../WS-Client/nbproject/private/private.properties | 2 + .../WS-Client/nbproject/private/private.xml | 4 + .../WS-Client/nbproject/project.properties | 61 ++ .../WS-Client/nbproject/project.xml | 26 + .../WS-Client/src/wsclient/Bestellung.java | 174 +++++ .../WS-Client/src/wsclient/Main.java | 25 + .../WS-Client/src/wsclient/MainWindow.form | 139 ++++ .../WS-Client/src/wsclient/MainWindow.java | 159 ++++ .../ArtikelManagerBean.wsdl | 227 ++++++ .../ArtikelManagerBean.xsd_1.xsd | 129 ++++ .../BestellBeanService/BestellBean.wsdl | 129 ++++ .../BestellBeanService/BestellBean.xsd_1.xsd | 70 ++ .../localhost_8080/LagerBeanService/LagerBean.wsdl | 130 ++++ .../LagerBeanService/LagerBean.xsd_1.xsd | 73 ++ .../LieferantBeanService/LieferantBean.wsdl | 59 ++ .../LieferantBeanService/LieferantBean.xsd_1.xsd | 33 + .../MindestMengeService.wsdl | 36 + .../MindestMengeService.xsd_1.xsd | 18 + .../doc/dsi_praktikum_1_web_service_20090115.pdf | Bin 0 -> 960313 bytes 109 files changed, 7965 insertions(+) create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/build.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/ant-deploy.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/build-impl.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/genfiles.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/private/private.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/project.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/project.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/conf/MANIFEST.MF create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/conf/application-client.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/ArtikelListeTableModel.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/KundenListeTableModel.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/Main.form create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/Main.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/build.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/ant-deploy.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/build-impl.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/genfiles.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/private/private.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/private/private.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/project.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/project.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/conf/MANIFEST.MF create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/conf/persistence.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/adressen/AdressenBean.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/adressen/AdressenRemote.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/artikelManager/ArtikelManagerBean.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/artikelManager/ArtikelManagerRemote.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/auftragsAbwicklung/AuftragsAbwicklungBean.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/auftragsAbwicklung/AuftragsAbwicklungRemote.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/bestell/BestellBean.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/bestell/BestellRemote.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/kundenManager/KundenManagerBean.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/kundenManager/KundenManagerRemote.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lager/LagerBean.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lager/LagerRemote.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lieferant/LieferantBean.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lieferant/LieferantRemote.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/entities/Artikel.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/entities/Kunde.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/AuftragsAbwicklungException.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/IdBereitsVergebenException.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/IllegalerWertException.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/UnbekanntesEntityException.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/helper/Auftrag.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/helper/AuftragsPosition.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/build.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit/junit-3.8.2-api.zip create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit/junit-3.8.2.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit_4/junit-4.1.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/nblibraries-private.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/nblibraries.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/ant-deploy.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/build-impl.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/genfiles.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/private/private.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/project.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/project.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/src/conf/MANIFEST.MF create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/build.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/catalog.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/FastInfoset.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/activation.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/http.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-api.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-impl.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-xjc.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-2_1-api-doc.zip create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-api.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-rt.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-tools.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr173_api.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr181-api.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr250-api.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/saaj-api.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/saaj-impl.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/sjsxp.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/stax-ex.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/streambuffer.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit/junit-3.8.2-api.zip create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit/junit-3.8.2.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit_4/junit-4.1.jar create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/nblibraries-private.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/nblibraries.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/manifest.mf create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/build-impl.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/genfiles.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/jax-ws.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/jaxws-build.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/private/private.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/private/private.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/project.properties create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/project.xml create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/Bestellung.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/Main.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/MainWindow.form create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/MainWindow.java create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/ArtikelManagerBean/wsdl/localhost_8080/ArtikelManagerBeanService/ArtikelManagerBean.wsdl create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/ArtikelManagerBean/wsdl/localhost_8080/ArtikelManagerBeanService/ArtikelManagerBean.xsd_1.xsd create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/BestellBean/wsdl/localhost_8080/BestellBeanService/BestellBean.wsdl create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/BestellBean/wsdl/localhost_8080/BestellBeanService/BestellBean.xsd_1.xsd create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LagerBean/wsdl/localhost_8080/LagerBeanService/LagerBean.wsdl create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LagerBean/wsdl/localhost_8080/LagerBeanService/LagerBean.xsd_1.xsd create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LieferantBean/wsdl/localhost_8080/LieferantBeanService/LieferantBean.wsdl create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LieferantBean/wsdl/localhost_8080/LieferantBeanService/LieferantBean.xsd_1.xsd create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/MindestMengeService/wsdl/localhost_8080/DSI-Andere-Webservices/MindestMengeService.wsdl create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/MindestMengeService/wsdl/localhost_8080/DSI-Andere-Webservices/MindestMengeService.xsd_1.xsd create mode 100644 Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/doc/dsi_praktikum_1_web_service_20090115.pdf (limited to 'Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang') diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/build.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/build.xml new file mode 100644 index 0000000..d7269c2 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/build.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + Builds, tests, and runs the project DSI-app-client. + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/ant-deploy.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/ant-deploy.xml new file mode 100644 index 0000000..28ca9b4 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/ant-deploy.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/build-impl.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/build-impl.xml new file mode 100644 index 0000000..a9bfc03 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/build-impl.xml @@ -0,0 +1,847 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set build.generated.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + Main class must be set. Go to DSI-app-client project properties -> Run and set the main class there. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + + + Launching ${browse.url} + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/genfiles.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/genfiles.properties new file mode 100644 index 0000000..ce3b083 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a0cb5da8 +build.xml.script.CRC32=4b377cf7 +build.xml.stylesheet.CRC32=f851c264 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=a0cb5da8 +nbproject/build-impl.xml.script.CRC32=bdd22fd2 +nbproject/build-impl.xml.stylesheet.CRC32=e1f9045c diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/private/private.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/private/private.properties new file mode 100644 index 0000000..95bd6ae --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/private/private.properties @@ -0,0 +1,13 @@ +deploy.ant.properties.file=C:\\Dokumente und Einstellungen\\Jan\\.netbeans\\6.5\\glassfish.properties +j2ee.appclient.tool.args=-configxml "D:\\Programme\\glassfish-v2.1\\domains\\domain1\\config\\sun-acc.xml" +j2ee.appclient.tool.jvmoptions=-Dcom.sun.aas.configRoot="D:\\Programme\\glassfish-v2.1\\config" -Dcom.sun.aas.installRoot="D:\\Programme\\glassfish-v2.1" -Dcom.sun.aas.imqLib="D:\\Programme\\glassfish-v2.1\\imq\\lib" -Djava.security.policy="D:\\Programme\\glassfish-v2.1\\lib\\appclient\\client.policy" -Djava.security.auth.login.config="D:\\Programme\\glassfish-v2.1\\lib\\appclient\\appclientlogin.conf" -Djava.endorsed.dirs="D:\\Programme\\glassfish-v2.1\\lib\\endorsed" -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser -Djava.util.logging.manager=com.sun.enterprise.server.logging.ACCLogManager +j2ee.appclient.tool.mainclass=com.sun.enterprise.appclient.Main +j2ee.appclient.tool.runtime=D:\\Programme\\glassfish-v2.1\\lib\\dom.jar:D:\\Programme\\glassfish-v2.1\\lib\\xalan.jar:D:\\Programme\\glassfish-v2.1\\lib\\xercesImpl.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-rt.jar:D:\\Programme\\glassfish-v2.1\\lib\\javaee.jar:D:\\Programme\\glassfish-v2.1\\lib\\j2ee.jar:D:\\Programme\\glassfish-v2.1\\lib\\jmac-api.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ext.jar:D:\\Programme\\glassfish-v2.1\\lib\\mail.jar:D:\\Programme\\glassfish-v2.1\\lib\\activation.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-rt.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ws.jar:D:\\Programme\\glassfish-v2.1\\lib\\jaxrpc-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\saaj-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\jaxr-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\relaxngDatatype.jar:D:\\Programme\\glassfish-v2.1\\lib\\xsdlib.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-cmp.jar:D:\\Programme\\glassfish-v2.1\\javadb\\lib\\derbyclient.jar:D:\\Programme\\glassfish-v2.1\\lib\\toplink-essentials.jar:D:\\Programme\\glassfish-v2.1\\lib\\dbschema.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-admin.jar:D:\\Programme\\glassfish-v2.1\\lib\\install\\applications\\jmsra\\imqjmsra.jar:D:\\Programme\\glassfish-v2.1\\lib\\fscontext.jar:D:\\Programme\\glassfish-v2.1\\lib\\dtds:D:\\Programme\\glassfish-v2.1\\lib\\schemas +j2ee.platform.classpath=D:\\Programme\\glassfish-v2.1\\lib\\javaee.jar:D:\\Programme\\glassfish-v2.1\\lib\\jsf-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\activation.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-tags.jar:D:\\Programme\\glassfish-v2.1\\lib\\mail.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-jstl.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-rt.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ws.jar +j2ee.platform.wscompile.classpath=D:\\Programme\\glassfish-v2.1\\lib\\j2ee.jar:D:\\Programme\\glassfish-v2.1\\lib\\saaj-api.jar:D:\\Programme\\glassfish-v2.1\\lib\\saaj-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\jaxrpc-api.jar:D:\\Programme\\glassfish-v2.1\\lib\\jaxrpc-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\endorsed\\jaxp-api.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ws.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-rt.jar +j2ee.platform.wsimport.classpath=D:\\Programme\\glassfish-v2.1\\lib\\webservices-tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-rt.jar:D:\\Programme\\glassfish-v2.1\\lib\\tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-jstl.jar:D:\\Programme\\glassfish-v2.1\\lib\\javaee.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ws.jar:D:\\Programme\\glassfish-v2.1\\lib\\mail.jar:D:\\Programme\\glassfish-v2.1\\lib\\activation.jar +j2ee.server.instance=[D:\\Programme\\glassfish-v2.1]deployer:Sun:AppServer::localhost:4848 +jaxws.endorsed.dir=D:\\Programme\\NetBeans 6.5.1\\java2\\modules\\ext\\jaxws21\\api:D:\\Programme\\NetBeans 6.5.1\\ide10\\modules\\ext\\jaxb\\api +source.encoding=UTF-8 +user.properties.file=C:\\Dokumente und Einstellungen\\Jan\\.netbeans\\6.5\\build.properties +wa.copy.client.jar.from=D:\\Programme\\glassfish-v2.1\\domains\\domain1\\generated\\xml\\j2ee-modules diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/project.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/project.properties new file mode 100644 index 0000000..245c9dc --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/project.properties @@ -0,0 +1,69 @@ +build.classes.dir=${build.dir}/jar +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.ear.classes.dir=${build.dir}/jar +build.generated.dir=${build.dir}/generated +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.ear.jar=${dist.dir}/${jar.name} +dist.jar=${dist.dir}/${jar.name} +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +j2ee.appclient.mainclass.args=-client ${dist.jar} ${j2ee.appclient.tool.args} +j2ee.platform=1.5 +j2ee.server.type=J2EE +jar.compress=false +jar.name=DSI-app-client.jar +javac.classpath=\ + ${reference.DSI-ejb.dist} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=dsi.Main +manifest.file=${meta.inf}/MANIFEST.MF +meta.inf=${source.root}/conf +platform.active=default_platform +project.DSI-ejb=../DSI-ejb +reference.DSI-ejb.dist=${project.DSI-ejb}/dist/DSI-ejb.jar +resource.dir=setup +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value +# or test-sys-prop.name=value to set system properties for unit tests): +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.root=src +src.dir=${source.root}/java +test.src.dir=test diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/project.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/project.xml new file mode 100644 index 0000000..17905a2 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/nbproject/project.xml @@ -0,0 +1,30 @@ + + + org.netbeans.modules.j2ee.clientproject + + + DSI-app-client + 1.6.5 + + + + + + + reference.DSI-ejb.dist + + + ..\.\lib\nblibraries.properties + + + + DSI-ejb + jar + + dist + clean + dist + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/conf/MANIFEST.MF b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/conf/MANIFEST.MF new file mode 100644 index 0000000..1574df4 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/conf/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/conf/application-client.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/conf/application-client.xml new file mode 100644 index 0000000..682188b --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/conf/application-client.xml @@ -0,0 +1,4 @@ + + + DSI-app-client + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/ArtikelListeTableModel.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/ArtikelListeTableModel.java new file mode 100644 index 0000000..6c8bc8f --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/ArtikelListeTableModel.java @@ -0,0 +1,118 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package dsi; + +import entities.Artikel; +import java.util.LinkedList; +import java.util.List; +import javax.swing.table.AbstractTableModel; + +/** + * Klasse die eine Liste von Artikeln kapselt, und als Table-Model + * zur Verfügung stellt + * @author jmueller + */ +public class ArtikelListeTableModel extends AbstractTableModel{ + private List artikelListe; + + /** + * Default-Konstruktor + */ + public ArtikelListeTableModel(){ + artikelListe = new LinkedList(); + } + + /** + * Konstruktor mit Initialisierung + * @param liste Liste der Artikel + */ + public ArtikelListeTableModel(List liste){ + artikelListe = new LinkedList(); + for(Artikel a : liste){ + artikelListe.add(a); + } + } + + + /** + * Setzt die Artikel-Liste + * @param liste + */ + public void setArtikelListe(List liste){ + artikelListe = new LinkedList(); + for(Artikel a : liste){ + artikelListe.add(a); + } + fireTableStructureChanged(); + } + + + /** + * Gibt die Artikelliste zurück + * ACHTUNG: nicht mittels dieser Methode Änderungen an der Liste vornehmen, + * da diese nicht refreshed werden + * @return + */ + public List getArtikelListe(){ + return artikelListe; + } + + + /** + * Gibt die Anzahl der Zeilen zurück + * @return + */ + public int getRowCount() { + return artikelListe.size(); + } + + + /** + * Gibt die Anzahl der Spalten zurück + * @return + */ + public int getColumnCount() { + return 4; + } + + + /** + * Gibt den Inhalt einer Zelle als String zurück + * @param zeile + * @param spalte + * @return + */ + public Object getValueAt(int zeile, int spalte) { + switch(spalte){ + case 0: return ""+ artikelListe.get(zeile).getId(); + case 1: return ""+ artikelListe.get(zeile).getBezeichnung(); + case 2: return ""+ artikelListe.get(zeile).getAnzahl(); + case 3: return String.format("%.2f €", artikelListe.get(zeile).getPreis()); + default: return ""; + } + } + + /** + * gibt den Namen (Bezeichnung) der Spalte zurück + * @param arg0 + * @return + */ + @Override + public String getColumnName(int spalte) { + switch(spalte){ + case 0: return "id"; + case 1: return "Bezeichnung"; + case 2: return "Anzahl"; + case 3: return "Preis"; + default: return ""; + } + } + + + + + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/KundenListeTableModel.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/KundenListeTableModel.java new file mode 100644 index 0000000..7870843 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/KundenListeTableModel.java @@ -0,0 +1,118 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package dsi; + +import entities.Kunde; +import java.util.LinkedList; +import java.util.List; +import javax.swing.table.AbstractTableModel; + +/** + * Klasse die eine Liste von Kunden kapselt, und als Table-Model + * zur Verfügung stellt + * @author jmueller + */ +public class KundenListeTableModel extends AbstractTableModel{ + private List kundeListe; + + /** + * Default-Konstruktor + */ + public KundenListeTableModel(){ + kundeListe = new LinkedList(); + } + + /** + * Konstruktor mit Initialisierung + * @param liste Liste der Kunden + */ + public KundenListeTableModel(List liste){ + kundeListe = new LinkedList(); + for(Kunde a : liste){ + kundeListe.add(a); + } + } + + + /** + * Setter fuer die Kunden-Liste + * @param liste + */ + public void setKundenListe(List liste){ + kundeListe = new LinkedList(); + for(Kunde a : liste){ + kundeListe.add(a); + } + fireTableStructureChanged(); + } + + + /** + * Gibt die Kundeliste zurück + * ACHTUNG: nicht mittels dieser Methode Änderungen an der Liste vornehmen, + * da diese nicht refreshed werden + * @return + */ + public List getKundenListe(){ + return kundeListe; + } + + + /** + * Gibt die Anzahl der Zeilen zurück + * @return + */ + public int getRowCount() { + return kundeListe.size(); + } + + + /** + * Gibt die Anzahl der Spalten zurück + * @return + */ + public int getColumnCount() { + return 4; + } + + + /** + * Gibt den Inhalt einer Zelle als String zurück + * @param zeile + * @param spalte + * @return + */ + public Object getValueAt(int zeile, int spalte) { + switch(spalte){ + case 0: return ""+ kundeListe.get(zeile).getId(); + case 1: return ""+ kundeListe.get(zeile).getNachname(); + case 2: return ""+ kundeListe.get(zeile).getVorname(); + case 3: return "" + kundeListe.get(zeile).getAdresse(); + default: return ""; + } + } + + /** + * gibt den Namen (Bezeichnung) der Spalte zurück + * @param arg0 + * @return + */ + @Override + public String getColumnName(int spalte) { + switch(spalte){ + case 0: return "id"; + case 1: return "Nachname"; + case 2: return "Vorname"; + case 3: return "Adresse"; + default: return ""; + } + } + + + + + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/Main.form b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/Main.form new file mode 100644 index 0000000..1e334a3 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/Main.form @@ -0,0 +1,694 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/Main.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/Main.java new file mode 100644 index 0000000..8619c00 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-app-client/src/java/dsi/Main.java @@ -0,0 +1,807 @@ +/* + * Main.java + * + * Created on 6. März 2008, 12:35 + */ +package dsi; + +import beans.artikelManager.ArtikelManagerRemote; +import beans.auftragsAbwicklung.AuftragsAbwicklungRemote; +import beans.kundenManager.KundenManagerRemote; +import beans.lager.LagerRemote; +import entities.Artikel; +import entities.Kunde; +import exceptions.IdBereitsVergebenException; +import helper.Auftrag; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.ejb.EJB; +import javax.swing.JOptionPane; +import javax.swing.ListSelectionModel; +import javax.swing.event.ListSelectionEvent; +import javax.swing.event.ListSelectionListener; + + +/** + * + * @author jmueller + */ +public class Main extends javax.swing.JFrame { + @EJB + private static KundenManagerRemote kundenManagerBean; + @EJB + private static ArtikelManagerRemote artikelManagerBean; + + @EJB + private static LagerRemote lagerBean; + @EJB + private static AuftragsAbwicklungRemote auftragsAbwicklungBean; + private Kunde kundeEntity; + + /** Creates new form Main */ + public Main() { + initComponents(); + initModels(); + } + + /** + * initialisiert die Models für die Swing-Komponenten + */ + private void initModels() { + Auftrag auftrag = new Auftrag(); + + ArtikelListeTableModel listeTableModel = new ArtikelListeTableModel(); + jTable1.setModel(listeTableModel); + jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); + + jTable1.getSelectionModel().addListSelectionListener(new ListSelectionListener() { + + public void valueChanged(ListSelectionEvent e) { + ListSelectionModel lsm = (ListSelectionModel) e.getSource(); + if (lsm.isSelectionEmpty()) { + } else { + int selectedRow = lsm.getMinSelectionIndex(); + Artikel a = ((ArtikelListeTableModel) jTable1.getModel()).getArtikelListe().get(selectedRow); + + jLabelLagerId.setText("" + a.getId()); + jTextFieldLagerBezeichnung.setText(a.getBezeichnung()); + jSpinnerLagerAnzahl.setValue((Long) a.getAnzahl()); + jSpinnerLagerPreis.setValue((Double) a.getPreis()); + } + } + }); + + KundenListeTableModel kundenTableModel = new KundenListeTableModel(); + jTableKunden.setModel(kundenTableModel); + jTableKunden.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); + + jTableKunden.getSelectionModel().addListSelectionListener(new ListSelectionListener() { + + public void valueChanged(ListSelectionEvent e) { + ListSelectionModel lsm = (ListSelectionModel) e.getSource(); + if (lsm.isSelectionEmpty()) { + } else { + int selectedRow = lsm.getMinSelectionIndex(); + Kunde kunde = ((KundenListeTableModel) jTableKunden.getModel()).getKundenListe().get(selectedRow); + + jLabelKundeId.setText("" + kunde.getId()); + jTextFieldKundeNachname.setText(kunde.getNachname()); + jTextFieldKundeVorname.setText(kunde.getVorname()); + jTextAreaKundeAdresse.setText(kunde.getAdresse()); + } + } + }); + } + + /** This method is called from within the constructor to + * initialize the form. + + + } + + /** This method is called from within the constructor to + * initialize the form. + * WARNING: Do NOT modify this code. The content of this method is + * always regenerated by the Form Editor. + */ + // //GEN-BEGIN:initComponents + private void initComponents() { + + jTabbedPane1 = new javax.swing.JTabbedPane(); + jPanelAuftragsAbwicklung = new javax.swing.JPanel(); + jSpinnerArtikelId = new javax.swing.JSpinner(); + jLabel3 = new javax.swing.JLabel(); + jLabel4 = new javax.swing.JLabel(); + jSpinnerAnzahl = new javax.swing.JSpinner(); + jButtonArtikelAbschicken = new javax.swing.JButton(); + jLabel2 = new javax.swing.JLabel(); + jSpinnerKundenId = new javax.swing.JSpinner(); + jLabel14 = new javax.swing.JLabel(); + jLabel1ReportOutput = new javax.swing.JLabel(); + jPanel1 = new javax.swing.JPanel(); + jTabbedPaneVerwaltung = new javax.swing.JTabbedPane(); + jPanelArtikel = new javax.swing.JPanel(); + jLabel1 = new javax.swing.JLabel(); + jButtonArtikellisteRefresh = new javax.swing.JButton(); + jScrollPane2 = new javax.swing.JScrollPane(); + jTable1 = new javax.swing.JTable(); + jLabel5 = new javax.swing.JLabel(); + jLabelLagerId = new javax.swing.JLabel(); + jLabel7 = new javax.swing.JLabel(); + jLabel8 = new javax.swing.JLabel(); + jLabel9 = new javax.swing.JLabel(); + jTextFieldLagerBezeichnung = new javax.swing.JTextField(); + jSpinnerLagerAnzahl = new javax.swing.JSpinner(); + jSpinnerLagerPreis = new javax.swing.JSpinner(); + jButtonLagerNeu = new javax.swing.JButton(); + jButtonLagerAendern = new javax.swing.JButton(); + jButtonLagerLoeschen = new javax.swing.JButton(); + jButtonCreateDemoArtikel = new javax.swing.JButton(); + jPanelKunde = new javax.swing.JPanel(); + jLabel6 = new javax.swing.JLabel(); + jButtonKundenlisteRefresh = new javax.swing.JButton(); + jScrollPane3 = new javax.swing.JScrollPane(); + jTableKunden = new javax.swing.JTable(); + jLabel10 = new javax.swing.JLabel(); + jLabelKundeId = new javax.swing.JLabel(); + jLabel11 = new javax.swing.JLabel(); + jLabel12 = new javax.swing.JLabel(); + jLabel13 = new javax.swing.JLabel(); + jTextFieldKundeNachname = new javax.swing.JTextField(); + jButtonKundeNeu = new javax.swing.JButton(); + jButtonKundeAendern = new javax.swing.JButton(); + jButtonKundeLoeschen = new javax.swing.JButton(); + jTextFieldKundeVorname = new javax.swing.JTextField(); + jScrollPane4 = new javax.swing.JScrollPane(); + jTextAreaKundeAdresse = new javax.swing.JTextArea(); + jButtonCreateDemoKunden = new javax.swing.JButton(); + jMenuBar1 = new javax.swing.JMenuBar(); + jMenu1 = new javax.swing.JMenu(); + jMenuItem1 = new javax.swing.JMenuItem(); + jMenu2 = new javax.swing.JMenu(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + jSpinnerArtikelId.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(1L), Long.valueOf(1L), null, Long.valueOf(1L))); + + jLabel3.setText("Artikel-Id"); + + jLabel4.setText("Anzahl"); + + jSpinnerAnzahl.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(1L), Long.valueOf(1L), null, Long.valueOf(1L))); + + jButtonArtikelAbschicken.setText("Bestellung abschicken"); + jButtonArtikelAbschicken.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonArtikelAbschickenActionPerformed(evt); + } + }); + + jLabel2.setText("Kunden-Id"); + + jSpinnerKundenId.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(1L), Long.valueOf(1L), null, Long.valueOf(1L))); + + jLabel14.setText("Report"); + + jLabel1ReportOutput.setText("..."); + jLabel1ReportOutput.setVerticalAlignment(javax.swing.SwingConstants.TOP); + + javax.swing.GroupLayout jPanelAuftragsAbwicklungLayout = new javax.swing.GroupLayout(jPanelAuftragsAbwicklung); + jPanelAuftragsAbwicklung.setLayout(jPanelAuftragsAbwicklungLayout); + jPanelAuftragsAbwicklungLayout.setHorizontalGroup( + jPanelAuftragsAbwicklungLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelAuftragsAbwicklungLayout.createSequentialGroup() + .addGroup(jPanelAuftragsAbwicklungLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelAuftragsAbwicklungLayout.createSequentialGroup() + .addContainerGap() + .addComponent(jButtonArtikelAbschicken, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)) + .addGroup(jPanelAuftragsAbwicklungLayout.createSequentialGroup() + .addGap(38, 38, 38) + .addGroup(jPanelAuftragsAbwicklungLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel2) + .addComponent(jLabel3) + .addComponent(jLabel4)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelAuftragsAbwicklungLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelAuftragsAbwicklungLayout.createSequentialGroup() + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jSpinnerAnzahl, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE)) + .addComponent(jSpinnerArtikelId, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE) + .addComponent(jSpinnerKundenId, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE)))) + .addGap(35, 35, 35) + .addGroup(jPanelAuftragsAbwicklungLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelAuftragsAbwicklungLayout.createSequentialGroup() + .addGap(10, 10, 10) + .addComponent(jLabel1ReportOutput, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addComponent(jLabel14)) + .addContainerGap(266, Short.MAX_VALUE)) + ); + jPanelAuftragsAbwicklungLayout.setVerticalGroup( + jPanelAuftragsAbwicklungLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelAuftragsAbwicklungLayout.createSequentialGroup() + .addGap(30, 30, 30) + .addComponent(jLabel14) + .addGroup(jPanelAuftragsAbwicklungLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addGroup(jPanelAuftragsAbwicklungLayout.createSequentialGroup() + .addGap(26, 26, 26) + .addGroup(jPanelAuftragsAbwicklungLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel2) + .addComponent(jSpinnerKundenId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelAuftragsAbwicklungLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel3) + .addComponent(jSpinnerArtikelId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelAuftragsAbwicklungLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel4) + .addComponent(jSpinnerAnzahl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(48, 48, 48) + .addComponent(jButtonArtikelAbschicken)) + .addGroup(jPanelAuftragsAbwicklungLayout.createSequentialGroup() + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel1ReportOutput, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) + .addContainerGap(90, Short.MAX_VALUE)) + ); + + jTabbedPane1.addTab("Auftragsbearbeitung", jPanelAuftragsAbwicklung); + + jLabel1.setText("Artikelliste"); + + jButtonArtikellisteRefresh.setText("refresh"); + jButtonArtikellisteRefresh.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonArtikellisteRefreshActionPerformed(evt); + } + }); + + jTable1.setModel(new javax.swing.table.DefaultTableModel( + new Object [][] { + {null, null, null, null}, + {null, null, null, null}, + {null, null, null, null}, + {null, null, null, null} + }, + new String [] { + "Title 1", "Title 2", "Title 3", "Title 4" + } + )); + jScrollPane2.setViewportView(jTable1); + + jLabel5.setText("id"); + + jLabelLagerId.setText("unbekannte id"); + + jLabel7.setText("Bezeichnung"); + + jLabel8.setText("Anzahl"); + + jLabel9.setText("Preis"); + + jSpinnerLagerAnzahl.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(10L), Long.valueOf(0L), null, Long.valueOf(1L))); + + jSpinnerLagerPreis.setModel(new javax.swing.SpinnerNumberModel(Double.valueOf(9.949999809265137d), Double.valueOf(0.0d), null, Double.valueOf(1.0d))); + + jButtonLagerNeu.setText("neu"); + jButtonLagerNeu.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonLagerNeuActionPerformed(evt); + } + }); + + jButtonLagerAendern.setText("ändern"); + jButtonLagerAendern.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonLagerAendernActionPerformed(evt); + } + }); + + jButtonLagerLoeschen.setText("löschen"); + jButtonLagerLoeschen.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonLagerLoeschenActionPerformed(evt); + } + }); + + jButtonCreateDemoArtikel.setText("Demodaten erstellen"); + jButtonCreateDemoArtikel.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonCreateDemoArtikelActionPerformed(evt); + } + }); + + javax.swing.GroupLayout jPanelArtikelLayout = new javax.swing.GroupLayout(jPanelArtikel); + jPanelArtikel.setLayout(jPanelArtikelLayout); + jPanelArtikelLayout.setHorizontalGroup( + jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelArtikelLayout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelArtikelLayout.createSequentialGroup() + .addComponent(jLabel1) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jButtonArtikellisteRefresh) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 79, Short.MAX_VALUE) + .addComponent(jButtonCreateDemoArtikel)) + .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 330, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelArtikelLayout.createSequentialGroup() + .addGap(35, 35, 35) + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addGroup(jPanelArtikelLayout.createSequentialGroup() + .addComponent(jLabel5) + .addGap(74, 74, 74) + .addComponent(jLabelLagerId)) + .addGroup(jPanelArtikelLayout.createSequentialGroup() + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel7) + .addComponent(jLabel8) + .addComponent(jLabel9)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jSpinnerLagerPreis, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE) + .addComponent(jSpinnerLagerAnzahl, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE) + .addComponent(jTextFieldLagerBezeichnung, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))))) + .addGroup(jPanelArtikelLayout.createSequentialGroup() + .addGap(12, 12, 12) + .addComponent(jButtonLagerNeu) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jButtonLagerAendern) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jButtonLagerLoeschen))) + .addGap(70, 70, 70)) + ); + jPanelArtikelLayout.setVerticalGroup( + jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelArtikelLayout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel1) + .addComponent(jButtonArtikellisteRefresh) + .addComponent(jButtonCreateDemoArtikel)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelArtikelLayout.createSequentialGroup() + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel5) + .addComponent(jLabelLagerId)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel7) + .addComponent(jTextFieldLagerBezeichnung, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel8) + .addComponent(jSpinnerLagerAnzahl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel9) + .addComponent(jSpinnerLagerPreis, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(34, 34, 34) + .addGroup(jPanelArtikelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jButtonLagerNeu) + .addComponent(jButtonLagerAendern) + .addComponent(jButtonLagerLoeschen))) + .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)) + .addContainerGap()) + ); + + jTabbedPaneVerwaltung.addTab("Artikel", jPanelArtikel); + + jLabel6.setText("Kundenliste"); + + jButtonKundenlisteRefresh.setText("refresh"); + jButtonKundenlisteRefresh.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonKundenlisteRefreshActionPerformed(evt); + } + }); + + jTableKunden.setModel(new javax.swing.table.DefaultTableModel( + new Object [][] { + {null, null, null, null}, + {null, null, null, null}, + {null, null, null, null}, + {null, null, null, null} + }, + new String [] { + "Title 1", "Title 2", "Title 3", "Title 4" + } + )); + jScrollPane3.setViewportView(jTableKunden); + + jLabel10.setText("id"); + + jLabelKundeId.setText("unbekannte id"); + + jLabel11.setText("Nachname"); + + jLabel12.setText("Vorname"); + + jLabel13.setText("Adresse"); + + jButtonKundeNeu.setText("neu"); + jButtonKundeNeu.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonKundeNeuActionPerformed(evt); + } + }); + + jButtonKundeAendern.setText("ändern"); + jButtonKundeAendern.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonKundeAendernActionPerformed(evt); + } + }); + + jButtonKundeLoeschen.setText("löschen"); + jButtonKundeLoeschen.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonKundeLoeschenActionPerformed(evt); + } + }); + + jTextAreaKundeAdresse.setColumns(20); + jTextAreaKundeAdresse.setRows(5); + jScrollPane4.setViewportView(jTextAreaKundeAdresse); + + jButtonCreateDemoKunden.setText("Demodaten erstellen"); + jButtonCreateDemoKunden.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonCreateDemoKundenActionPerformed(evt); + } + }); + + javax.swing.GroupLayout jPanelKundeLayout = new javax.swing.GroupLayout(jPanelKunde); + jPanelKunde.setLayout(jPanelKundeLayout); + jPanelKundeLayout.setHorizontalGroup( + jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelKundeLayout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelKundeLayout.createSequentialGroup() + .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 330, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelKundeLayout.createSequentialGroup() + .addGap(35, 35, 35) + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelKundeLayout.createSequentialGroup() + .addComponent(jLabel10) + .addGap(74, 74, 74) + .addComponent(jLabelKundeId, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)) + .addGroup(jPanelKundeLayout.createSequentialGroup() + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel11) + .addComponent(jLabel12) + .addComponent(jLabel13)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE) + .addComponent(jTextFieldKundeVorname, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE) + .addComponent(jTextFieldKundeNachname, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE))))) + .addGroup(jPanelKundeLayout.createSequentialGroup() + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(jButtonKundeNeu) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jButtonKundeAendern) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jButtonKundeLoeschen))) + .addGap(44, 44, 44)) + .addGroup(jPanelKundeLayout.createSequentialGroup() + .addComponent(jLabel6) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(jButtonKundenlisteRefresh) + .addGap(88, 88, 88) + .addComponent(jButtonCreateDemoKunden))) + .addGap(26, 26, 26)) + ); + jPanelKundeLayout.setVerticalGroup( + jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelKundeLayout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel6) + .addComponent(jButtonKundenlisteRefresh) + .addComponent(jButtonCreateDemoKunden)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE) + .addGroup(jPanelKundeLayout.createSequentialGroup() + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel10) + .addComponent(jLabelKundeId)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel11) + .addComponent(jTextFieldKundeNachname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel12) + .addComponent(jTextFieldKundeVorname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel13) + .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(24, 24, 24) + .addGroup(jPanelKundeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jButtonKundeNeu) + .addComponent(jButtonKundeAendern) + .addComponent(jButtonKundeLoeschen)) + .addGap(172, 172, 172))) + .addContainerGap()) + ); + + jTabbedPaneVerwaltung.addTab("Kunden", jPanelKunde); + + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jTabbedPaneVerwaltung) + .addContainerGap()) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jTabbedPaneVerwaltung, javax.swing.GroupLayout.DEFAULT_SIZE, 281, Short.MAX_VALUE) + .addContainerGap()) + ); + + jTabbedPane1.addTab("Verwaltung", jPanel1); + + jMenu1.setText("Datei"); + + jMenuItem1.setText("Beenden"); + jMenuItem1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jMenuItem1ActionPerformed(evt); + } + }); + jMenu1.add(jMenuItem1); + + jMenuBar1.add(jMenu1); + + jMenu2.setText("Edit"); + jMenuBar1.add(jMenu2); + + setJMenuBar(jMenuBar1); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 651, Short.MAX_VALUE) + .addContainerGap()) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE) + .addContainerGap()) + ); + + pack(); + }// //GEN-END:initComponents + + /** + * Bestellt die ausgewählte Anzahl des gewählten Artikels + * @param evt + */ + private void jButtonArtikelAbschickenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonArtikelAbschickenActionPerformed + + try { + String report = auftragsAbwicklungBean.bestelleArtikel((Long) jSpinnerKundenId.getValue(), (Long) jSpinnerArtikelId.getValue() , (Long) jSpinnerAnzahl.getValue() ); + jLabel1ReportOutput.setText(report); + JOptionPane.showMessageDialog(rootPane, "Auftrag erfolgreich durchgeführt."); + } catch (Exception e) { + JOptionPane.showMessageDialog(rootPane, "Fehler beim Ausführen des Auftrags. \n" + e.getMessage(),"Fehler", JOptionPane.ERROR_MESSAGE ); + } + + }//GEN-LAST:event_jButtonArtikelAbschickenActionPerformed + + private void jButtonArtikellisteRefreshActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonArtikellisteRefreshActionPerformed + ((ArtikelListeTableModel) jTable1.getModel()).setArtikelListe( artikelManagerBean.readAllArtikel() ); + }//GEN-LAST:event_jButtonArtikellisteRefreshActionPerformed + + private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed + System.exit(0); + }//GEN-LAST:event_jMenuItem1ActionPerformed + + /** + * erstellt einen neuen Artikel + * @param evt + */ + private void jButtonLagerNeuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonLagerNeuActionPerformed + Artikel a = new Artikel(); + a.setBezeichnung(jTextFieldLagerBezeichnung.getText()); + a.setAnzahl((Long) jSpinnerLagerAnzahl.getValue()); + a.setPreis((Double) jSpinnerLagerPreis.getValue()); + try { + artikelManagerBean.createArtikel(a); + } catch (IdBereitsVergebenException ex) { + Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); + } + refreshArtikel(); + }//GEN-LAST:event_jButtonLagerNeuActionPerformed + + /** + * loescht einen Artikel + * @param evt + */ + private void jButtonLagerLoeschenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonLagerLoeschenActionPerformed + Artikel a = ((ArtikelListeTableModel)jTable1.getModel()).getArtikelListe().get(jTable1.getSelectedRow()); + artikelManagerBean.deleteArtikel(a.getId()); + refreshArtikel(); + } + + /* + ((ArtikelListeTableModel) jTable1.getModel()).setArtikelListe(lagerBean.getArtikelListe());//GEN-LAST:event_jButtonLagerLoeschenActionPerformed + */ + +/** + * aendert einen Artikel + * @param evt + */ + private void jButtonLagerAendernActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonLagerAendernActionPerformed + Artikel a = ((ArtikelListeTableModel)jTable1.getModel()).getArtikelListe().get(jTable1.getSelectedRow()); + a.setBezeichnung(jTextFieldLagerBezeichnung.getText()); + a.setAnzahl((Long) jSpinnerLagerAnzahl.getValue()); + a.setPreis((Double) jSpinnerLagerPreis.getValue()); + artikelManagerBean.updateArtikel(a); + refreshArtikel(); + }//GEN-LAST:event_jButtonLagerAendernActionPerformed + +private void jButtonKundenlisteRefreshActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonKundenlisteRefreshActionPerformed + refreshKunden(); +}//GEN-LAST:event_jButtonKundenlisteRefreshActionPerformed + +private void jButtonKundeNeuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonKundeNeuActionPerformed + Kunde kunde = new Kunde(); + kunde.setVorname(jTextFieldKundeVorname.getText()); + kunde.setNachname(jTextFieldKundeNachname.getText()); + kunde.setAdresse(jTextAreaKundeAdresse.getText()); + + kundenManagerBean.createKunde(kunde); + refreshKunden(); +}//GEN-LAST:event_jButtonKundeNeuActionPerformed + +private void jButtonKundeAendernActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonKundeAendernActionPerformed + Kunde kunde = ((KundenListeTableModel)jTableKunden.getModel()).getKundenListe().get(jTableKunden.getSelectedRow()); + kunde.setVorname(jTextFieldKundeVorname.getText()); + kunde.setNachname(jTextFieldKundeNachname.getText()); + kunde.setAdresse(jTextAreaKundeAdresse.getText()); + + kundenManagerBean.updateKunde(kunde); + refreshKunden(); +}//GEN-LAST:event_jButtonKundeAendernActionPerformed + +private void jButtonKundeLoeschenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonKundeLoeschenActionPerformed + Kunde kunde = ((KundenListeTableModel)jTableKunden.getModel()).getKundenListe().get(jTableKunden.getSelectedRow()); + kundenManagerBean.deleteKunde(kunde.getId()); + refreshKunden(); +}//GEN-LAST:event_jButtonKundeLoeschenActionPerformed + +private void jButtonCreateDemoKundenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCreateDemoKundenActionPerformed + createDemoKunden(); +}//GEN-LAST:event_jButtonCreateDemoKundenActionPerformed + +private void jButtonCreateDemoArtikelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCreateDemoArtikelActionPerformed +createDemoArtikel(); +}//GEN-LAST:event_jButtonCreateDemoArtikelActionPerformed + +/** + * liest die Artikel neu ein und zeigt sie in der Tabelle an + */ +private void refreshArtikel(){ + ((ArtikelListeTableModel) jTable1.getModel()).setArtikelListe( artikelManagerBean.readAllArtikel() ); +} + +/** + * liest die Kunden neu ein und zeigt sie in der Tabelle an + */ +private void refreshKunden(){ + ((KundenListeTableModel) jTableKunden.getModel()).setKundenListe( kundenManagerBean.readAllKunden() ); +} + +private void createDemoKunden(){ + kundenManagerBean.deleteAllKunden(); + + kundenManagerBean.createKunde(new Kunde(1L, "Hans", "Bauer", "Kirchgasse 3, 12345 Musterstadt")); + kundenManagerBean.createKunde(new Kunde(2L, "Petra", "Schneider", "Opernplatz 3, 23234 Frankfurt")); + kundenManagerBean.createKunde(new Kunde(3L, "Sabine", "Friedrich", "Turmstrasse 17, 11122 Bielefeld")); + + refreshKunden(); +} + +private void createDemoArtikel(){ + try { + artikelManagerBean.deleteAllArtikel(); + + artikelManagerBean.createArtikel(new Artikel(1L, "Reifen", 20L, 12.95)); + artikelManagerBean.createArtikel(new Artikel(2L, "Klingel", 7L, 4.95)); + artikelManagerBean.createArtikel(new Artikel(3L, "Trinkflasche", 18L, 7.95)); + artikelManagerBean.createArtikel(new Artikel(4L, "Helm", 8L, 59.95)); + artikelManagerBean.createArtikel(new Artikel(5L, "Fahradlampe", 23L, 8.95)); + artikelManagerBean.createArtikel(new Artikel(6L, "Reflektor", 11L, 2.95)); + artikelManagerBean.createArtikel(new Artikel(7L, "Schlauch", 12L, 11.50)); + + + + refreshArtikel(); + } catch (IdBereitsVergebenException ex) { + Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); + } +} + + /** + * Start des Clients + * @param args the command line arguments + */ + public static void main(String args[]) { + java.awt.EventQueue.invokeLater(new Runnable() { + + public void run() { + new Main().setVisible(true); + } + }); + } + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jButtonArtikelAbschicken; + private javax.swing.JButton jButtonArtikellisteRefresh; + private javax.swing.JButton jButtonCreateDemoArtikel; + private javax.swing.JButton jButtonCreateDemoKunden; + private javax.swing.JButton jButtonKundeAendern; + private javax.swing.JButton jButtonKundeLoeschen; + private javax.swing.JButton jButtonKundeNeu; + private javax.swing.JButton jButtonKundenlisteRefresh; + private javax.swing.JButton jButtonLagerAendern; + private javax.swing.JButton jButtonLagerLoeschen; + private javax.swing.JButton jButtonLagerNeu; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel10; + private javax.swing.JLabel jLabel11; + private javax.swing.JLabel jLabel12; + private javax.swing.JLabel jLabel13; + private javax.swing.JLabel jLabel14; + private javax.swing.JLabel jLabel1ReportOutput; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JLabel jLabel4; + private javax.swing.JLabel jLabel5; + private javax.swing.JLabel jLabel6; + private javax.swing.JLabel jLabel7; + private javax.swing.JLabel jLabel8; + private javax.swing.JLabel jLabel9; + private javax.swing.JLabel jLabelKundeId; + private javax.swing.JLabel jLabelLagerId; + private javax.swing.JMenu jMenu1; + private javax.swing.JMenu jMenu2; + private javax.swing.JMenuBar jMenuBar1; + private javax.swing.JMenuItem jMenuItem1; + private javax.swing.JPanel jPanel1; + private javax.swing.JPanel jPanelArtikel; + private javax.swing.JPanel jPanelAuftragsAbwicklung; + private javax.swing.JPanel jPanelKunde; + private javax.swing.JScrollPane jScrollPane2; + private javax.swing.JScrollPane jScrollPane3; + private javax.swing.JScrollPane jScrollPane4; + private javax.swing.JSpinner jSpinnerAnzahl; + private javax.swing.JSpinner jSpinnerArtikelId; + private javax.swing.JSpinner jSpinnerKundenId; + private javax.swing.JSpinner jSpinnerLagerAnzahl; + private javax.swing.JSpinner jSpinnerLagerPreis; + private javax.swing.JTabbedPane jTabbedPane1; + private javax.swing.JTabbedPane jTabbedPaneVerwaltung; + private javax.swing.JTable jTable1; + private javax.swing.JTable jTableKunden; + private javax.swing.JTextArea jTextAreaKundeAdresse; + private javax.swing.JTextField jTextFieldKundeNachname; + private javax.swing.JTextField jTextFieldKundeVorname; + private javax.swing.JTextField jTextFieldLagerBezeichnung; + // End of variables declaration//GEN-END:variables +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/build.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/build.xml new file mode 100644 index 0000000..6abd80c --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/build.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + Builds, tests, and runs the project DSI-ejb. + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/ant-deploy.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/ant-deploy.xml new file mode 100644 index 0000000..28ca9b4 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/ant-deploy.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/build-impl.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/build-impl.xml new file mode 100644 index 0000000..889b693 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/build-impl.xml @@ -0,0 +1,590 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set build.generated.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.classes.excludes + Must set dist.jar + +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set main.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/genfiles.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/genfiles.properties new file mode 100644 index 0000000..57ecb0b --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a92f067b +build.xml.script.CRC32=c69124cc +build.xml.stylesheet.CRC32=e5f4c432 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=a92f067b +nbproject/build-impl.xml.script.CRC32=3de6bbe8 +nbproject/build-impl.xml.stylesheet.CRC32=36c39d59 diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/private/private.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/private/private.properties new file mode 100644 index 0000000..e0fdfe7 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/private/private.properties @@ -0,0 +1,9 @@ +deploy.ant.properties.file=C:\\Dokumente und Einstellungen\\Jan\\.netbeans\\6.5\\glassfish.properties +j2ee.platform.classpath=D:\\Programme\\glassfish-v2.1\\lib\\javaee.jar:D:\\Programme\\glassfish-v2.1\\lib\\jsf-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\activation.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-tags.jar:D:\\Programme\\glassfish-v2.1\\lib\\mail.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-jstl.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-rt.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ws.jar +j2ee.platform.wscompile.classpath=D:\\Programme\\glassfish-v2.1\\lib\\j2ee.jar:D:\\Programme\\glassfish-v2.1\\lib\\saaj-api.jar:D:\\Programme\\glassfish-v2.1\\lib\\saaj-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\jaxrpc-api.jar:D:\\Programme\\glassfish-v2.1\\lib\\jaxrpc-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\endorsed\\jaxp-api.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ws.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-rt.jar +j2ee.platform.wsgen.classpath=D:\\Programme\\glassfish-v2.1\\lib\\webservices-tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-rt.jar:D:\\Programme\\glassfish-v2.1\\lib\\tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-jstl.jar:D:\\Programme\\glassfish-v2.1\\lib\\javaee.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ws.jar:D:\\Programme\\glassfish-v2.1\\lib\\mail.jar:D:\\Programme\\glassfish-v2.1\\lib\\activation.jar +j2ee.platform.wsimport.classpath=D:\\Programme\\glassfish-v2.1\\lib\\webservices-tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-rt.jar:D:\\Programme\\glassfish-v2.1\\lib\\tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-jstl.jar:D:\\Programme\\glassfish-v2.1\\lib\\javaee.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ws.jar:D:\\Programme\\glassfish-v2.1\\lib\\mail.jar:D:\\Programme\\glassfish-v2.1\\lib\\activation.jar +j2ee.platform.wsit.classpath= +j2ee.server.instance=[D:\\Programme\\glassfish-v2.1]deployer:Sun:AppServer::localhost:4848 +jaxws.endorsed.dir=D:\\Programme\\NetBeans 6.5.1\\java2\\modules\\ext\\jaxws21\\api:D:\\Programme\\NetBeans 6.5.1\\ide10\\modules\\ext\\jaxb\\api +netbeans.user=C:\\Dokumente und Einstellungen\\Jan\\.netbeans\\6.5 diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/private/private.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/private/private.xml new file mode 100644 index 0000000..cc2c0e5 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/project.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/project.properties new file mode 100644 index 0000000..8a2a184 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/project.properties @@ -0,0 +1,53 @@ +build.classes.dir=${build.dir}/jar +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs +build.dir=build +build.ear.classes.dir=${build.dir}/jar +build.generated.dir=${build.dir}/generated +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +debug.classpath=${javac.classpath}:${build.classes.dir} +debug.test.classpath=\ + ${run.test.classpath} +dist.dir=dist +dist.ear.jar=${dist.dir}/${jar.name} +dist.jar=${dist.dir}/${jar.name} +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +j2ee.platform=1.5 +j2ee.server.type=J2EE +jar.compress=false +jar.name=DSI-ejb.jar +javac.classpath= +javac.debug=true +javac.deprecation=false +javac.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.preview=true +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +meta.inf=${source.root}/conf +meta.inf.excludes=sun-cmp-mappings.xml +platform.active=default_platform +resource.dir=setup +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +source.root=src +src.dir=${source.root}/java +test.src.dir=test diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/project.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/project.xml new file mode 100644 index 0000000..17a2bb3 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/nbproject/project.xml @@ -0,0 +1,19 @@ + + + org.netbeans.modules.j2ee.ejbjarproject + + + DSI-ejb + 1.6 + + + + + + + + + ..\.\lib\nblibraries.properties + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/conf/MANIFEST.MF b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/conf/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/conf/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/conf/persistence.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/conf/persistence.xml new file mode 100644 index 0000000..21115af --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/conf/persistence.xml @@ -0,0 +1,10 @@ + + + + oracle.toplink.essentials.PersistenceProvider + jdbc/sample + + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/adressen/AdressenBean.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/adressen/AdressenBean.java new file mode 100644 index 0000000..9046ed5 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/adressen/AdressenBean.java @@ -0,0 +1,43 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.adressen; + + +import beans.*; +import javax.ejb.Stateless; +import javax.jws.WebService; + +/** + * + * @author jmueller + */ +@Stateless(mappedName="AdressenBean") +public class AdressenBean implements AdressenRemote { + + + /** + * gibt zu einer Artikel-Id die Adresse des Lieferanten zurück + * @param artikel_id Die Artikel-Id + * @return Die Adresse des Lieferanten + */ + public String getLieferantenAdresseFuerArtikel( long artikel_id) { + if(artikel_id == 1) + return "Shimano, Merkelstr. 133, 12345 Dresden"; + else if (artikel_id == 2) + return "Siemens, Zumwinkelstr. 31, 123123 Berlin"; + else if (artikel_id == 3) + return "Schwalbe, Taubenweg 3, 54566 Hannover"; + else + return "Musterfirma, Musterstrasse 123, 12345 Musterstadt"; + + + } + + + // Add business logic below. (Right-click in editor and choose + // "EJB Methods > Add Business Method" or "Web Service > Add Operation") + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/adressen/AdressenRemote.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/adressen/AdressenRemote.java new file mode 100644 index 0000000..24970cf --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/adressen/AdressenRemote.java @@ -0,0 +1,19 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.adressen; + +import javax.ejb.Remote; + +/** + * + * @author jmueller + */ +@Remote +public interface AdressenRemote { + + String getLieferantenAdresseFuerArtikel(long artikel_id); + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/artikelManager/ArtikelManagerBean.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/artikelManager/ArtikelManagerBean.java new file mode 100644 index 0000000..07be349 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/artikelManager/ArtikelManagerBean.java @@ -0,0 +1,106 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.artikelManager; + +import beans.*; +import entities.Artikel; +import exceptions.IdBereitsVergebenException; +import exceptions.UnbekanntesEntityException; +import java.util.List; +import javax.ejb.Stateless; +import javax.persistence.EntityManager; +import javax.persistence.PersistenceContext; + +/** + * + * @author Jan + */ +@Stateless(mappedName="ArtikelManagerBean") +public class ArtikelManagerBean implements ArtikelManagerRemote { + @PersistenceContext + private EntityManager em; + + + /** + * erstellt einen Artikel und liefert die Artikel-Id zurueck + * @param artikel + * @return Artikel-Id + */ + public long createArtikel(Artikel artikel) throws IdBereitsVergebenException { + try { + em.persist(artikel); + return artikel.getId(); + } + catch(Exception e){ + throw new IdBereitsVergebenException("Artikel-Id bereits vergeben: [id="+ artikel.getId()+"]"); + } + } + + + /** + * Gibt einen Artikel anhand seiner Id zurueck + * @param artikelId + * @return + */ + public Artikel readArtikel( long artikelId) throws UnbekanntesEntityException{ + Artikel artikel = em.find(Artikel.class, artikelId ); + if (artikel == null) + throw new UnbekanntesEntityException("Artikel", artikelId); + return artikel; + } + + + /** + * gibt alle Artikel zurueck + * @return + */ + public List readAllArtikel(){ + return (List)em.createQuery("SELECT a FROM Artikel a ORDER BY a.id").getResultList(); + } + + /** + * Schreibt die Änderungen eines Artikels in die Datenbank + * @param artikel + */ + public void updateArtikel( Artikel artikel){ + em.merge(artikel); + } + + /** + * Entfernt einen Artikel mit der angegebenen Artikel-Id + * @param artikelId + */ + public void deleteArtikel(long artikelId){ + Artikel artikel = em.find(Artikel.class, artikelId ); + em.remove(artikel); + } + + + /** + * entfernt alle Artikel + */ + public void deleteAllArtikel(){ + for(Artikel artikel : readAllArtikel()){ + deleteArtikel( artikel.getId() ); + } + } + + + /** + * Prüft ob es einen Artikel mit angegebener Artikel-Id gibt + * @param artikelId + * @return + */ + public boolean existsArtikel(long artikelId){ + Artikel artikel = em.find(Artikel.class, artikelId ); + if(artikel != null) + return true; + + return false; + } + + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/artikelManager/ArtikelManagerRemote.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/artikelManager/ArtikelManagerRemote.java new file mode 100644 index 0000000..dba3832 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/artikelManager/ArtikelManagerRemote.java @@ -0,0 +1,29 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.artikelManager; + +import entities.Artikel; +import exceptions.IdBereitsVergebenException; +import exceptions.UnbekanntesEntityException; +import java.util.List; +import javax.ejb.Remote; + +/** + * + * @author Jan + */ +@Remote +public interface ArtikelManagerRemote { + + public long createArtikel(Artikel artikel) throws IdBereitsVergebenException; + public Artikel readArtikel(long artikelId) throws UnbekanntesEntityException; + public List readAllArtikel(); + public void updateArtikel(Artikel artikel); + public void deleteArtikel(long artikelId); + public void deleteAllArtikel(); + public boolean existsArtikel(long artikelId); + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/auftragsAbwicklung/AuftragsAbwicklungBean.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/auftragsAbwicklung/AuftragsAbwicklungBean.java new file mode 100644 index 0000000..625261f --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/auftragsAbwicklung/AuftragsAbwicklungBean.java @@ -0,0 +1,70 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package beans.auftragsAbwicklung; + +import beans.bestell.BestellRemote; +import beans.lieferant.LieferantRemote; +import beans.lager.LagerRemote; +import beans.*; +import beans.artikelManager.ArtikelManagerRemote; +import entities.Artikel; +import exceptions.AuftragsAbwicklungException; +import javax.ejb.EJB; +import javax.ejb.Stateless; + +/** + * Eine Klasse für das abwickeln von Aufträgen + * @author jmueller + */ +@Stateless(mappedName="AuftragsAbwicklungBean") +public class AuftragsAbwicklungBean implements AuftragsAbwicklungRemote { + @EJB + private BestellRemote bestellBean; + @EJB + private ArtikelManagerRemote artikelManagerBean; + + @EJB + private LieferantRemote lieferantBean; + @EJB + private LagerRemote lagerBean; + + + /** + * simuliert die Bestellung eines Artikels durch einen Kunden + * + * @param kundenId Id des Kunden + * @param artikelId Id des Artikels + * @param artikelAnzahl Anzahl des Artikels + * + * @return String Bericht + * @throws java.lang.Exception + */ + public String bestelleArtikel(long kundenId, long artikelId, long artikelAnzahl ) throws Exception{ + + + if( bestellBean.validiereBestellung(artikelId, artikelAnzahl, kundenId) != true){ + throw new AuftragsAbwicklungException("Bestellung nicht valide!"); + } + + Artikel artikel = artikelManagerBean.readArtikel(artikelId); + + + // falls nicht verfuegbar -> nachbestellen + if (lagerBean.pruefeVerfuegbarkeit(artikelId, artikelAnzahl) != true) { + long mindestMenge = 10L; + long imLager = artikel.getAnzahl(); + long anzahlNachbestellen = artikelAnzahl - imLager + mindestMenge; + lieferantBean.bestelleNach(artikelId, anzahlNachbestellen); + } + + lagerBean.bucheArtikelAus(artikelId, artikelAnzahl); + double preisOhneMwSt = bestellBean.berechneGesamtpreis(artikelAnzahl, artikel.getPreis()); + double MwSt = bestellBean.berechneMehrwertSteuer(preisOhneMwSt); + + return ""; + } + + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/auftragsAbwicklung/AuftragsAbwicklungRemote.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/auftragsAbwicklung/AuftragsAbwicklungRemote.java new file mode 100644 index 0000000..4dfa025 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/auftragsAbwicklung/AuftragsAbwicklungRemote.java @@ -0,0 +1,20 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.auftragsAbwicklung; + +import exceptions.AuftragsAbwicklungException; +import helper.AuftragsPosition; +import java.util.List; +import javax.ejb.Remote; + +/** + * + * @author jmueller + */ +@Remote +public interface AuftragsAbwicklungRemote { + public String bestelleArtikel(long kundenId, long artikelId, long artikelAnzahl) throws Exception; +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/bestell/BestellBean.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/bestell/BestellBean.java new file mode 100644 index 0000000..d7f4e76 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/bestell/BestellBean.java @@ -0,0 +1,105 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.bestell; + +import beans.kundenManager.KundenManagerRemote; +import beans.*; +import beans.artikelManager.ArtikelManagerRemote; +import javax.ejb.EJB; +import javax.ejb.Stateless; + +/** + * + * @author Jan + */ +@Stateless(mappedName="BestellBean") +public class BestellBean implements BestellRemote { + @EJB + private KundenManagerRemote kundenManagerBean; + @EJB + private ArtikelManagerRemote artikelManagerBean; + + + /** + * testet ob eine Position valide ist, + * das heisst ob es einen Artikel mit angegebener Id gibt + * und ob die anzahl > 0 ist + * + * @param artikelId + * @param anzahl + * @return true falls valide + */ + public boolean validierePosition + ( long artikelId, + long anzahl) { + + // verifiziere, dass mindestens ein Artikel bestellt wird + if(anzahl < 1){ + return false; + } + + // verifiziere dass ein Artikel mit dieser id existiert + if (artikelManagerBean.existsArtikel(artikelId) == false){ + return false; + } + + return true; + } + + /** + * validiert eine Bestellung, + * + * siehe validierePosition, allerdings mit Überprüfung ob ein Kunde + * mit angegebener Id existiert + * + * @param artikelId Id des Artikels + * @param anzahl Artikel-Anzahl + * @param kundenId Id des Kunden + * @return true falls valide + */ + public boolean validiereBestellung + ( long artikelId, + long anzahl, + long kundenId) { + + + if( validierePosition(artikelId, anzahl) != true){ + return false; + } + + if(kundenManagerBean.existsKunde(kundenId) == false){ + return false; + } + + return true; + } + + /** + * berechnet den Gesamtpreis der bestellten Artikel + * + * @param anzahl Anzahl der Artikel + * @param preis Einzel-Preis + * @return Gesamtpreis + */ + public double berechneGesamtpreis + ( long anzahl, + double preis) { + return anzahl * preis; + } + + /** + * Berechnet die Mehrwertsteuer + * + * es wird von einer Mehrwert-Steuer von 19% ausgegangen + * + * @param preis Der Preis + * @return MwSt Die berechnete Mehrwertsteuer + */ + public double berechneMehrwertSteuer(double preis) { + return 0.19 * preis; + } + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/bestell/BestellRemote.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/bestell/BestellRemote.java new file mode 100644 index 0000000..a6f1001 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/bestell/BestellRemote.java @@ -0,0 +1,23 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.bestell; + +import javax.ejb.Remote; + +/** + * + * @author Jan + */ +@Remote +public interface BestellRemote { + + public double berechneGesamtpreis(long anzahl, double preis); + public double berechneMehrwertSteuer(double preis); + public boolean validierePosition(long artikelId, long anzahl); + public boolean validiereBestellung(long artikelId, long anzahl, @javax.jws.WebParam(name = "kundenId") + long kundenId); + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/kundenManager/KundenManagerBean.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/kundenManager/KundenManagerBean.java new file mode 100644 index 0000000..b0de74c --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/kundenManager/KundenManagerBean.java @@ -0,0 +1,99 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.kundenManager; + +import beans.*; +import entities.Kunde; +import java.util.List; +import javax.ejb.Stateless; +import javax.persistence.EntityManager; +import javax.persistence.PersistenceContext; + +/** + * + * @author Jan + */ + +@Stateless(mappedName="KundenManagerBean") +public class KundenManagerBean implements KundenManagerRemote { + @PersistenceContext + private EntityManager em; + + + /** + * erstellt einen Kunden und liefert die Kunden-Id zurueck + * @param Kunde + * @return Kunden-Id + */ + public long createKunde(Kunde kunde) { + em.persist(kunde); + + return kunde.getId(); + } + + + /** + * Gibt einen Kunden anhand seiner Id zurueck + * @param kundeId + * @return + */ + public Kunde readKunde(long kundeId){ + Kunde kunde = em.find(Kunde.class, kundeId ); + return kunde; + } + + + /** + * gibt alle Kunden zurueck + * @return + */ + public List readAllKunden(){ + return (List)em.createQuery("SELECT k FROM Kunde k ORDER BY k.id").getResultList(); + } + + /** + * Schreibt die Änderungen eines Kunden in die Datenbank + * @param kunde Der Kunde + */ + public void updateKunde(Kunde kunde){ + em.merge(kunde); + } + + /** + * Entfernt einen Kunden mit der angegebenen Kunden-Id + * @param kundeId + */ + public void deleteKunde(long kundeId){ + Kunde kunde = em.find(Kunde.class, kundeId ); + em.remove(kunde); + } + + + /** + * entfernt alle Kunden + * + */ + public void deleteAllKunden(){ + for(Kunde kunde : readAllKunden()){ + deleteKunde( kunde.getId() ); + } + } + + + /** + * Prüft ob es einen Kunden mit angegebener Kunden-Id gibt + * @param kundeId + * @return true falls ein Kunde mit angegebener ID existiert + */ + public boolean existsKunde(long kundeId){ + Kunde kunde = em.find(Kunde.class, kundeId ); + if(kunde != null) + return true; + + return false; + } + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/kundenManager/KundenManagerRemote.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/kundenManager/KundenManagerRemote.java new file mode 100644 index 0000000..935c715 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/kundenManager/KundenManagerRemote.java @@ -0,0 +1,25 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.kundenManager; + +import javax.ejb.Remote; + +/** + * + * @author Jan + */ +@Remote +public interface KundenManagerRemote { + + public long createKunde(entities.Kunde kunde); + public entities.Kunde readKunde(long kundeId); + public java.util.List readAllKunden(); + public void updateKunde(entities.Kunde kunde); + public void deleteKunde(long kundeId); + public void deleteAllKunden(); + public boolean existsKunde(long kundeId); + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lager/LagerBean.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lager/LagerBean.java new file mode 100644 index 0000000..1602797 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lager/LagerBean.java @@ -0,0 +1,80 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.lager; + +import beans.*; +import beans.artikelManager.ArtikelManagerRemote; +import entities.Artikel; +import exceptions.IllegalerWertException; +import exceptions.UnbekanntesEntityException; +import javax.ejb.EJB; +import javax.ejb.Stateless; + +/** + * Diese Klasse stellt Funktionen des Lagers bereit + * @author jmueller + */ +@Stateless(mappedName="LagerBean") +public class LagerBean implements LagerRemote { + @EJB + private ArtikelManagerRemote artikelManagerBean; + + /** + * bucht eine bestimmte Anzahl von Artikeln aus dem Lager aus + * + * @param id die Id des Artikels + * @param anzahl die Anzahl der auszubuchenden Artikel + */ + public void bucheArtikelAus(long id, long anzahl)throws UnbekanntesEntityException, IllegalerWertException{ + System.out.println("Lager: bucheArtikelAus("+id+","+anzahl+")"); + if(anzahl < 0){ + throw new IllegalerWertException("anzahl", ""+id); + } + Artikel artikel = artikelManagerBean.readArtikel(id); + artikel.setAnzahl(artikel.getAnzahl() - anzahl); + artikelManagerBean.updateArtikel(artikel); + } + + + /** + * bucht eine bestimmte Anzahl von Artikeln ins Lager ein + * + * @param id + * @param anzahl + * @throws exceptions.UnbekanntesEntityException + * @throws exceptions.IllegalerWertException + */ + public void bucheArtikelEin(long id, long anzahl) throws UnbekanntesEntityException, IllegalerWertException{ + System.out.println("Lager: bucheArtikelEin("+id+","+ anzahl+")"); + if(anzahl < 0){ + throw new IllegalerWertException("anzahl", ""+id); + } + + Artikel artikel = artikelManagerBean.readArtikel(id); + artikel.setAnzahl(artikel.getAnzahl() + anzahl); + artikelManagerBean.updateArtikel(artikel); + } + + + /** + * Testet ob der Artikel in ausreichender Anzahl vorhanden ist, + * falls der Artikel nicht existiert wird false zurückgegeben + * @param id + * @param anzahl + * @return + */ + public boolean pruefeVerfuegbarkeit(long id, long anzahl) throws Exception{ + Artikel artikel = artikelManagerBean.readArtikel(id); + if( artikel.getAnzahl() >= anzahl ){ + return true; + } + + return false; + } + + // Add business logic below. (Right-click in editor and choose + // "EJB Methods > Add Business Method" or "Web Service > Add Operation") +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lager/LagerRemote.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lager/LagerRemote.java new file mode 100644 index 0000000..ea1e8d0 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lager/LagerRemote.java @@ -0,0 +1,22 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.lager; + +import exceptions.IllegalerWertException; +import exceptions.UnbekanntesEntityException; +import javax.ejb.Remote; + +/** + * + * @author jmueller + */ +@Remote +public interface LagerRemote { + + public void bucheArtikelAus(long id, long anzahl) throws UnbekanntesEntityException, IllegalerWertException; + public void bucheArtikelEin(long id, long anzahl) throws UnbekanntesEntityException, IllegalerWertException; + public boolean pruefeVerfuegbarkeit(long id, long anzahl) throws Exception; +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lieferant/LieferantBean.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lieferant/LieferantBean.java new file mode 100644 index 0000000..2fb1a16 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lieferant/LieferantBean.java @@ -0,0 +1,48 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.lieferant; + +import beans.*; +import beans.lager.LagerRemote; +import beans.artikelManager.ArtikelManagerRemote; +import beans.adressen.AdressenRemote; +import exceptions.IllegalerWertException; +import exceptions.UnbekanntesEntityException; +import javax.ejb.EJB; +import javax.ejb.Stateless; + +/** + * + * @author jmueller + */ +@Stateless(mappedName="LieferantBean") +public class LieferantBean implements LieferantRemote { + @EJB + private ArtikelManagerRemote artikelManagerBean; + @EJB + private LagerRemote lagerBean; + @EJB + private AdressenRemote adressenBean; + + + + /** + * bestellt eine bestimmte Anzahl von Artikeln nach + * @param id die Id des Artikels + * @param anzahl die Anzahl + */ + // TODO: Session Bean erstellen die die Adresse des Lieferanten für bestimmte + // Artikel heraussucht + public void bestelleNach(long id, long anzahl) throws UnbekanntesEntityException, IllegalerWertException{ + System.out.println("Lieferant: bestelleNach("+id+","+anzahl+")"); + lagerBean.bucheArtikelEin(id, anzahl); + + System.out.println("Bestellung erfolgt bei: " + adressenBean.getLieferantenAdresseFuerArtikel(id) ); + } + + + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lieferant/LieferantRemote.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lieferant/LieferantRemote.java new file mode 100644 index 0000000..9a4a63f --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/beans/lieferant/LieferantRemote.java @@ -0,0 +1,22 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package beans.lieferant; + +import exceptions.IllegalerWertException; +import exceptions.UnbekanntesEntityException; +import javax.ejb.Remote; + +/** + * + * @author jmueller + */ +@Remote +public interface LieferantRemote { + + void bestelleNach(long id, long anzahl) throws UnbekanntesEntityException, IllegalerWertException; + + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/entities/Artikel.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/entities/Artikel.java new file mode 100644 index 0000000..9859fc6 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/entities/Artikel.java @@ -0,0 +1,112 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package entities; + +import java.io.Serializable; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; + +/** + * Eine Klasse welche den Typ eines Artikels verwaltet + * @author jmueller + */ +@Entity +public class Artikel implements Serializable { + private static final long serialVersionUID = 1L; + private Long id; + private String bezeichnung; + private Long anzahl; + private Double preis; + + + public Artikel(){ + + } + + public Artikel(Long id, String bezeichnung, Long anzahl, Double preis) { + this.id = id; + this.bezeichnung = bezeichnung; + this.anzahl = anzahl; + this.preis = preis; + } + + + + + /** + * Default-Konstruktor + */ + + +/* + @Id + @GeneratedValue(strategy = GenerationType.AUTO) + public int getId() { + return id; + } +*/ + @Override + public int hashCode() { + int hash = 0; + hash += getId(); + return hash; + } + + @Override + public boolean equals(Object object) { + if (!(object instanceof Artikel)) { + return false; + } + Artikel other = (Artikel) object; + if (this.getId() != other.getId()) { + return false; + } + return true; + } + + @Override + public String toString() { + return "entities.Artikel[id=" + getId() + "]"; + } + + public String getBezeichnung() { + return bezeichnung; + } + + public void setBezeichnung(String bezeichnung) { + this.bezeichnung = bezeichnung; + } + + @Id + @GeneratedValue(strategy = GenerationType.AUTO) + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getAnzahl() { + return anzahl; + } + + public void setAnzahl(Long anzahl) { + this.anzahl = anzahl; + } + + public Double getPreis() { + return preis; + } + + public void setPreis(Double preis) { + this.preis = preis; + } + + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/entities/Kunde.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/entities/Kunde.java new file mode 100644 index 0000000..0ebadfc --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/entities/Kunde.java @@ -0,0 +1,100 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package entities; + +import java.io.Serializable; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; + +/** + * + * @author Jan + */ +@Entity +public class Kunde implements Serializable { + private static final long serialVersionUID = 1L; + @Id + @GeneratedValue(strategy = GenerationType.AUTO) + private Long id; + private String vorname; + private String nachname; + private String adresse; + + public Kunde() { + } + + public Kunde(Long id, String vorname, String nachname, String adresse) { + this.id = id; + this.vorname = vorname; + this.nachname = nachname; + this.adresse = adresse; + } + + + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + @Override + public int hashCode() { + int hash = 0; + hash += (id != null ? id.hashCode() : 0); + return hash; + } + + @Override + public boolean equals(Object object) { + // TODO: Warning - this method won't work in the case the id fields are not set + if (!(object instanceof Kunde)) { + return false; + } + Kunde other = (Kunde) object; + + // true -> wenn alle Daten identisch sind + if(this.id.equals(other.id) && this.vorname.equals(other.vorname) && this.nachname.equals(other.nachname) && this.adresse.equals(other.adresse)){ + return true; + } + + return false; + } + + @Override + public String toString() { + return "entities.Kunde[id=" + id + "," + vorname +"," + nachname +"," + adresse +"]"; + } + + 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 getAdresse() { + return adresse; + } + + public void setAdresse(String adresse) { + this.adresse = adresse; + } + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/AuftragsAbwicklungException.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/AuftragsAbwicklungException.java new file mode 100644 index 0000000..8aa5574 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/AuftragsAbwicklungException.java @@ -0,0 +1,22 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package exceptions; + +import javax.ejb.ApplicationException; + +/** + * + * @author jmueller + */ +@ApplicationException(rollback=true) +public class AuftragsAbwicklungException extends Exception { + private static final long serialVersionUID = 1L; + + public AuftragsAbwicklungException(String msg){ + super("Auftrag konnte nicht Abgewickelt werden: " + msg); + } + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/IdBereitsVergebenException.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/IdBereitsVergebenException.java new file mode 100644 index 0000000..685b931 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/IdBereitsVergebenException.java @@ -0,0 +1,19 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package exceptions; + +import javax.ejb.ApplicationException; + +/** + * + * @author Jan + */ +@ApplicationException(rollback=true) +public class IdBereitsVergebenException extends Exception{ + public IdBereitsVergebenException(String msg) { + super(msg); + } +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/IllegalerWertException.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/IllegalerWertException.java new file mode 100644 index 0000000..eb21936 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/IllegalerWertException.java @@ -0,0 +1,26 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package exceptions; + +import javax.ejb.ApplicationException; + +/** + * + * @author Jan + */ +@ApplicationException(rollback=true) +public class IllegalerWertException extends Exception { + + public IllegalerWertException(String msg) { + super(msg); + } + + public IllegalerWertException(String variablenName, Object wert) { + super("Illegaler Wert: [" + variablenName+ " = " + wert.toString() +"]"); + } + + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/UnbekanntesEntityException.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/UnbekanntesEntityException.java new file mode 100644 index 0000000..0d1c405 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/exceptions/UnbekanntesEntityException.java @@ -0,0 +1,29 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package exceptions; + +import javax.ejb.ApplicationException; + +/** + * + * @author jmueller + */ +@ApplicationException(rollback=true) +public class UnbekanntesEntityException extends Exception { + + /** + * Constructs an instance of UnbekannterArtikelException with the specified detail message. + * @param msg the detail message. + */ + public UnbekanntesEntityException(String msg) { + super(msg); + } + + public UnbekanntesEntityException(String typ, long id) { + super("Unbekanntes Entity vom Typ: " + typ + " [id="+ id +"]"); + } + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/helper/Auftrag.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/helper/Auftrag.java new file mode 100644 index 0000000..ade052e --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/helper/Auftrag.java @@ -0,0 +1,69 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package helper; + +import java.io.Serializable; +import java.util.LinkedList; +import java.util.List; +import javax.swing.AbstractListModel; + +/** + * Diese Klasse stellt einen Auftrag dar, der aus mehreren Auftragspositionen besteht + * @author jmueller + */ +public class Auftrag extends AbstractListModel implements Serializable { + private List positionen; + + + public Auftrag(){ + this.positionen = new LinkedList(); + } + + + /** + * gibt die Positionen zurück + * @return die Auftragspositionen + */ + public List getPositionen() { + return this.positionen; + } + + public int getSize() { + return this.positionen.size(); + } + + public Object getElementAt(int arg0) { + return this.positionen.get(arg0); + } + + + public void addPosition(int id, int anzahl){ + this.addPosition(new AuftragsPosition(id, anzahl)); + + } + + public void addPosition(AuftragsPosition position){ + this.positionen.add(position); + this.fireIntervalAdded(position, this.positionen.size()-1, this.positionen.size()-1); + } + + public void removePosition(AuftragsPosition position){ + this.positionen.remove(position); + this.fireIntervalRemoved(position, 0, this.positionen.size()); + } + + + public void positionChanged(AuftragsPosition position){ + int index = this.positionen.indexOf(position); + this.fireContentsChanged(position, index, index); + } + + + + + + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/helper/AuftragsPosition.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/helper/AuftragsPosition.java new file mode 100644 index 0000000..fe276fa --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/DSI-ejb/src/java/helper/AuftragsPosition.java @@ -0,0 +1,56 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package helper; + +import java.io.Serializable; + +/** + * Die Klasse stellt eine Auftragsposition dar + * @author jmueller + */ +public class AuftragsPosition implements Serializable { + private int id; + private int anzahl; + + public AuftragsPosition() { + this.id = 0; + this.anzahl = 0; + } + + public AuftragsPosition(int _id, int _anzahl){ + this.id = _id; + this.anzahl = _anzahl; + } + + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public int getAnzahl() { + return anzahl; + } + + public void setAnzahl(int anzahl) { + this.anzahl = anzahl; + } + + + @Override + public String toString(){ + return "Id: " + this.id + ", Anzahl: " + this.anzahl; + } + + + + + + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/build.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/build.xml new file mode 100644 index 0000000..10e4ddb --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/build.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + Builds, tests, and runs the project DSI1-ausgang. + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar new file mode 100644 index 0000000..4438603 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit/junit-3.8.2-api.zip b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit/junit-3.8.2-api.zip new file mode 100644 index 0000000..dc075ba Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit/junit-3.8.2-api.zip differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit/junit-3.8.2.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit/junit-3.8.2.jar new file mode 100644 index 0000000..d835872 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit/junit-3.8.2.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit_4/junit-4.1.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit_4/junit-4.1.jar new file mode 100644 index 0000000..30e5ec3 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/junit_4/junit-4.1.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/nblibraries-private.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/nblibraries-private.properties new file mode 100644 index 0000000..e69de29 diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/nblibraries.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/nblibraries.properties new file mode 100644 index 0000000..520fb73 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/lib/nblibraries.properties @@ -0,0 +1,8 @@ +libs.junit.classpath=\ + ${base}/junit/junit-3.8.2.jar +libs.junit.javadoc=\ + ${base}/junit/junit-3.8.2-api.zip +libs.junit_4.classpath=\ + ${base}/junit_4/junit-4.1.jar +libs.CopyLibs.classpath=\ + ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/ant-deploy.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/ant-deploy.xml new file mode 100644 index 0000000..28ca9b4 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/ant-deploy.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/build-impl.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/build-impl.xml new file mode 100644 index 0000000..bc9e16f --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/build-impl.xml @@ -0,0 +1,468 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set build.dir + Must set build.generated.dir + Must set dist.dir + Must set build.classes.excludes + Must set dist.jar + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + + + Launching ${browse.url} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/genfiles.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/genfiles.properties new file mode 100644 index 0000000..d157980 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1aab7fe7 +build.xml.script.CRC32=a34f890c +build.xml.stylesheet.CRC32=475c2a62 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=1aab7fe7 +nbproject/build-impl.xml.script.CRC32=75208292 +nbproject/build-impl.xml.stylesheet.CRC32=47a529d0 diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/private/private.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/private/private.properties new file mode 100644 index 0000000..af8ef69 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/private/private.properties @@ -0,0 +1,9 @@ +deploy.ant.properties.file=C:\\Dokumente und Einstellungen\\Jan\\.netbeans\\6.5\\glassfish.properties +j2ee.appclient.tool.args=-configxml "D:\\Programme\\glassfish-v2.1\\domains\\domain1\\config\\sun-acc.xml" +j2ee.appclient.tool.jvmoptions=-Dcom.sun.aas.configRoot="D:\\Programme\\glassfish-v2.1\\config" -Dcom.sun.aas.installRoot="D:\\Programme\\glassfish-v2.1" -Dcom.sun.aas.imqLib="D:\\Programme\\glassfish-v2.1\\imq\\lib" -Djava.security.policy="D:\\Programme\\glassfish-v2.1\\lib\\appclient\\client.policy" -Djava.security.auth.login.config="D:\\Programme\\glassfish-v2.1\\lib\\appclient\\appclientlogin.conf" -Djava.endorsed.dirs="D:\\Programme\\glassfish-v2.1\\lib\\endorsed" -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser -Djava.util.logging.manager=com.sun.enterprise.server.logging.ACCLogManager +j2ee.appclient.tool.mainclass=com.sun.enterprise.appclient.Main +j2ee.appclient.tool.runtime=D:\\Programme\\glassfish-v2.1\\lib\\dom.jar:D:\\Programme\\glassfish-v2.1\\lib\\xalan.jar:D:\\Programme\\glassfish-v2.1\\lib\\xercesImpl.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-rt.jar:D:\\Programme\\glassfish-v2.1\\lib\\javaee.jar:D:\\Programme\\glassfish-v2.1\\lib\\j2ee.jar:D:\\Programme\\glassfish-v2.1\\lib\\jmac-api.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ext.jar:D:\\Programme\\glassfish-v2.1\\lib\\mail.jar:D:\\Programme\\glassfish-v2.1\\lib\\activation.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-rt.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ws.jar:D:\\Programme\\glassfish-v2.1\\lib\\jaxrpc-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\saaj-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\jaxr-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\relaxngDatatype.jar:D:\\Programme\\glassfish-v2.1\\lib\\xsdlib.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-cmp.jar:D:\\Programme\\glassfish-v2.1\\javadb\\lib\\derbyclient.jar:D:\\Programme\\glassfish-v2.1\\lib\\toplink-essentials.jar:D:\\Programme\\glassfish-v2.1\\lib\\dbschema.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-admin.jar:D:\\Programme\\glassfish-v2.1\\lib\\install\\applications\\jmsra\\imqjmsra.jar:D:\\Programme\\glassfish-v2.1\\lib\\fscontext.jar:D:\\Programme\\glassfish-v2.1\\lib\\dtds:D:\\Programme\\glassfish-v2.1\\lib\\schemas +j2ee.platform.classpath=D:\\Programme\\glassfish-v2.1\\lib\\javaee.jar:D:\\Programme\\glassfish-v2.1\\lib\\jsf-impl.jar:D:\\Programme\\glassfish-v2.1\\lib\\activation.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-tags.jar:D:\\Programme\\glassfish-v2.1\\lib\\mail.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-jstl.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-tools.jar:D:\\Programme\\glassfish-v2.1\\lib\\webservices-rt.jar:D:\\Programme\\glassfish-v2.1\\lib\\appserv-ws.jar +j2ee.server.instance=[D:\\Programme\\glassfish-v2.1]deployer:Sun:AppServer::localhost:4848 +netbeans.user=C:\\Dokumente und Einstellungen\\Jan\\.netbeans\\6.5 +wa.copy.client.jar.from=D:\\Programme\\glassfish-v2.1\\domains\\domain1\\generated\\xml\\j2ee-apps diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/project.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/project.properties new file mode 100644 index 0000000..0e79333 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/project.properties @@ -0,0 +1,31 @@ +app.client=DSI-app-client +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs +build.dir=build +build.generated.dir=${build.dir}/generated +client.module.uri=DSI1-ausgang/${app.client} +client.urlPart= +debug.classpath=${javac.classpath}::${jar.content.additional}:${run.classpath} +display.browser=true +dist.dir=dist +dist.jar=${dist.dir}/${jar.name} +j2ee.appclient.mainclass.args=-client ${dist.jar} ${j2ee.appclient.tool.args} +j2ee.platform=1.5 +j2ee.server.type=J2EE +jar.compress=false +jar.content.additional=\ + ${reference.DSI-app-client.j2ee-module-car}:\ + ${reference.DSI-ejb.dist-ear} +jar.name=DSI1-ausgang.ear +javac.debug=true +javac.deprecation=false +javac.source=1.5 +javac.target=1.5 +meta.inf=src/conf +no.dependencies=false +platform.active=default_platform +project.DSI-app-client=DSI-app-client +project.DSI-ejb=DSI-ejb +reference.DSI-app-client.j2ee-module-car=${project.DSI-app-client}/dist/DSI-app-client.jar +reference.DSI-ejb.dist-ear=${project.DSI-ejb}/dist/DSI-ejb.jar +resource.dir=setup +source.root=. diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/project.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/project.xml new file mode 100644 index 0000000..6ec9cbe --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/nbproject/project.xml @@ -0,0 +1,42 @@ + + + org.netbeans.modules.j2ee.earproject + + + DSI1-ausgang + 1.6 + + + + ${reference.DSI-app-client.j2ee-module-car} + / + + + ${reference.DSI-ejb.dist-ear} + / + + + + + .\lib\nblibraries.properties + + + + DSI-app-client + j2ee_ear_archive + + dist-ear + clean-ear + j2ee-module-car + + + DSI-ejb + j2ee_ear_archive + + dist-ear + clean-ear + dist-ear + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/src/conf/MANIFEST.MF b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/src/conf/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/DSI1-ausgang/src/conf/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/build.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/build.xml new file mode 100644 index 0000000..8d147e2 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/build.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + Builds, tests, and runs the project WS-Client. + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/catalog.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/catalog.xml new file mode 100644 index 0000000..a175d96 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/catalog.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar new file mode 100644 index 0000000..6810af3 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/FastInfoset.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/FastInfoset.jar new file mode 100644 index 0000000..184dfda Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/FastInfoset.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/activation.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/activation.jar new file mode 100644 index 0000000..3869b58 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/activation.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/http.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/http.jar new file mode 100644 index 0000000..5096abe Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/http.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-api.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-api.jar new file mode 100644 index 0000000..ad6904f Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-api.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-impl.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-impl.jar new file mode 100644 index 0000000..534e99d Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-impl.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-xjc.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-xjc.jar new file mode 100644 index 0000000..8c114c6 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxb-xjc.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-2_1-api-doc.zip b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-2_1-api-doc.zip new file mode 100644 index 0000000..0836e1c Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-2_1-api-doc.zip differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-api.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-api.jar new file mode 100644 index 0000000..abf09dd Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-api.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-rt.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-rt.jar new file mode 100644 index 0000000..8dbe644 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-rt.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-tools.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-tools.jar new file mode 100644 index 0000000..85c19ee Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jaxws-tools.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr173_api.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr173_api.jar new file mode 100644 index 0000000..b3aafa9 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr173_api.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr181-api.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr181-api.jar new file mode 100644 index 0000000..948af5d Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr181-api.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr250-api.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr250-api.jar new file mode 100644 index 0000000..fa4e072 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/jsr250-api.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/saaj-api.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/saaj-api.jar new file mode 100644 index 0000000..ebd7c18 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/saaj-api.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/saaj-impl.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/saaj-impl.jar new file mode 100644 index 0000000..6aa2c7c Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/saaj-impl.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/sjsxp.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/sjsxp.jar new file mode 100644 index 0000000..b697fc7 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/sjsxp.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/stax-ex.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/stax-ex.jar new file mode 100644 index 0000000..1bb5ea5 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/stax-ex.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/streambuffer.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/streambuffer.jar new file mode 100644 index 0000000..17cb6ce Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/jaxws21/streambuffer.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit/junit-3.8.2-api.zip b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit/junit-3.8.2-api.zip new file mode 100644 index 0000000..dc075ba Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit/junit-3.8.2-api.zip differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit/junit-3.8.2.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit/junit-3.8.2.jar new file mode 100644 index 0000000..d835872 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit/junit-3.8.2.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit_4/junit-4.1.jar b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit_4/junit-4.1.jar new file mode 100644 index 0000000..30e5ec3 Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/junit_4/junit-4.1.jar differ diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/nblibraries-private.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/nblibraries-private.properties new file mode 100644 index 0000000..e69de29 diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/nblibraries.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/nblibraries.properties new file mode 100644 index 0000000..cfacb0f --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/lib/nblibraries.properties @@ -0,0 +1,28 @@ +libs.junit.classpath=\ + ${base}/junit/junit-3.8.2.jar +libs.junit.javadoc=\ + ${base}/junit/junit-3.8.2-api.zip +libs.junit_4.classpath=\ + ${base}/junit_4/junit-4.1.jar +libs.CopyLibs.classpath=\ + ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar +libs.jaxws21.classpath=\ + ${base}/jaxws21/activation.jar;\ + ${base}/jaxws21/FastInfoset.jar;\ + ${base}/jaxws21/http.jar;\ + ${base}/jaxws21/jaxb-api.jar;\ + ${base}/jaxws21/jaxb-impl.jar;\ + ${base}/jaxws21/jaxb-xjc.jar;\ + ${base}/jaxws21/jaxws-api.jar;\ + ${base}/jaxws21/jaxws-rt.jar;\ + ${base}/jaxws21/jaxws-tools.jar;\ + ${base}/jaxws21/jsr173_api.jar;\ + ${base}/jaxws21/jsr181-api.jar;\ + ${base}/jaxws21/jsr250-api.jar;\ + ${base}/jaxws21/saaj-api.jar;\ + ${base}/jaxws21/saaj-impl.jar;\ + ${base}/jaxws21/sjsxp.jar;\ + ${base}/jaxws21/stax-ex.jar;\ + ${base}/jaxws21/streambuffer.jar +libs.jaxws21.javadoc=\ + ${base}/jaxws21/jaxws-2_1-api-doc.zip diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/manifest.mf b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/manifest.mf new file mode 100644 index 0000000..1574df4 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/build-impl.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/build-impl.xml new file mode 100644 index 0000000..5115c9a --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/build-impl.xml @@ -0,0 +1,662 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + + + + + + java -cp "${run.classpath.with.dist.jar}" ${main.class} + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/genfiles.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/genfiles.properties new file mode 100644 index 0000000..fd3ac41 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d221105c +build.xml.script.CRC32=4a36ae31 +build.xml.stylesheet.CRC32=958a1d3e +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=d221105c +nbproject/build-impl.xml.script.CRC32=a21d2adb +nbproject/build-impl.xml.stylesheet.CRC32=65b8de21 diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/jax-ws.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/jax-ws.xml new file mode 100644 index 0000000..1e85d37 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/jax-ws.xml @@ -0,0 +1,107 @@ + + + + + + http://localhost:8080/BestellBeanService/BestellBean?wsdl + localhost_8080/BestellBeanService/BestellBean.wsdl + beans.bestell + catalog.xml + + + extension + true + + + verbose + true + + + wsdlLocation + http://localhost:8080/BestellBeanService/BestellBean?wsdl + + + + + http://localhost:8080/ArtikelManagerBeanService/ArtikelManagerBean?wsdl + localhost_8080/ArtikelManagerBeanService/ArtikelManagerBean.wsdl + beans.artikelmanager + catalog.xml + + + extension + true + + + verbose + true + + + wsdlLocation + http://localhost:8080/ArtikelManagerBeanService/ArtikelManagerBean?wsdl + + + + + http://localhost:8080/LagerBeanService/LagerBean?wsdl + localhost_8080/LagerBeanService/LagerBean.wsdl + beans.lager + catalog.xml + + + extension + true + + + verbose + true + + + wsdlLocation + http://localhost:8080/LagerBeanService/LagerBean?wsdl + + + + + http://localhost:8080/LieferantBeanService/LieferantBean?wsdl + localhost_8080/LieferantBeanService/LieferantBean.wsdl + beans.lieferant + catalog.xml + + + extension + true + + + verbose + true + + + wsdlLocation + http://localhost:8080/LieferantBeanService/LieferantBean?wsdl + + + + + http://localhost:8080/DSI-Andere-Webservices/MindestMengeService?wsdl + localhost_8080/DSI-Andere-Webservices/MindestMengeService.wsdl + ws + catalog.xml + + + extension + true + + + verbose + true + + + wsdlLocation + http://localhost:8080/DSI-Andere-Webservices/MindestMengeService?wsdl + + + + + false + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/jaxws-build.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/jaxws-build.xml new file mode 100644 index 0000000..b66907a --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/jaxws-build.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/private/private.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/private/private.properties new file mode 100644 index 0000000..07a4cb1 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/private/private.properties @@ -0,0 +1,2 @@ +jaxws.endorsed.dir=C:\\Programme\\NetBeans 6.5\\java2\\modules\\ext\\jaxws21\\api:C:\\Programme\\NetBeans 6.5\\ide10\\modules\\ext\\jaxb\\api +user.properties.file=C:\\Dokumente und Einstellungen\\eisenhauer\\.netbeans\\6.5\\build.properties diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/private/private.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/private/private.xml new file mode 100644 index 0000000..cc2c0e5 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/project.properties b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/project.properties new file mode 100644 index 0000000..fc24d08 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/project.properties @@ -0,0 +1,61 @@ +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/WS-Client.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath=\ + ${libs.jaxws21.classpath} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=wsclient.Main +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value +# or test-sys-prop.name=value to set system properties for unit tests): +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test +compile.on.save.unsupported.jaxws=true diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/project.xml b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/project.xml new file mode 100644 index 0000000..a209bd3 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/nbproject/project.xml @@ -0,0 +1,26 @@ + + + org.netbeans.modules.java.j2seproject + + + + + + + + + + WS-Client + 1.6.5 + + + + + + + + + .\lib\nblibraries.properties + + + diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/Bestellung.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/Bestellung.java new file mode 100644 index 0000000..d2902d7 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/Bestellung.java @@ -0,0 +1,174 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package wsclient; + +/* + * TODO: nach der Generierung der Webservice-Clients bitte Kommentar entfernen + * +import beans.artikelmanager.*; +*/ + + +/** + * + * @author Jan + */ +public class Bestellung { + + + /** + * fuehrt eine Bestellung durch + * + * @param kundenId Die ID des Kunden + * @param artikelId Die ID des Artikels + * @param artikelAnzahl Die Anzahl der Artikel + * @return String Report ueber die Bestellung + * @throws java.lang.Exception + */ + public String fuehreBestellungDurch(long kundenId, long artikelId, long artikelAnzahl) throws Exception { + if(validiereBestellung(artikelId, artikelAnzahl, kundenId) != true) { + throw new Exception("Bestellung nicht valide"); + } + beans.artikelmanager.Artikel artikel = holeArtikelDaten(artikelId); + + if(pruefeVerfuegbarkeit(artikelId, artikelAnzahl)!=true) { + long mindestMenge = holeMindestmengeFuerArtikel(artikelId); + long imLager = artikel.getAnzahl(); + long anzahlNachbestellen = artikelAnzahl - imLager + mindestMenge; + bestelleNach(artikelId, anzahlNachbestellen); + System.out.println(String.format("Reordeing %d pieces of %d", anzahlNachbestellen,artikelId)); + } + bucheAus(artikelId, artikelAnzahl); + double preisNetto = berechneGesamtpreis(artikelAnzahl, artikel.getPreis()); + double mwst = berechneMehrwertSteuer(preisNetto); + String output = erstelleReport(kundenId, artikelAnzahl, artikel, preisNetto, mwst); + return output; + //throw new Exception("noch nicht implementiert!"); + } + + + + +/** + * Die folgenden Methoden koennen zum wrappen der Webservice-Aufrufe verwendet werden + * mittels erstelleReport kann ein Report generiert werden, + * den fuehreBestellungenDurch zurueckgeben kann + */ + + private boolean validiereBestellung(long artikelId, long anzahl, long kundenId) throws Exception { + try { // Call Web Service Operation + beans.bestell.BestellBeanService service = new beans.bestell.BestellBeanService(); + beans.bestell.BestellBean port = service.getBestellBeanPort(); + boolean result = port.validiereBestellung(artikelId, anzahl, kundenId); + System.out.println("Result = "+result); + return result; + } catch (Exception ex) { + throw new Exception("Error validating order with BestellBeanService",ex); + } + } + + private beans.artikelmanager.Artikel holeArtikelDaten(long artikelId) throws beans.artikelmanager.UnbekanntesEntityException_Exception, Exception { + try { // Call Web Service Operation + beans.artikelmanager.ArtikelManagerBeanService service = new beans.artikelmanager.ArtikelManagerBeanService(); + beans.artikelmanager.ArtikelManagerBean port = service.getArtikelManagerBeanPort(); + beans.artikelmanager.Artikel result = port.readArtikel(artikelId); + System.out.println("Result = "+result); + return result; + } catch (Exception ex) { + throw new Exception("Error fetching Artikel from ArtikelManagerBeanService", ex); + } + } + + private boolean pruefeVerfuegbarkeit(long artikelId, long anzahl) throws Exception { + try { // Call Web Service Operation + beans.lager.LagerBeanService service = new beans.lager.LagerBeanService(); + beans.lager.LagerBean port = service.getLagerBeanPort(); + boolean result = port.pruefeVerfuegbarkeit(artikelId, anzahl); + System.out.println("Result = "+result); + return result; + } catch (Exception ex) { + throw new Exception("Error fetching availability from LagerBeanService", ex); + } + + } + + private void bestelleNach(long artikelId, long anzahl) throws beans.lieferant.IllegalerWertException_Exception, beans.lieferant.UnbekanntesEntityException_Exception, Exception { + try { // Call Web Service Operation + beans.lieferant.LieferantBeanService service = new beans.lieferant.LieferantBeanService(); + beans.lieferant.LieferantBean port = service.getLieferantBeanPort(); + port.bestelleNach(artikelId, anzahl); + } catch (Exception ex) { + throw new Exception("Error calling bestelleNach Service Method of LieferantBeanService",ex); + } + + } + + private void bucheAus(long artikelId, long anzahl) throws beans.lager.IllegalerWertException_Exception, beans.lager.UnbekanntesEntityException_Exception, Exception { + try { // Call Web Service Operation + beans.lager.LagerBeanService service = new beans.lager.LagerBeanService(); + beans.lager.LagerBean port = service.getLagerBeanPort(); + port.bucheArtikelAus(artikelId, anzahl); + } catch (Exception ex) { + throw new Exception("Error calling bucheAus Service Method of LagerBeanService", ex); + } + + } + + private double berechneGesamtpreis(long anzahl, double preis) throws Exception { + try { // Call Web Service Operation + beans.bestell.BestellBeanService service = new beans.bestell.BestellBeanService(); + beans.bestell.BestellBean port = service.getBestellBeanPort(); + double result = port.berechneGesamtpreis(anzahl, preis); + System.out.println("Result = "+result); + return result; + } catch (Exception ex) { + throw new Exception("Error calling berechneGesamtpreis Service Method of BestellBeanService", ex); + } + + } + + private double berechneMehrwertSteuer(double preis) throws Exception { + try { // Call Web Service Operation + beans.bestell.BestellBeanService service = new beans.bestell.BestellBeanService(); + beans.bestell.BestellBean port = service.getBestellBeanPort(); + double result = port.berechneMehrwertSteuer(preis); + System.out.println("Result = "+result); + return result; + } catch (Exception ex) { + throw new Exception("Error calling berechneMehrwertSteuer Service Method of BestellBeanService", ex); + } + + } + + private long holeMindestmengeFuerArtikel(long artikelId) throws Exception { + try { // Call Web Service Operation + ws.MindestMengeService service = new ws.MindestMengeService(); + ws.MindestMenge port = service.getMindestMengePort(); + long result = port.holeMindestmengeFuerArtikel(artikelId); + System.out.println("Result = "+result); + return result; + } catch (Exception ex) { + throw new Exception("Error calling holeMindestmengeFuerArtikel Service Method of MindestMengeService", ex); + } + + } + + private String erstelleReport(long kundenId, long artikelAnzahl, beans.artikelmanager.Artikel artikel, double preisOhneMwSt , double MwSt){ + String output = ""; + + output += ""; + output += "

Bestellung

"; + + output += "Kunden-Nr: " + kundenId + "

"; + output += "Artikel" + "

"; + output += " Artikel-Nr: " + artikel.getId() + " Bezeichnung: " + artikel.getBezeichnung() + "

"; + output += "Bestellmenge: " + artikelAnzahl + "

"; + output += "Preis: " + String.format("%.2f", preisOhneMwSt) + "€ + " + String.format("%.2f", MwSt) + "€ MwSt = " + String.format("%.2f" ,(preisOhneMwSt + MwSt)) + "€" + "

"; + output += ""; + + return output; + } + +} \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/Main.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/Main.java new file mode 100644 index 0000000..d95fedf --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/Main.java @@ -0,0 +1,25 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package wsclient; + +import javax.swing.JFrame; + +/** + * + * @author Jan + */ +public class Main { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + JFrame main = new MainWindow(); + main.setVisible(true); + } + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/MainWindow.form b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/MainWindow.form new file mode 100644 index 0000000..10aa90e --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/MainWindow.form @@ -0,0 +1,139 @@ + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/MainWindow.java b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/MainWindow.java new file mode 100644 index 0000000..c05c0ce --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/src/wsclient/MainWindow.java @@ -0,0 +1,159 @@ +/* + * MainWindow.java + * + * Created on 8. Juli 2008, 17:02 + */ + +package wsclient; + +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.swing.JDialog; +import javax.swing.JOptionPane; + +/** + * + * @author Jan + */ +public class MainWindow extends javax.swing.JFrame { + + /** Creates new form MainWindow */ + public MainWindow() { + initComponents(); + } + + /** This method is called from within the constructor to + * initialize the form. + * WARNING: Do NOT modify this code. The content of this method is + * always regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + jLabel1 = new javax.swing.JLabel(); + jLabel2 = new javax.swing.JLabel(); + jLabel3 = new javax.swing.JLabel(); + jSpinnerKundeId = new javax.swing.JSpinner(); + jSpinnerArtikelId = new javax.swing.JSpinner(); + jSpinnerArtikelAnzahl = new javax.swing.JSpinner(); + jButtonBestellungAbschicken = new javax.swing.JButton(); + jLabelOutput = new javax.swing.JLabel(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + jLabel1.setText("Kunden-Id"); + + jLabel2.setText("Artikel-Id"); + + jLabel3.setText("Anzahl"); + + jSpinnerKundeId.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), null, null, Long.valueOf(1L))); + + jSpinnerArtikelId.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), null, null, Long.valueOf(1L))); + + jSpinnerArtikelAnzahl.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), null, null, Long.valueOf(1L))); + + jButtonBestellungAbschicken.setText("Bestellung abschicken"); + jButtonBestellungAbschicken.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonBestellungAbschickenActionPerformed(evt); + } + }); + + jLabelOutput.setText("..."); + jLabelOutput.setVerticalAlignment(javax.swing.SwingConstants.TOP); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(22, 22, 22) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel3) + .addComponent(jLabel2) + .addComponent(jLabel1)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(jSpinnerKundeId) + .addComponent(jSpinnerArtikelId) + .addComponent(jSpinnerArtikelAnzahl, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18)) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(jButtonBestellungAbschicken, javax.swing.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))) + .addGap(158, 158, 158) + .addComponent(jLabelOutput, javax.swing.GroupLayout.PREFERRED_SIZE, 293, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap()) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(24, 24, 24) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel1) + .addComponent(jSpinnerKundeId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel2) + .addComponent(jSpinnerArtikelId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel3) + .addComponent(jSpinnerArtikelAnzahl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jButtonBestellungAbschicken)) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabelOutput, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addContainerGap(102, Short.MAX_VALUE)) + ); + + pack(); + }// //GEN-END:initComponents + + +private void jButtonBestellungAbschickenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBestellungAbschickenActionPerformed + Bestellung b = new Bestellung(); + + try { + + + String output = b.fuehreBestellungDurch((Long) jSpinnerKundeId.getValue(), (Long) jSpinnerArtikelId.getValue(), (Long) jSpinnerArtikelAnzahl.getValue()); + + jLabelOutput.setText(output); + } catch (Exception ex) { + + JOptionPane.showMessageDialog(rootPane, ex.getMessage(), "Fehler beim Bestellvorgang", JOptionPane.ERROR_MESSAGE); + } +}//GEN-LAST:event_jButtonBestellungAbschickenActionPerformed + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new MainWindow().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jButtonBestellungAbschicken; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JLabel jLabelOutput; + private javax.swing.JSpinner jSpinnerArtikelAnzahl; + private javax.swing.JSpinner jSpinnerArtikelId; + private javax.swing.JSpinner jSpinnerKundeId; + // End of variables declaration//GEN-END:variables + +} diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/ArtikelManagerBean/wsdl/localhost_8080/ArtikelManagerBeanService/ArtikelManagerBean.wsdl b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/ArtikelManagerBean/wsdl/localhost_8080/ArtikelManagerBeanService/ArtikelManagerBean.wsdl new file mode 100644 index 0000000..f442156 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/ArtikelManagerBean/wsdl/localhost_8080/ArtikelManagerBeanService/ArtikelManagerBean.wsdl @@ -0,0 +1,227 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/ArtikelManagerBean/wsdl/localhost_8080/ArtikelManagerBeanService/ArtikelManagerBean.xsd_1.xsd b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/ArtikelManagerBean/wsdl/localhost_8080/ArtikelManagerBeanService/ArtikelManagerBean.xsd_1.xsd new file mode 100644 index 0000000..5b22af3 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/ArtikelManagerBean/wsdl/localhost_8080/ArtikelManagerBeanService/ArtikelManagerBean.xsd_1.xsd @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/BestellBean/wsdl/localhost_8080/BestellBeanService/BestellBean.wsdl b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/BestellBean/wsdl/localhost_8080/BestellBeanService/BestellBean.wsdl new file mode 100644 index 0000000..5ad7ab1 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/BestellBean/wsdl/localhost_8080/BestellBeanService/BestellBean.wsdl @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/BestellBean/wsdl/localhost_8080/BestellBeanService/BestellBean.xsd_1.xsd b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/BestellBean/wsdl/localhost_8080/BestellBeanService/BestellBean.xsd_1.xsd new file mode 100644 index 0000000..494ace5 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/BestellBean/wsdl/localhost_8080/BestellBeanService/BestellBean.xsd_1.xsd @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LagerBean/wsdl/localhost_8080/LagerBeanService/LagerBean.wsdl b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LagerBean/wsdl/localhost_8080/LagerBeanService/LagerBean.wsdl new file mode 100644 index 0000000..8bc3ae1 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LagerBean/wsdl/localhost_8080/LagerBeanService/LagerBean.wsdl @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LagerBean/wsdl/localhost_8080/LagerBeanService/LagerBean.xsd_1.xsd b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LagerBean/wsdl/localhost_8080/LagerBeanService/LagerBean.xsd_1.xsd new file mode 100644 index 0000000..7b12c62 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LagerBean/wsdl/localhost_8080/LagerBeanService/LagerBean.xsd_1.xsd @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LieferantBean/wsdl/localhost_8080/LieferantBeanService/LieferantBean.wsdl b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LieferantBean/wsdl/localhost_8080/LieferantBeanService/LieferantBean.wsdl new file mode 100644 index 0000000..683b35d --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LieferantBean/wsdl/localhost_8080/LieferantBeanService/LieferantBean.wsdl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LieferantBean/wsdl/localhost_8080/LieferantBeanService/LieferantBean.xsd_1.xsd b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LieferantBean/wsdl/localhost_8080/LieferantBeanService/LieferantBean.xsd_1.xsd new file mode 100644 index 0000000..bced623 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/LieferantBean/wsdl/localhost_8080/LieferantBeanService/LieferantBean.xsd_1.xsd @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/MindestMengeService/wsdl/localhost_8080/DSI-Andere-Webservices/MindestMengeService.wsdl b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/MindestMengeService/wsdl/localhost_8080/DSI-Andere-Webservices/MindestMengeService.wsdl new file mode 100644 index 0000000..9ebc836 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/MindestMengeService/wsdl/localhost_8080/DSI-Andere-Webservices/MindestMengeService.wsdl @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/MindestMengeService/wsdl/localhost_8080/DSI-Andere-Webservices/MindestMengeService.xsd_1.xsd b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/MindestMengeService/wsdl/localhost_8080/DSI-Andere-Webservices/MindestMengeService.xsd_1.xsd new file mode 100644 index 0000000..3c9c4f3 --- /dev/null +++ b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/WS-Client/xml-resources/web-service-references/MindestMengeService/wsdl/localhost_8080/DSI-Andere-Webservices/MindestMengeService.xsd_1.xsd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/doc/dsi_praktikum_1_web_service_20090115.pdf b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/doc/dsi_praktikum_1_web_service_20090115.pdf new file mode 100644 index 0000000..3bd021c Binary files /dev/null and b/Master/Daten- und Systemintegration/Praktikum/DSI-Praktikum-1_ausgang/doc/dsi_praktikum_1_web_service_20090115.pdf differ -- cgit v1.2.3