Add generic DAO with CSV implementation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
qvalentin 2022-04-22 16:41:20 +02:00
parent 868e640ec6
commit a453a01ff9
Signed by: qvalentin
GPG key ID: C979FA1EAFCABF1C
3 changed files with 97 additions and 0 deletions

View file

@ -0,0 +1,16 @@
package persistence;
import persistence.category.CategoryEntity;
import java.util.Set;
import java.util.function.Function;
public interface GenericDAO<T> {
public Set<T> getALl();
void remove(T value);
void add(T value);
}

View file

@ -0,0 +1,10 @@
package persistence.csv;
public interface CSVSerializable {
static String seperator = ",";
String[] getHeaders();
String toCSVString();
}