I want to send a List from java to Oracle procedure. Forexample, There is a school and the school has a list of students. Also, the students have a list of lectures. I create a list of lectures, and a list of students who has the list of lectures, and a school has a list of the students.
The Lectures.
ArrayList<String> lecture1 = new ArrayList<String>();
lecture1.add("Mat");
lecture1.add("physics");
ArrayList<String> lecture2 = new ArrayList<String>();
lecture2.add("English");
lecture2.add("Spanish");
ArrayList<String> lecture3 = new ArrayList<String>();
lecture3.add("Germany");
lecture3.add("French");
The list of lectures.
ArrayList<ArrayList<String>> lectureList1 = new ArrayList<ArrayList<String>>();
lectureList1.add(lecture1);
lectureList1.add(lecture3);
ArrayList<ArrayList<String>> lectureList2 = new ArrayList<ArrayList<String>>();
lectureList2.add(lecture2);
lectureList2.add(lecture3);
And the list of students who have lectures.
ArrayList<ArrayList<String>> StudentList = new ArrayList<ArrayList<String>>();
StudentList.addAll(lectureList2);
StudentList.addAll(lectureList2);
ArrayList<ArrayList<String>> StudentList2 = new ArrayList<ArrayList<String>>();
StudentList2.addAll(lectureList1);
StudentList2.addAll(lectureList2);
And the school
ArrayList<ArrayList<ArrayList<String>>> school = new ArrayList<ArrayList<ArrayList<String>>>();
school.add(StudentList2);
school.add(StudentList);
i want to send "school" to an oracle procedure. However I couldn't send a list directly. Oracle library allow to send array but I want to send list.
How can I do this operation? Could you help me.
Thanks.