MDM Hub Java User Exits

MDM Hub Java User Exits

UserExitContext Class

UserExitContext Class

The UserExitContext class contains the parameters that
Informatica 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!