aspose file tools*
The moose likes Object Relational Mapping and the fly likes DB-aware controls like with Delphi Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "DB-aware controls like with Delphi" Watch "DB-aware controls like with Delphi" New topic
Author

DB-aware controls like with Delphi

Omer Can
Greenhorn

Joined: Apr 09, 2011
Posts: 5
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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DB-aware controls like with Delphi