AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SQLJ] question to the iterator design

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Stefan Siegl
Guest





PostPosted: Thu Nov 27, 2003 8:18 pm    Post subject: [SQLJ] question to the iterator design Reply with quote



Hello group,

We discussed in a database lecture about SQLJ and saw the iterator
design which can be used if a query returns more than just one record. I
am wondering about the design of this iterator. I mean using the syntax
of SQLJ I define a name and this name can afterwards be used as a class.
So if I say:

#sql iterator MyIterator [...]

I can use the newly created class "MyIterator" afterwards. Isn't it a
bit of slow and difficult to create a class, that the programmer can
give a name? I mean wouldn't it be better to offer a class called
"ResultSet" which contains a List of Record objects which will store the
values (as it is done in JDBC).

Does anyone know why they choose this design? I mean it would be much
more straight forward to use the ResultSet as I have described it. Are
there any benefits in performance?

Thanks in advance,
Stefan

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.