how to take an array from a DB
If I have a resultset I can use the method .getArray(int) to get an SQL array corresponding to the (int) column. And if I use the method .Array() to the SQLArray I got an Object that represente the Java-array.
But what I must do to convert this Object to an int[] or a String[]?
if I made
Object dati = resultset.getArray(1).getArray
it throws an exception java.lang.UnsupportedOperationException
but if I use
String [] dati = resultset.getArray(1).getArray
the JBuilder5 give me: incompatible types; found: java.lang.Object, required: java.lang.String[] at line 75, column 48

