After reading through the documentation it doesn't seem like passing an array to a stored procedure is possible:
Java stored procedure:
public class UpdateData
public static void NewDataAdded(List newIds, long speciesId) throws SQLException
Connection conn = null;
Derby Stored Procedure….
CREATE PROCEDURE gt.newdataadded(IN newIds ??????, IN speciesid BIGINT)
PARAMETER STYLE JAVA MODIFIES SQL DATA LANGUAGE JAVA EXTERNAL NAME
There doesn't seem to be a datatype to support this. I tried setting the datatype to BIGINT but when I called the procedure it would throw an error 'ERROR 42X50: No method was found that matched the method call….'
Is there a way to do this?