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
Expand all | Collapse all

Urgent : Java Code : Convert string To object

  • 1.  Urgent : Java Code : Convert string To object

    Posted Mon October 25, 2010 05:31 PM

    Hello All,

    Can anybody help me with the java code to convert string to object?
    i have requirement to convert string to object and then insert into DB

    so i am looking for java code in webMethods which usually convert input string to object?

    Appreciate your quick response!

    • RJ

    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Urgent : Java Code : Convert string To object

    Posted Tue October 26, 2010 12:25 AM

    A String is an object. It’s class is java.lang.String.

    Do you mean you need to save a string to a DB CLOB or BLOB? The JDBC adapter and proper JDBC driver will do the right thing for you (you’ll need the right versions of both).


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Urgent : Java Code : Convert string To object

    Posted Tue October 26, 2010 01:55 PM

    Hi RGJ, like Rod toll you String is an object, like others data types. I try to understand you and I think you mean about string to bytes or some kind of data that have an asterisk icon. If I’m in right way you have differents stringTo…

    stringToBytes (WmPublic package)
    stringToStream (PSUtilities package)
    stringToBigDecimal (I’ll can post this code)
    stringToBoolean (I’ll can post this code)
    stringToDouble (I’ll can post this code)
    stringToInteger (I’ll can post this code)
    stringToLong (I’ll can post this code)

    Check what you need and let me know.
    Regards.
    Alex


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services