Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  Buy Now
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

Scrolling cursor support?
2006-09-20 07:02:41.0
Hello everybody,

we have a problem using your Access JDBC driver:

String url = "jdbc:access:/DRIVE:/PATH/FILE.mdb";
String user = "sa";
String password = "";
Connection con = DriverManager.getConnection(url, user, password);
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,


ResultSet rs = getResultSet();
rs.absolute(r + 1); //ERROR OCCURS HERE
return rs.getObject(c + 1);

java.sql.SQLException: Please move the cursor to a data row first!
at Source)
at Source)
at Source)
at Source)
[my class where the error occurs]

Any idea?

Re:Scrolling cursor support?
HXTT Support
2006-09-20 07:14:01.0
>Scrolling cursor support?

>ResultSet rs = getResultSet();
>rs.absolute(r + 1); //ERROR OCCURS HERE
>return rs.getObject(c + 1);
You should use
if(rs.absolute(r + 1)){
return rs.getObject(c + 1);
//.... do your other operation. Now you're here

Re:Re:Scrolling cursor support?
2006-09-21 01:39:06.0
Thanks for your response!

Doesn't work. The table has round about 40.000 entries, but the record occurs not on every record.
I use my own TableModel and the methods rs.absolute() and rs.getObject() are called in the getValueAt(int r, int c) (in the TableModel) by the JTable. I have tested your code, it didn't help.
What else can I do?

Sincerly yours,
Re:Re:Re:Scrolling cursor support?
HXTT Support
2006-09-21 22:42:47.0
>What else can I do?
Recurred and supported. Please download the latest package.
Re:Re:Re:Re:Scrolling cursor support?
2006-09-22 05:41:59.0
Thanks! I've downloaded the latest packages and tested it on a MDB file with 42.000 records and round about 25 columns. It works now, but the performance is horrible slow :-( Scrolling in the JTable from the first record downwards takes about 1 minute...

Re:Re:Re:Re:Re:Scrolling cursor support?
HXTT Support
2006-09-22 05:54:42.0
We will try to quicker it soon.
Re:Re:Re:Re:Re:Re:Scrolling cursor support?
HXTT Support
2006-09-22 07:42:41.0
BTW, if you use ResultSet.setFetchSize(60000), you will find it become quicker.

Because MDB isn't record oriented, absolute need to do some caluculation so that it's slower to use absolute method. We will try to complement cache code to quicker it.
Re:Re:Re:Re:Re:Re:Re:Scrolling cursor support?
HXTT Support
2006-09-24 00:29:39.0
>Scrolling in the JTable from the first record downwards takes about 1 minute...
Please download the latest package, which have quicken that ResultSet.absolute function.

Search Key   Search by Last 50 Questions


Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap