diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..2f7896d1d1365eafb0da03d9fe456fac81408487 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +target/ diff --git a/nb-configuration.xml b/nb-configuration.xml new file mode 100644 index 0000000000000000000000000000000000000000..32cfb94d874765828f73f7fa66bcfbf36fbe3fe1 --- /dev/null +++ b/nb-configuration.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project-shared-configuration> + <!-- +This file contains additional configuration written by modules in the NetBeans IDE. +The configuration is intended to be shared among all the users of project and +therefore it is assumed to be part of version control checkout. +Without this configuration present, some functionality in the IDE may be limited or fail altogether. +--> + <properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1"> + <!-- +Properties that influence various parts of the IDE, especially code formatting and the like. +You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up. +That way multiple projects can share the same settings (useful for formatting rules for example). +Any value defined here will override the pom.xml file value but is only applicable to the current project. +--> + <org-netbeans-modules-css-prep.less_2e_mappings>/less:/css</org-netbeans-modules-css-prep.less_2e_mappings> + <org-netbeans-modules-css-prep.less_2e_enabled>false</org-netbeans-modules-css-prep.less_2e_enabled> + <org-netbeans-modules-css-prep.sass_2e_enabled>false</org-netbeans-modules-css-prep.sass_2e_enabled> + <org-netbeans-modules-css-prep.sass_2e_compiler_2e_options/> + <org-netbeans-modules-css-prep.less_2e_compiler_2e_options/> + <org-netbeans-modules-css-prep.sass_2e_mappings>/scss:/css</org-netbeans-modules-css-prep.sass_2e_mappings> + </properties> +</project-shared-configuration> diff --git a/src/main/java/org/s4s/dao/impl/TransactionControl.java b/src/main/java/org/s4s/dao/impl/TransactionControl.java new file mode 100644 index 0000000000000000000000000000000000000000..3124f077f0c3f398907a0b614c8663f8cd051112 --- /dev/null +++ b/src/main/java/org/s4s/dao/impl/TransactionControl.java @@ -0,0 +1,47 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package org.s4s.dao.impl; + +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; +import org.s4s.exceptions.DAOException; +import org.s4s.exceptions.NoSuchUserOrPassword; +import org.s4s.modell.dto.Product; +import org.s4s.modell.dto.User; +import java.sql.*; + +/** + * + * @author Sebastian + */ +public class TransactionControl extends AbstractDatabaseClass{ + + User verkaeufer; + User kaeufer; + Product a; + + ResultSet rs; + + public void createTransaction() throws DAOException{ + try + { + rs = executeQuery("SELECT u.\"artikelid\"" + + " FROM \"ERR\".\"artikel\" u " + + " WHERE u.artikelid = '" + a.getId() + "';"); + + } catch (SQLException ex) + { + throw new DAOException(ex); + } + + + } + + +}