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.


#TechXchangePresenter
 View Only
  • 1.  how to create ,delete,modify collection?

    Posted Mon June 28, 2004 12:54 PM

    hi,I want to delete a collection in the database or delete all documents in a collection,how can I do that using the Tamino API for java?


    #webMethods
    #API-Management
    #webMethods-Tamino-XML-Server-APIs


  • 2.  RE: how to create ,delete,modify collection?

    Posted Mon June 28, 2004 03:03 PM

    Hi,

    You can use TSchemaDefinition3Accessor for deleting (undefine) collection.

    e.g.
    //Get connection
    TConnection connection = TConnectionFactory.getInstance().newConnection(“http://localhost/tamino/mydb”);

    //Get Accessor.
    TSchemaDefinition3Accessor tsd3Accessor = connection.newSchemaDefinition3Accessor( TDOMObjectModel.getInstance() );

    // Undefine collection “temp”
    tsd3Accessor.undefine(“temp”,null);



    Regards,

    Vikram

    Vikram Shinde


    #webMethods-Tamino-XML-Server-APIs
    #API-Management
    #webMethods


  • 3.  RE: how to create ,delete,modify collection?

    Posted Tue June 29, 2004 05:20 AM


    Thanks you very much!
    Best regards,
    GavinZheng


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management