I have a complicated structure (ArrayList of specific Class which inherits other Class) that I use as part of my calculations.
The thing is that sometimes I want to reuse the data inside this structure again in another time (i.e. after 1 week).
I tried to extend current tables or even create a new table but it didn't work out.
I want to find a way to store this data for future using.
I don't mind to store it in the database but only as-is, and not split it to all the variables types.
The code itself it's quite huge but here is a small example of the idea behind the complexity of the structure (The structure is more complicated):
public class A<T extends B> {
private DataTable<T> table = null;
private List<?>[] minimalCommonSets = null;
private Handler[] allHandlers;
}
public class DataTable<T extends TableElement> {
private TableElement[] table;
private int[] size;
}
public abstract class TableElement {
}
public abstract class Handler<T, S> {
}
public class C extends B {
private int N;
private Set<String> S1;
private Set<String> S2;
private List<D> d;
protected E e;
}
private A<C> STORE_IT;
I want to store an instance of A (STORE_IT).