Announcement Announcement Module
Collapse
No announcement yet.
Parameters Metadata with NamedParameterJdbcTemplate? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Parameters Metadata with NamedParameterJdbcTemplate?

    Hi everyone,

    Using NamedParameterJdbcTemplate, im looking for cleaner way to, given a SQL command string with named parameters, discover the type of the parameters?

    Example:
    for "SELECT * FROM client WHERE name = :name AND client_id = :client_id", i want to discover the types of ":name" and ":client_id".

    I Know how this can be done with direct JDBC, using PreparedStatement and getParameterMetaData method. But in this way, i lose the named parameters feature.

    Any suggestions?
    Thanks.
Working...
X