Announcement Announcement Module
Collapse
No announcement yet.
SimpleJdbcCall Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SimpleJdbcCall

    A SimpleJdbcCall can be instantiated using a dataSource in the constructor

    SimpleJdbcCall simpleJdbcCall = new SimpleJdbcCall(DataSource datasource)

    The example of usage from the Spring Framework Documentation also instantiates a new SimpleJdbcTemplate with the same datasource.

    I don't see anywhere where the template is used. Does the SimpleJdbcCall work independently of the template?

  • #2
    SimpleJdbcCall uses a JdbcTemplate internally. If you pass in a DataSource in the constructor it will create a new instance of a JdbcTemplate to use. If you pass in a pre-configured JdbcTemplate then it will use that instead.

    The JdbcTemplate is used in the methods compileInternal and executeCallInternal via the getJdbcTemplate() method.

    Comment


    • #3
      Thanks Trisberg. I'm new to Spring and really appreciate your help.

      Comment

      Working...
      X