Table of Contents

  1. Preface
  2. Introduction to the Informatica Connector Toolkit
  3. Installing and Upgrading the Informatica Connector Toolkit
  4. Building an Adapter
  5. Connection Attributes
  6. Type System
  7. Metadata Objects
  8. Partitioning Capability
  9. Run-time Behavior
  10. Adapter Example: Instagram
  11. Adapter Example: MySQL
  12. Adapter Example: YouTube
  13. Metadata Models
  14. ASO Model
  15. Adapter Project Migration
  16. Frequently Asked Questions

Informatica Connector Toolkit Developer Guide

Informatica Connector Toolkit Developer Guide

Step 2. Define the Connection Attributes

Step 2. Define the Connection Attributes

The connection attributes of an adapter determine how the adapter connects to the data source. Use the Informatica Connector Toolkit to define the connection attributes and specify the libraries required to connect to the data source.
  1. In the Connector Navigator view, right-click the project and select Add Connection.
    The Add Connection dialog box appears.
  2. Enter the connection type name.
  3. Select Add New and enter the category name.
    The category name that you configure corresponds to the connection object category.
  4. Click Next.
    The Connection Attributes page appears.
  5. Click Add to enter each connection attribute.
    The attributes that you configure correspond to the connection object properties. The Add Attribute dialog box appears.
  6. Enter the following properties for the connection attribute:
    Attribute Property
    Description
    Name
    Name of the connection attribute.
    Display Name Display name for the connection attribute.
    Description
    Description of the connection attribute.
    Data Type Data type of the connection attribute.
    Default Value Default value for the attribute.
    Min Length
    Minimum length for the value of the attribute.
    Max Length
    Maximum length for the value of the attribute.
    Encrypted Indicates whether you can encrypt the attribute.
    Mandatory
    Indicates whether a connection attribute requires a value.
    If you set the Mandatory property to true but you do not display the attribute on the connection management user interface, you must set a default value for the attribute.
    Hidden
    Indicates whether you can hide the attribute.
    Has Dependent Fields
    Indicates whether the attribute has dependent fields.
    Allowed Values
    List of values allowed for the attribute.
  7. Click OK.
  8. Click Next.
    The Configure Connection Pages page appears.
    1. Group the connection attributes under one or more connection sections.
    2. To create a new connection section, click Add Section and enter the section name, section title, tool tip, and section description.
    3. To create a new connection page, click Add Page and enter the page name and page description.
    4. To change the order in which connection sections appear in a connection page, use Move Up or Move Down.
  9. Click Next.
    The Configure Libraries page appears.
  10. Click Add to select each library that the adapter requires to connect to the data source.
  11. Click Generate Code.
    After you define the connection attributes, the Informatica Connector Toolkit generates the following Java files:
    • <AdapterName>ConnectInfoAdapter.java
    • <AdapterName>Connection.java
    Update the ConnectInfoAdapter.java file to implement connection validation and attribute dependancies. Update the Connection.java file to implement the methods that open and close connection to the data source.
If you regenerate code for the connection project, the Informatica Connector Toolkit does not regenerate code for the user-exposed source code visible in the Informatica perspective. You have to manually edit the source code and make changes if you add, remove, or modify connection attributes.


Updated May 15, 2019


Explore Informatica Network