Not needed stuff

This commit is contained in:
GregTCLTK 2020-01-12 01:08:38 +01:00
parent 3c39c70f43
commit e4aad8b597
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67

View file

@ -62,25 +62,25 @@ public class Rethink {
else return null;
}
public void update(String table, String value, String what, String whatvalue) {
public void update(String table, String where, String what, String value) {
try {
r.table(table).get(value).update(r.hashMap(what, whatvalue)).run(conn);
r.table(table).get(where).update(r.hashMap(what, value)).run(conn);
} catch (ClassCastException e) {
e.printStackTrace();
}
}
public void update(String table, String value, String what, int whatvalue) {
public void update(String table, String where, String what, int value) {
try {
r.table(table).get(value).update(r.hashMap(what, whatvalue)).run(conn);
r.table(table).get(where).update(r.hashMap(what, value)).run(conn);
} catch (ClassCastException e) {
e.printStackTrace();
}
}
public void update(String table, String value, String what, boolean whatvalue) {
public void update(String table, String where, String what, boolean value) {
try {
r.table(table).get(value).update(r.hashMap(what, whatvalue)).run(conn);
r.table(table).get(where).update(r.hashMap(what, value)).run(conn);
} catch (ClassCastException e) {
e.printStackTrace();
}