There is no build in function to to that, especially when storing the arraylist in just 1 column. You could convert your class A to a string, and separate the data by specific characters, how ever that is not the right way to go.
You need a new database system, something like this:
Your table:
Your Column | Some other Column | and another Column | ArraylistA_id
ArraylistA table:
ArraylistA_id | String1 | String2 | ArraylistB_id
ArraylistB table:
ArraylistB_id | int | double
In this database system the columns "ArraylistA id" and "ArraylistB id", are pointers to other rows in another table. So for example when your arraylistA exists out of the following:
Arraylist A{
{"TEST", "TEST", ArrayListB{{1,1.0}, {2, 2.0}, {3, 3.0}}}
{"HELLO", "HELLO", ArrayListB{{9,9.0}, {8, 8.0}, {7, 7.0}}}
};
Than the records in the sql database would be the following:
Your table:
Your Column | Some other Column | and another Column | ArraylistA_id
1
ArraylistA table:
ArraylistA_id | String1 | String2 | ArraylistB_id
1 TEST TEST 1
2 HELLO HELLO 2
ArraylistB table:
ArraylistB_id | int | double
1 1 1.0
1 2 2.0
1 3 3.0
2 9 9.0
2 8 8.0
2 7 7.0
The point of the complete story is that you never should store an arraylist like this in just one column, you need a proper database system before doing something like this. Made this on my tablet in the train, when i arrive at school i will clean it up a bit.