Database Programming With Ada
Database Programming With Ada
• Projects
• Conclusion
Why Ada for Database Programming?
The Situation in 2001
Begin of 2002
After 6 month of evaluation Ada
Why Ada for Database Programming?
Pro
Contra
Adaoci
GWindows
Konada.Db.Sql + Network
.Rows
GWindows_Extended
.Tables
• Ability to extend our library with new features of the Oracle Call
Interface as soon as possible.
The Database Access Library
Konada.Db.Sql
Adaoci Methods
Create
Konada.Db Management
Bind/Set of Define an Bind
Variables is
Execute Done by the
Sqltype
Library
Fetch
Get
Higher Layers
Application ….
The Database Access Library
Konada.Db.Sql
The Database Access Library
OCI and Ada Tasking
Fetch
T1
Connection Fetch
T2
Fetch
T3
Execute
synchron
T1 T2 T3
The Database Access Library
Rows and Tables
To get rid of Sql
DB
Db Konada.Db.Tables
Table Object
The Database Access Library
Konada.Db.Tables
The Database Access Library
Konada.Db.Tables - Implementation
Tagged Hierarchy
Double linked list
Data Element
…
Data
String
Row Position
export
The User Interface Library
win32 Network
Oracle
Adaoci
GWindows
Konada.Db.Sql + Network
.Rows
GWindows_Extended
.Tables
• Flexible Event-Model
Easy to use
Easy to extend
List_View_Control GWindows
Header-Drag-
Ex_List_View_Control
And-Drop
Icons
Header-Click-Event
GWindows_Extended
…
Konada.Db.Tables - Object
The User Interface Library
Multi Record Control
The User Interface Library
Multi Record Control and Data Container
Konada.Db.Tables
Row Position
rowid
The User Interface Library
Code sample – Simple Single Record Control
The User Interface Library
The Effect of the previous code snippet
Projects
DB
GUI - Maintenance
GUI
Layout
Conclusion
Here is one:
„We like programming in Ada.“