20 lines
506 B
Java
20 lines
506 B
Java
package DB;
|
|
|
|
|
|
public abstract class Table {
|
|
static protected String tableName;
|
|
static protected String check;
|
|
protected String checkValue;
|
|
|
|
protected <T> T get(Class<T> cl, String value) {
|
|
return DB.get(cl, tableName, value, check, checkValue);
|
|
}
|
|
|
|
protected boolean set(String value, String newValue) {
|
|
return DB.set(tableName, value, newValue, check, checkValue);
|
|
}
|
|
|
|
public boolean delete() {
|
|
return DB.delete(tableName, check, checkValue);
|
|
}
|
|
}
|