Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
s4s
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Jeremy Pinzauti (Archived)
s4s
Commits
47d7bfd3
Commit
47d7bfd3
authored
7 years ago
by
Sebastian Knoblauch
Browse files
Options
Downloads
Patches
Plain Diff
TranscationControl hinzugefügt
parent
7d660bcc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
nb-configuration.xml
+23
-0
23 additions, 0 deletions
nb-configuration.xml
src/main/java/org/s4s/dao/impl/TransactionControl.java
+47
-0
47 additions, 0 deletions
src/main/java/org/s4s/dao/impl/TransactionControl.java
with
71 additions
and
0 deletions
.gitignore
0 → 100644
+
1
−
0
View file @
47d7bfd3
target/
This diff is collapsed.
Click to expand it.
nb-configuration.xml
0 → 100644
+
23
−
0
View file @
47d7bfd3
<?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>
This diff is collapsed.
Click to expand it.
src/main/java/org/s4s/dao/impl/TransactionControl.java
0 → 100644
+
47
−
0
View file @
47d7bfd3
/*
* 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
);
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment