Daniel Hiller
Daniel Hiller

Reputation: 3505

Are there any frameworks for handling database requests in swing applications?

I believe any programmer who has been dealing with database requests in a gui application has run into some or all of the following problems:

What I'd like to know about: are there any frameworks that handle the requirements of handling an ordered set of long running actions (including but not limited to database calls, i.e. calculations) outside the event dispatch thread?

Note: I know of SwingWorker ;-)

Upvotes: 4

Views: 659

Answers (3)

anjanb
anjanb

Reputation: 13925

Naked Objects facilitate a clean domain model and they also have a GUI 2 DB mapping layer -- http://www.nakedobjects.org/home/index.shtml

Upvotes: 2

Rastislav Komara
Rastislav Komara

Reputation: 1721

Such a thing should be found in Netbeans for example. See RequestProcessor. But in simpler cases this is not required. Last time I need something like thread scheduling and control I simply used new concurrency packages included in J5 (I used J6). With its ExecutorFactory-ies you can simply achieve basic control over tasks. You can also use some queues. This PDF can help. The PDF is written in Slovak language but the Single/Multiple task workers are there written in Java ;)

Upvotes: 1

Tom
Tom

Reputation: 56372

I doubt you will find something specific for database requests. You can try to reuse existing generic task scheduling libraries. An example is the Eclipse jobs API. This does not depend on the IDE.

See http://www.eclipse.org/articles/Article-Concurrency/jobs-api.html

Upvotes: 1

Related Questions