Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DSRequest is missing javadocs for setDSTransaction()

    Hi Isomorphic,

    in the StandaloneDataSourceUsage-docs you have
    Transactions

    In standalone mode, transactions cannot be automatically initiated with the HTTP request lifecyle, however you can still manually initiate and commit transations (note, only available with a Power or better license). To do so, create a DSTransaction object and associated each DSRequest with it via dsRequest.setDSTransaction(). At the end of processing, call DSTransaction.complete() to ensure commits and rollbacks are executed.

    Usage Example:

    DSTransaction dst = new DSTransaction();
    DSRequest req1 = new DSRequest("myDataSource", "update");
    req1.setDSTransaction(dst);
    // Set values and criteria
    dst.registerRequest(req1);
    but serverside DSRequest does not have javadocs for setDSTransaction(). Could you add it?

    Thank you & Best regards
    Blama

    #2
    Yup, we'll fix this.

    The JavaDoc (that exists but was omitted from the build) just says: "Sets a DSTransaction to be associated with this request. The request will be added to the transaction and processed as a part of the transaction."

    Comment


      #3
      We've now sorted out the documentation for setDsTransaction() as well as added an alias method setDSTransaction(). Should be available in the next nightly or thereabout.

      Comment


        #4
        Hi Isomorphic,

        thanks for adding the docs.

        Best regards
        Blama

        Comment

        Working...
        X