To invoke the mining flow, the generated Java class must contain the following execute method:
public void execute(Connection connection) throws SQLException {...}
The caller must provide a JDBC connection and the generated class is then invoking the mining flow's SQL statements over that connection.
If your mining flow contains variables, these variables appear as additional parameters of the execute method.
The Data warehousing in Db2 Design Studio contains the Eclipse Java Development tools (JDT). For details about the JDT, please refer to Java Development User Guide.
Before you begin
To generate a Java Bean, follow these steps:
The generated Java Bean is opened in the Java Editor.
Assuming you specified "MBAMiningFlow" as the class name and your mining flow contains three variables (Year, Modelname and Productgroup), the following execute method is generated in your Java Bean:

Example
The following simplified code fragment shows how your application can use the mining flow bean:
