Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7534

Cleanup the execute methods of HibernateBaseStore and provides ways to execute potentially failling SQL silently

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 4.0-milestone-1
    • 3.4
    • Storage
    • None
    • Unknown

    Description

      Deprecate
      public boolean beginTransaction(boolean withTransaction, XWikiContext context)
      public boolean beginTransaction(SessionFactory sfactory, boolean withTransaction, XWikiContext context)
      in favor of
      public boolean beginTransaction(SessionFactory sfactory, XWikiContext context)

      Deprecate
      public void endTransaction(XWikiContext context, boolean commit, boolean withTransaction)
      public <T> T execute(XWikiContext context, boolean bTransaction, boolean doCommit, HibernateCallback<T> cb)
      in favor of
      public <T> T execute(XWikiContext context, boolean doCommit, HibernateCallback<T> cb)
      and add new method
      public <T> T failSafeExecute(XWikiContext context, boolean doCommit, HibernateCallback<T> cb)

      Deprecate
      public <T> T executeRead(XWikiContext context, boolean bTransaction, HibernateCallback<T> cb) throws XWikiException
      in favor of
      public <T> T executeRead(XWikiContext context, HibernateCallback<T> cb) throws XWikiException
      and add new method
      public <T> T failSafeExecuteRead(XWikiContext context, HibernateCallback<T> cb)

      Deprecate
      public <T> T executeWrite(XWikiContext context, boolean bTransaction, HibernateCallback<T> cb)
      in favor of
      public <T> T executeWrite(XWikiContext context, HibernateCallback<T> cb) throws XWikiException
      and add new method
      public <T> T failSafeExecuteWrite(XWikiContext context, HibernateCallback<T> cb)

      Attachments

        Activity

          People

            softec Denis Gervalle
            softec Denis Gervalle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: