My question has to do with storing arrays and ArrayLists in SQLite. I have an Object Course as follows:
public class Course {
private String name;
private ArrayList<Tee> tees;
which contains the ArrayList of Tee where Tee looks like this:
public class Tee {
private String Name;
private int Slope;
private double Rating;
private int[] Par={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
private int[] HCP={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
Each Course has a number of Tees associated with it and each Tee contains 2 integer arrays. I want to store a list of Courses in a SQLite database. Each row of the database will represent a Course and contain the Course object data. I have researched this and I find either too little or too much information to be helpful.
I think I need to use a JSON object or a BLOB to convert the ArrayLists to something that can be stored in SQLite, but I can't seem to find the way to convert an int array into such a thing (BLOB or JSON Object or JSON Array?) and then the subsequent list of Tees into another thing (BLOB, etc.)