21
Introduction Database Connector Thanh Nguyen

Introduction database connector

Embed Size (px)

Citation preview

Page 1: Introduction database connector

Introduction Database Connector

Thanh Nguyen

Page 2: Introduction database connector

Introduction

• The Database connector allows you to connect with almost any Java Database Connectivity (JDBC) relational database with a single interface for the most common database engines

• Run SQL operations on your database, including Select, Insert, Update, Delete, and even Stored Procedures

Page 3: Introduction database connector

Introduction

• The Database connector lets you perform predefined queries or dynamically constructed queries

• Perform multiple SQL requests in a single bulk update

• Rerform Data Definition Language (DDL) requests, that alter the data structure rather than the data itself

Page 4: Introduction database connector

Supported Operations

• Select• Insert• Update • Delete• Stored Procedure• Bulk Execute• DDL operations such as CREATE, ALTER

Page 5: Introduction database connector

Database Connector Global Element Configuration

1. Click a database connector building block that you have included in your flow

Page 6: Introduction database connector

Database Connector Global Element Configuration

2. Select the type of database global element to configure

Page 7: Introduction database connector

Database Connector Global Element Configuration

3. Choose a type of database global element to set up

Page 8: Introduction database connector

Database Connector Global Element Configuration

4. For MySQL database connection, you must fill out these fields in the Global Element Properties screen:• Host• Port• User• Password• Database

Page 9: Introduction database connector

Database Connector Global Element Configuration

5. Specify the database engine driver on the Global Element Properties window

Page 10: Introduction database connector

Database Connector Global Element Configuration

6. At this point, the database connection should be confirmed via Test Connection button. Click OK when confirmed.

7. Back in the properties window ensure a valid operation and query have been specified for the database connector building block(s) before running your app

Page 11: Introduction database connector

Fields That Support MEL Expressions

Generic Derby Oracle MySQL

url user user userdriverClassName

password password password

Properties inside connection-propertieselement

url host database

- driverClassName

instance host

Page 12: Introduction database connector

Fields That Support MEL Expressions

- Properties inside connection-propertieselement

url url

- - driverClassName

driverClassName

- - Properties inside connection-propertieselement

Properties inside connection-propertieselement

Page 13: Introduction database connector

Configuration Details for Database Engines Supported Out of the Box

• Currently, the following database engines are supported out of the box:– Oracle– MySQL– Derby

Page 14: Introduction database connector

Oracle - Required Attributes

Required Attribute UseName Use to define a unique

identifier for the global Database connector element in your application.

Host Name of host that runs the database.

Port Configures just the port part of the DB URL (and leaves the rest of the default DB URL untouched).

Page 15: Introduction database connector

Oracle - Required Attributes

Database Configuration ParametersORConfigure via spring-beanORDatabase URL

Use to define the details needed for your connector to actually connect with your database. When you have completed the configuration, click Test Connection…  to confirm that you have established a valid, working connection to your database.

Required dependencies Click Add File to add the database driver to your project.

Page 16: Introduction database connector

Oracle - Required Attributes

Page 17: Introduction database connector

MySQL - Required AttributesRequired Attribute UseName Use to define a unique identifier

for the global Database connector element in your application.

Database Configuration ParametersORConfigure via spring-beanORDatabase URL

Use to define the details needed for your connector to actually connect with your database. When you have completed the configuration, click Test Connection to confirm that you have established a valid, working connection to your database.

Required dependencies Click Add File to add the database driver to your project.

Page 18: Introduction database connector

MySQL - Required Attributes

Page 19: Introduction database connector

Derby - Required AttributesRequired Attribute Use

Name Use to define a unique identifier for the global Database connector element in your application.

Database Configuration ParametersORConfigure via spring-beanORDatabase URL

Use to define the details needed for your connector to actually connect with your database. When you have completed the configuration, click Test Connection to confirm that you have established a valid, working connection to your database.

Page 20: Introduction database connector

Derby - Required Attributes

Page 21: Introduction database connector

Question and answer