πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #450

About QueryDataSet Component

#450
From: nebula
Date: Fri, 09 Sep 2005 14:47
10 lines
1474 bytes
Hello:
I am new to JBuilder and trying to explore this beautiful IDEοΏ½s strengths by examples. However, I am trying to write a simple program which allows the user to enter any query into the program. 
If I were not using the QueryDataSet component in this case then the code segment should look like this:

String query;
query = textArea.getText();
ResultSet rs = statement.executeQuery(query);

My question is how I can use the QueryDataSet component so that I can supply my own queries to the component at run time. Is there any way to manipulate the QueryDataSet component using the visual designer in this case? Can anyone help?
Technical Details
Message-ID: <4321a094$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.news2me.com!peer01.west.cox.net!cox.net!pd7cy1no!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,87c896edf100c98d,start
X-Google-Attributes: gid1073da,public
X-Google-Language: ENGLISH,ASCII
From: "nebula" <nebula007@gmail.com>
Sender: "nebula" <nebula007@gmail.com>
Reply-To: "nebula" <nebula007@gmail.com>
Subject: About QueryDataSet Component
Newsgroups: borland.public.jbuilder.database
X-User-Info: 203.112.203.155     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4321a094$1@newsgroups.borland.com>
Date: 9 Sep 2005 07:47:48 -0700
X-Trace: newsgroups.borland.com 1126277268 207.105.83.66 (9 Sep 2005 07:47:48 -0700)
Lines: 11
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.news2me.com!peer01.west.cox.net!cox.net!pd7cy1no!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail