Not needed stuff
This commit is contained in:
parent
3c39c70f43
commit
e4aad8b597
1 changed files with 6 additions and 6 deletions
|
|
@ -62,25 +62,25 @@ public class Rethink {
|
||||||
else return null;
|
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 {
|
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) {
|
} catch (ClassCastException e) {
|
||||||
e.printStackTrace();
|
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 {
|
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) {
|
} catch (ClassCastException e) {
|
||||||
e.printStackTrace();
|
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 {
|
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) {
|
} catch (ClassCastException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue