Introduction database connector
-
Upload
cong-thanh-nguyen -
Category
Technology
-
view
105 -
download
0
Transcript of Introduction database connector
Introduction Database Connector
Thanh Nguyen
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
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
Supported Operations
• Select• Insert• Update • Delete• Stored Procedure• Bulk Execute• DDL operations such as CREATE, ALTER
Database Connector Global Element Configuration
1. Click a database connector building block that you have included in your flow
Database Connector Global Element Configuration
2. Select the type of database global element to configure
Database Connector Global Element Configuration
3. Choose a type of database global element to set up
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
Database Connector Global Element Configuration
5. Specify the database engine driver on the Global Element Properties window
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
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
Fields That Support MEL Expressions
- Properties inside connection-propertieselement
url url
- - driverClassName
driverClassName
- - Properties inside connection-propertieselement
Properties inside connection-propertieselement
Configuration Details for Database Engines Supported Out of the Box
• Currently, the following database engines are supported out of the box:– Oracle– MySQL– Derby
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).
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.
Oracle - Required Attributes
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.
MySQL - Required Attributes
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.
Derby - Required Attributes
Question and answer