IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  JDBC Adapter Define WHERE clause at runtime

    Posted Thu February 20, 2003 04:48 AM

    I want to be able to define the WHERE clause of a JDBC adapter service (SELECT template) at runtime. Take the following SQL statement:

    SELECT * FROM myTable WHERE myField = ?

    I want to map a value on the pipeline to “?”. Is this possible? So far, all I can figure out how to do is hardcode a value for “?” when configuring the adapter service.


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 2.  RE: JDBC Adapter Define WHERE clause at runtime

    Posted Thu February 20, 2003 01:55 PM

    Yes, of course you can. The only thing you need to do is to create a line in the bottom table.
    In the up table, you defined that you wanted a condition on myField to be = to ?.
    In the bottom table, you have add a line to define that you want this first ? to be the myParam parameter which is for example a String (java) and Varchar (sql)
    Then your adapter will have a new input parameter called myParam


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 3.  RE: JDBC Adapter Define WHERE clause at runtime

    Posted Thu February 20, 2003 02:16 PM

    select * from myTable where myField = ?
    In the pipeline, if there is a corresponding field for myField, all you have to do is, in the $dbParamNames field, put the name of the variable to be substituted.

    OR
    select * from myTable where myField = %myField% and select the perform variable substitution checkbox.

    Good Luck.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: JDBC Adapter Define WHERE clause at runtime

    Posted Thu May 23, 2019 04:26 AM

    Hi,

    How to pass null value in the where clause.

    I want to retrieve records having a column with null.

    Regards,
    Chandra


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 5.  RE: JDBC Adapter Define WHERE clause at runtime

    Posted Thu May 23, 2019 08:19 AM

    Please ignore this post. The issue was different one.


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards