there is a switch you have to set when querying, I believe it is a boolean
that sets the resultset to scrollable.

-----Original Message-----
From: Gustavo Pistoia [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 7:18 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Is it working QueryResults.size() ?



Hi!

size() of QueryResults throws the following exception:

JZ0BT: The last() method is not supported for ResultSets of type
TYPE_FORWARD_ONLY.
        at egalar.util.Connection.getCount(Connection.java:186)
        at egalar.modelo.ModeloObjeto.getCount(ModeloObjeto.java:89)
        at
egalar.tests.TestModeloRecurso.testRecurso(TestModeloRecurso.java:59)
        at egalar.tests.AllTests.main(AllTests.java:53)

Any idea?
Thanks.

______________________________________________
Ing. Gustavo Rafael Pistoia
CDA Informática S.A.
TE: 4343-5200.
Int (6329) 4566.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to