Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register


0
(click on this box to dismiss)

How to return Custom Type from Java stored procedure?

Hi,

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 2 years ago
castle79
60
1 Answer
0
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 2 years ago
dba
558




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



Internet Explorer: Mozilla Firefox: Google Chrome: