Table of Contents

Search

  1. Preface
  2. Part 1: Introduction
  3. Part 2: Configuring Hub Console Tools
  4. Part 3: Building the Data Model
  5. Part 4: Configuring the Data Flow
  6. Part 5: Executing Informatica MDM Hub Processes
  7. Part 6: Configuring Application Access
  8. Appendix A: MDM Hub Properties
  9. Appendix B: Viewing Configuration Details
  10. Appendix C: Row-level Locking
  11. Appendix D: MDM Hub Logging
  12. Appendix E: Table Partitioning
  13. Appendix F: Collecting MDM Environment Information with the Product Usage Toolkit
  14. Appendix G: Glossary

UserExitContext Class

UserExitContext Class

The UserExitContext class contains the parameters that
MDM Hub
to the user exits.
The UserExitContext class passes the following parameters to the user exits:
batchJobRowid
Job ID for the batch job. The UserExitContext class passes the BatchJobRowid parameter to all user exits during batch processes.
connection
Database connection that the MDM Hub process uses.
stagingTableName
Source table for the load job. The UserExitContext class passes the stagingTableName parameter during the load and stage process.
tableName
Name of the table that the MDM Hub process uses.
The following code shows the UserExitContext class:
package com.informatica.mdm.userexit; import java.sql.Connection; /** * Represents the hub context that is passed to the user exit interfaces. * This is a placeholder for data that is applicable to all user exits. * */ public class UserExitContext { String jobRowid; String tablName; String stagingTablName; Connection conn; /** * See the corresponding {@link #setBatchJobRowid(String) setter} method for details. * * @return the rowid of the batch job */ public String getBatchJobRowid() { return this.jobRowid; } /** * See the corresponding {@link #setTableName(String) setter} method for details. * * @return the name of the table used in the hub process */ public String getTableName() { return this.tablName; } /** * See the corresponding {@link #setDBConnection(String) setter} method for details. * * @return the database connection used in the hub process */ public Connection getDBConnection() { return this.conn; } /** * Set the rowid of the batch job in the context. This is applicable to batch jobs only. * * @param batchJobRowid the rowid of the batch job */ public void setBatchJobRowid(String batchJobRowid) { this.jobRowid = batchJobRowid; } /** * Set the name of the table used in the hub process. * * @param tableName the name of the table */ public void setTableName(String tableName) { this.tablName = tableName; } /** * See the corresponding {@link #setStagingTableName(String) setter} method for details. * * @return the name of the staging table used in the hub load and stage process */ public String getStagingTableName() { return this.stagingTablName; } /** * Set the name of the staging table used in the context. This is applicable to load and stage process. * * @param stagingTableName the name of the staging table */ public void setStagingTableName(String stagingTableName) { this.stagingTablName = stagingTableName; } /** * Set the database connection in the context. * * @param connection the database connection used in the hub process */ public void setDBConnection(Connection connection) { this.conn = connection; } }

0 COMMENTS

We’d like to hear from you!