Uploaded image for project: 'Hibernate ORM'
  1. HHH-8598

Unify CallableStatementSupport and RefCursorSupport

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 4.3.0.Beta5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      org.hibernate.procedure.spi.CallableStatementSupport and org.hibernate.engine.jdbc.cursor.spi.RefCursorSupport share similarities. I'd like to unify them.

      org.hibernate.engine.jdbc.cursor.spi.RefCursorSupport is a Service as part of the registry. Also, part of its contract is to abstract away some Java 8 specific functionality.

      org.hibernate.procedure.spi.CallableStatementSupport is obtained from the Dialect.

      This is a great example of why it would be great to have the ability to define Service deps as the ServiceInitiator level. Not so much for inject purposes, but just for saying that this initiator needs Service-X to be available before its initiateService method it called. The idea here is that is would be great to have the JdbcServices aggregate Service available prior to the call to RefCursorSupportInitiator. This would allow us to consider information from the Dialect as we build the RefCursorSupport.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                steve Steve Ebersole
                Reporter:
                steve Steve Ebersole
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: