New Features
Enhanced Features

JDBC form for setting the connection URL

The Connection URL is important information for generating persistable code and setting file to interactive with database in DB Visual Architect (DB-VA). The Connection URL contains many different kind of information for connect with database such as hostname, port number, database name, service name etc…. On the other hand, different database may have different Connection URL format then user will type wrong format easily. The DB-VA provide the Connection URL Form for each database, user can follow the field to type in information therefore it can reduce the format and typo error.

Configuring Connection URL

The following is an example to show you that how to use the Connection URL form and Single Connection URL field to configure the MySQL database in DB-VA.

  1. Create a new project call ConfigConnectionURL.
    create_new_proj.jpg

  2. Select ToolsObject-Relational Mapping(ORM)Database Configuration… on menu bar.
    config_db_menu.jpg

  3. Select Java Language and MySQL database as default.
    init_db_config_dialog.jpg

    The Driver file maybe empty when you select MySQL database. You can click the button select_driver_bt.jpg to select the JDBC driver or click download_bt.jpgto download the MySQL driver by DB-VA.
    For more detail : Configuring Database

  4. Enter the Connection URL information.
    1. Select the Connection URL Form. Enter the hostname, port number and database name. When you type information in the form, the single Connection URL field will update by Connection URL information at the same time.
      config_conn_url_form.jpg

    2. Select the single Connection URL field. You can enter the Connection URL information according to the Connection URL format String (jdbc:mysql://<host_name>:<port_number>/<database_name>). It also will synchronize the information in the Connection URL form immediately.
      config_single_conn_url_form.jpg

      • Different database may have different format Connection URL. For example HSQL(In-process) driver only require the database file name. When you select HSQL (In-process) driver, the DB-VA update the Connection URL form, and then you can enter the request information for the database.
        config_hsql_conn_url.jpg

  5. Finish to type in the Connection URL information, you can press the Test Connection button. It will report your information success or not to connect your selected database but you must notify you have been selected the driver file and enter the correct information for database.
    test_connection.jpg

  6. You also can select the other language (.NET and PHP); they also provide the form to enter the connection database information.
    • For .NET(Connection string):
      dot_net_conn_url.jpg

    • For PHP(DNS):
      php_conn_url.jpg

  7. After you configure the database, you can export the schema or generate the persistable code and setting for your selected default database.
 
 
Last modified: 2006/03/30 10:40
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory