Database Connection Wizard

This wizard consists of two tabs: Basic properties and Advanced properties

In the Basic properties tab of the Database connection wizard, you must specify the name of the connection, type your User name, your access Password and URL of the database connection (hostname, database name or other properties) or JNDI. You can also decide whether you want to encrypt the access password by checking the checkbox. You need to set the JDBC specific property; you can use the default one, however, it may not do all that you want. By setting JDBC specific you can slightly change the behaviors of the connection such as different data type conversion, getting auto-generated keys, etc.

Database connection is optimized due to this attribute. JDBC specific adjusts the connection for the best co-operation with the given type of database.

You can also select some built-in connections. Now the following connections are built in CloudConnect: Derby, Firebird, Microsoft SQL Server (for Microsoft SQL Server 2008 or Microsoft SQL Server 2000-2005 specific), MySQL, Oracle, PostgreSQL, Sybase, and SQLite. After selecting one of them, you can see in the connection code one of the following expressions: database="DERBY", database="FIREBIRD", database="MSSQL", database="MYSQL", database="ORACLE", database="POSTGRE", database="SYBASE", or database="SQLITE", respectively.

[Important]Important

The sun.jdbc.odbc.JdbcOdbcDriver driver should only be used as the last resort. It is not a standard way of connecting to a database. Choose it only if other direct JDBC drivers do not work. Moreover, mind using a proper ODBC version which suits your CloudConnect - either 32 or 64 bit.

When creating a new database connection, you can choose to use an existing one (either internal and external) that is already linked to the graph by selecting it from the Connection list menu. You can also load some external (non-linked) connection from connection configuration file by clicking the Load from file button.

Database Connection Wizard

Figure 33.4. Database Connection Wizard


All attributes will be changed in a corresponding way.

If you want to use some other driver (that is not built-in), you can use one of the Available drivers. If the desired JDBC driver is not in the list, you can add it by clicking the Plus sign located on the right side of the wizard ("Load driver from JAR"). Then you can to locate the driver and confirm its selection. The result can look as follows:

Adding a New JDBC Driver into the List of Available Drivers

Figure 33.5. Adding a New JDBC Driver into the List of Available Drivers


If necessary, you can also add another JAR to the driver classpath (Add JAR to driver classpath). For example, some databases may need their license be added as well as the driver.

You can also add some property (Add user-defined property).

Note that you can also remove a driver from the list (Remove selected) by clicking the Minus sign.

As was mentioned already, CloudConnect already provides following built-in JDBC drivers that are displayed in the list of available drivers. They are the JDBC drivers for Derby, Firebird, Microsoft SQL Server 2008, MySQL, Oracle, PostgreSQL, SQLite, and Sybase databases.

You can choose any JDBC driver from the list of available drivers. By clicking any of them, a connection string hint appears in the URL text area. You only need to modify the connection. You can also specify JNDI.

[Important]Important

Remember that CloudConnect supports JDBC 3 drivers and higher.

Once you have selected the driver from the list, you only need to type your username and password for connecting to the database. You also need to change the "hostname" to its correct name. You must also type the right database name instead of the "database" filler word. Some other drivers provide different URLs that must be changed in a different way. You can also load an existing connection from one of the existing configuration files. You can set up the JDBC specific property, or use the default one, however, it may not do all that you want. By setting JDBC specific you can slightly change the selected connection behavior such as different data type conversion, getting auto-generated keys, etc.

Database connections are optimized based on this attribute. JDBC specific adjusts the connection for the best co-operation with the given type of database.

In addition to the Basic properties tab desribed above, the Database connection wizard also offers the Advanced properties tab. If you switch to this tab, you can specify some other properties of the selected connection: