Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DB-aware controls like with Delphi

 
Omer Can
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I used to program in Delphi (7) and there I had the DB-aware conrtrols like TDBImage, TDBEdit, TDBMemo, TDBRichEdit, and tDBGrid
with properties Datasource and DataField (not with tDBGrid).

With Delphi also comes a non-visible component called TDatasource.

You link toe DB-aware controls with the TDatasource-component (eg DataSource1 as the TDatasource) and the propertie Datasource
of each of the db-aware controls set as DataSource1).

The Datasoure-component on its own, I could link to e.g. Delphis oun TTable or TSQL or 3rd-party controls for eg Firebird, MySQL,
PostgreSQL, SQLite etc.

Now (finally) my question:

Are the controls in JAVA like TDBTextField, TDBTextArea etc with the same or alike property Datasource with which I can link those
directly to the db-engine. If so, where can I download those from (url)?

The advantae to that: the user does not have to worry if the data entered or altered is stored into the db-engine Table-file.
The DB-awere-controls 'tel' the DB-engine to save each entering or altering automatically the moment the uses does these
enterings or alterings.

Thanks for answering in advance...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic