Skip to content

Commit

Permalink
added reflection and removed some comments and to dos
Browse files Browse the repository at this point in the history
  • Loading branch information
adamllu committed Jan 21, 2024
1 parent 5f9ed5c commit a77726f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/de/buw/se4de/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ public void start(Stage stage) {
try {
pair = new Datenbankmodifications().datesWithDetails("jdbc:h2:./src/main/resources/FUFA", showing_Income);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
ListView<String> listView = new ListView<>();
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/de/buw/se4de/Datenbankmodifications.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public String getGreeting(String url) throws Exception {

// Creates Database after the Requirements Ausgabe-Eingabe, Betrag, Kategorie
// und eine Notiz
// ToDo Datum:
String createQ = "CREATE TABLE IF NOT EXISTS Konto"
+ "(ID INT PRIMARY KEY AUTO_INCREMENT(1,1) NOT NULL, EINGABEAUSGABE VARCHAR, WERT DOUBLE, KATEGORIE VARCHAR(255), NOTIZ VARCHAR(255), DATUM DATE)";
stmt.executeUpdate(createQ);
Expand Down Expand Up @@ -54,7 +53,6 @@ public void addGreeting(String url, String art, double wert, String notiz, Strin

// Creates Database after the Requirements Ausgabe-Eingabe, Betrag, Kategorie
// und eine Notiz
// ToDo Datum:
String createQ = "CREATE TABLE IF NOT EXISTS Konto"
+ "(ID INT PRIMARY KEY AUTO_INCREMENT(1,1) NOT NULL, EINGABEAUSGABE VARCHAR, WERT DOUBLE, KATEGORIE VARCHAR(255), NOTIZ VARCHAR(255), DATUM DATE)";
stmt.executeUpdate(createQ);
Expand Down Expand Up @@ -176,7 +174,6 @@ public Pair<Integer, String[]> datesWithDetails(String url, Boolean showing_Inco
// = dateResultSet.getRow();
}
catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Expand Down
14 changes: 0 additions & 14 deletions app/src/main/java/de/buw/se4de/Eingaben.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,25 +169,11 @@ public static void display () {
ErrorText.setText("Bitte korrekten Betrag eingeben");
return;
}
/*
test = (Boolean)money_parse_test(betrag.getText(), geld_betrag_d).getKey();
if (!test){
ErrorText.setText("Bitte geben Sie einen gültigen Betrag an");
return;
}
*/

//wenn die Werte nicht stimmen, funktioniert das einfügen nicht
try {
//Damit wir für die Datenbank ein Datums Format haben
//SimpleDateFormat dateFormat = new SimpleDateFormat("DD-MM-YYYY");
//Date date = dateFormat.parse(dateStringDay);
Calendar calendar = Calendar.getInstance();
/*
int day = Integer.parseInt(dateStringDay);
int month = Integer.parseInt(dateStringMonth)-1;
int year = Integer.parseInt(dateStringYear);
calendar.set(year, month,1);*/
test = calendar_test(calendar, Integer.parseInt(dateStringDay), Integer.parseInt(dateStringMonth), Integer.parseInt(dateStringYear));
if (!test){
ErrorText.setText("Bitte geben Sie ein gültiges Datum an");
Expand Down
Binary file added doc/Reflection.pdf
Binary file not shown.

0 comments on commit a77726f

Please sign in to comment.