db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <j...@kewlstuff.co.za>
Subject Re: How to return an array of String in a Java routine?
Date Sat, 31 May 2008 12:01:14 GMT

  ----- Original Message ----- 
  From: sin(EaTing), 
  To: Derby Discussion 
  Sent: Saturday, May 31, 2008 5:26 AM
  Subject: How to return an array of String in a Java routine?


  Hi,

  I want to return an array of Strings from a Java routine. How could I create the procedure
declaration and definition.
      This is a little vague
      String[] maybe?
      Or mabe you asking how to make a record holder? not sure
  Or if possible could I create my own ResultSet in my Java routine, and manually insert rows
into that ResultSet?

      Try a disconnected recordset
      Google for CachedRowSetImpl
      You can create a cached recordset, add remove records without the dB and later resync
with the dB if you want to.

  Good Luck

  On this site you may find some code to steal
  ---------------------------------------------------------------------------
  HARBOR : http://www.kewlstuff.co.za/index.htm
  The most powerful application server on earth.
  The only real POJO Application Server.
  See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
  ---------------------------------------------------------------------------
Mime
View raw message