webMethods

webMethods

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

Collection

  • 1.  Collection

    Posted Fri February 20, 2004 07:42 PM

    Could someone please tell me how can I find out whether a collection name using API for Java is already available in the tamino database or not

    Thank you


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


  • 2.  RE: Collection

    Posted Sat February 21, 2004 08:14 AM

    Package: com.softwareag.tamino.db.API.accessor

    Interfaces: TSchemaDefinition3Accessor

    Method: getCollectionNames()
    Gets an iterator for the list of all collection names referenced by TSD2 schemas.


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


  • 3.  RE: Collection

    Posted Thu March 25, 2004 09:46 AM

    can any one tell me how can i create a collection using tamino API dynamically


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


  • 4.  RE: Collection

    Posted Fri March 26, 2004 10:54 AM

    Hi Nagesh,
    You can use code like this to define a schema. If the schema definition contains a new Collection name, the new Collection will be defined in Tamino.

    TConnectionFactory connectionFactory = TConnectionFactory.getInstance();
    connection = connectionFactory.newConnection( databaseURI );
    accessor = connection.newSchemaDefinition3Accessor(TDOMObjectModel.getInstance());
    //content is a String containing your new Schema, perhaps read from a file...
    xmlObject = TXMLObject.newInstance(content); 
    TResponse response = accessor.define(xmlObject);
    System.out.println("Response: " + response.getReturnValue()); 


    HTH


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


  • 5.  RE: Collection

    Posted Tue March 30, 2004 09:34 AM

    Hi Bill,

    Thank you very much for the help, i have tried and it worked fine.

    I have one more doubt regarding API, i can get document (xml instance in tamino collection) properties (i.e., last modified) using TResponse.getFirstXMLObject().getLastModified()
    So my question is can i add new properties (user defined) and get them using API.

    Thanks in Advance.
    Nagesh


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


  • 6.  RE: Collection

    Posted Tue March 30, 2004 09:43 AM

    Hi all,

    Is it possible to create a collection with in a tamino collection? if so, how will i use tamino API to get sub-collection information?

    Thanks in Advance,
    Nagesh.


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


  • 7.  RE: Collection

    Posted Tue March 30, 2004 09:51 AM

    Hello Nagesh,
    Tamino has a flat collection model.
    You cannot nest collections.

    Best regards
    Walter


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


  • 8.  RE: Collection

    Posted Fri April 02, 2004 10:23 AM

    Regarding API, i can get document properties (i.e., last modified) using TResponse.getFirstXMLObject().getLastModified()

    So my question is can i add new properties (user defined) and get them using API. If so how?


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


  • 9.  RE: Collection

    Posted Mon April 05, 2004 05:00 PM

    Hi Nagesh,

    Basically, there is no provision known so far in Tamino to define “user defined” properties.

    Rahul Roy

    Tamino API for Java
    Software AG (INDIA)


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