Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

(click on this box to dismiss)

How to return Custom Type from Java stored procedure?


I have a generic method 

public static List<Students> SelectStudents()
List<Students> students = new List<Students>(); // List for save students objects
	//some logic to return 
	return students;

I want to know how can I return the type List<Student> using a Function?

link comment (0) accepted answer
asked 3 years ago
1 Answer
In Java you can serialize any object (List<Student>) to string and return this string to CUBRID. Search for "java serialize object to string". StackOverflow provides a nice example. If you find a better solution, post it below.
link comment (0)
answered 3 years ago

You are either using a very old browser or a browser that is not supported.
In order to browse you need to have one of the following browsers:

Internet Explorer: Mozilla Firefox: Google Chrome: