Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-899

Start and stop sessions on Java API

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Kohn Release
    • None
    • CPS-Core
    • None

      Use database transactions backed by sessions.

       

      Sessions should be opened and closed by the client wherein the transactions inside these sessions handle all queries to the database with control of when to commit the changes.

      • Do we need to store/return session Ids?
        • where to store
          • in memory
      • Where in CPS  should the sessions be called from?
        • starting session?
          • cpsDataPersistenceService
          • no parameters

       

      A/C

      • POC
      • Unit tests
      • Agree with the team where Util class is implemented and called from
      • Demo to team with use cases of the methods

       Out of scope

      • Which methods should be overloaded with SessionID?
        • for anchor locking purpose
          • cps-ri
            • queryDataNodes?
            • getFragmentByXpath?
      • exceptions
      • session lifetime
      • Transactions are usually ended by 'commit()' so all queries will be added when this is called 
        • rollback on a previous uncommitted query?

       

            emaclee Lee Anjella Macabuhay
            emaclee Lee Anjella Macabuhay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: