From 499af7d28de43645d3988f08265b5768fcfcd5d3 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 28 Mar 2019 22:41:52 +0100 Subject: [PATCH] Adding remove Methoden --- src/de/warking/hunjy/MySQL/Schematic.java | 4 ++++ src/de/warking/hunjy/MySQL/SchematicMember.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/de/warking/hunjy/MySQL/Schematic.java b/src/de/warking/hunjy/MySQL/Schematic.java index 361cc8b..e2d374f 100644 --- a/src/de/warking/hunjy/MySQL/Schematic.java +++ b/src/de/warking/hunjy/MySQL/Schematic.java @@ -130,4 +130,8 @@ public class Schematic { SchemType = schemType; updateDB(); } + + public void remove(){ + sql.update("DELETE FROM Schematic WHERE SchemOwner = " + SchemOwner + " AND SchemName = '" + SchemName + "'"); + } } diff --git a/src/de/warking/hunjy/MySQL/SchematicMember.java b/src/de/warking/hunjy/MySQL/SchematicMember.java index 5e3e99f..b1edeaf 100644 --- a/src/de/warking/hunjy/MySQL/SchematicMember.java +++ b/src/de/warking/hunjy/MySQL/SchematicMember.java @@ -103,4 +103,8 @@ public class SchematicMember { public int getMember() { return Member; } + + public void remove(){ + sql.update("DELETE FROM Schematic WHERE SchemOwner = " + SchemOwner + " AND SchemName = '" + SchemName + "' AND Member = '" + Member + "'"); + } }