JDBC Datasource

A Java Database Connectivity (JDBC) datasource is a datasource that supports reading of data using JDBC and provides SQL query builder.

To use the DataSource Wizard, right-click on the folder where the JDBC datasource is to be created. The list of available actions will appear. Select the “Add” option, then the “Datasource” from the sub-options that appear.

The DataSource Wizard will appear. For JDBC datasource, there are four steps:

  • Select datasource type
  • Define datasource details
  • Define schema
  • Define security option

Select Datasource Type

In the first DataSource Wizard page, select “JDBC” from the list of available options, then click on the “Next” button.

Define Datasource Details

In this second page, the details of the JDBC datasource need to be defined.

Field Description Mandatory
Name Name of JDBC datasource. Yes
Description Brief description of JDBC datasource. No
Connection Poll Defines the connection to the JDBC source. Yes

The mandatory fields must be filled, else an error message will appear in the page with a red dot and the “Next” button will not be enabled.

Fill in the fields as required and click on the “Next” button.

Define Schema

In the next page, the schema of the JDBC datasource need to be defined.

TODO

TODO

Security Option

The last page in the wizard for the JDBC datasource allows you to set the security options for the datasource.

There are three options.

Type Description
Read Only When selected and saved, the next time a user opens this datasource, the user will not be able to edit any details of the datasource (such as name, description and column names).
Hide Details When selected and saved, the next time when this datasource is opened, the user will only be able to see the name and description of the datasource.
Encrypted This is to be used with either Read Only or Hide Details options or both.
Checking the checkbox will prompt the user to enter a password, then re-enter to confirm the password (both password must be the same). After this is done, if another user would like to edit any selections, he will need to enter the password.

By default, none of the options are selected. Select the options are desired. More than one option can be selected. If “Encrypted” is selected, provide a password in the pop-up dialog box. Click on the “Finish” button to complete the process.

The new datasource will appear in the repository on the left.

You can change the security option of the datasource through the DataSource Wizard by clicking on the “Properties” icon at the Top Row in the Workspace after the datasource is selected. The third page in the DataSource Wizard allows you to change the security options.