Uploaded image for project: 'iBatis for Java [READ ONLY]'
  1. iBatis for Java [READ ONLY]
  2. IBATIS-416

Ability to build SqlMapClient programmatically without SqlMapConfig.xml file

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3.0
    • None
    • None
    • None

    Description

      I've looked over Spring's support for iBatis and I observed that I am required to have the SqlMapConfig.xml file. It'd be nice if SqlMapClientImpl and/or SqlMapExecutorDelegate had javabean get/set properties so that this could be programatically constructed (particularly via Spring), thus not requiring the SqlMapConfig.xml file. At first inspection, it would seem that the delegate class is already good for this purpose because it has quite a few get/sets, but then I look at your SqlMapConfigParser class and see the special way that, for example, defaultStatementTimeout is handled, is not workable for external programatic configuration. That's just one example. In order to enhance Spring to not need this xml file, it'll need to dynamically generate it in-memory to hand it to the builder. Clearly a hack.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: