About Relational Database Access

VisualAge for Java supports access to relational databases through JDBC. You can access relational data in an applet or application by using the Data Access beans on the Visual Composition Editor beans palette.

The Data Access beans are a feature of Visual Age for Java. To use the Data Access beans, you must first add the Data Access Beans feature to your workspace.

Three beans provide core function for accessing databases:

Additional beans provide user interfaces to invoke methods on the core beans and to help display output from the database:

All of the beans except for DBNavigator are non-visual.

The Select, Modify, and ProcedureCall beans have properties that contain connection aliases and SQL specifications. These properties allow you to connect to relational databases and access data. You can also use parameterized SQL statements with the Select, Modify, and ProcedureCall beans.

Using Data Access Beans at Run Time

After you develop a program that contains the Data Access beans you can deploy it for use. VisualAge for Java provides several files that are used with these programs at run time. These files, which are in root/eab/runtime20, where root is the VisualAge for Java root directory, contain the class files, in several formats, for the classes in the IBM Data Access Beans project. The classpath should be modified to contain one of these files when a program is deployed.

The files are:

In addition, VisualAge for Java provides two run time directories. These directories contain the same classes that are in the JAR or ZIP file. The directories are automatically added to the classpath when VisualAge for Java is installed. This allows programs that use Data Access beans to run on the machine in which VisualAge for Java is installed without further modification to the classpath.

The directories are:


Related procedures
Accessing Relational Data