Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17230

Make org.springframework.jdbc.datasource.DataSourceTransactionManager extendable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Data:JDBC, Transaction
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Make org.springframework.jdbc.datasource.DataSourceTransactionManager extendable

      I need to change how this class does begin, commit and rollback transaction due to a legacy sybase database (do "Begin transaction" rather than "Set chained mode on").
      Ideally I should be able to extend the class and override doBegin(), doCommit() and doRollback(), but because the inner class DataSourceTransactionObject is private this is not possible.

      Suggjested solution:
      Make inner class DataSourceTransactionObject proteced so it is accessible for subclasses.

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            kenh Ken Rune Helland
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 23 weeks, 6 days ago