Results 1 to 3 of 3

Thread: Stored Procedure declare parameter.

  1. #1
    Join Date
    Jul 2005
    Posts
    10

    Default Stored Procedure declare parameter.

    Hi all,

    I am a newbie to Spring framework and was facing problem with stored procedures....

    How to declare "in parameter" as well as "in/out parameter" in Spring?

    I am declaring the outParameter as follows
    declareParameter(new SqlOutParameter("ContactName", Types.VARCHAR));

    Can anyone provide me a tutorial for the same?

  2. #2
    Join Date
    Aug 2004
    Posts
    1,110

    Default

    IN/OUT parameters are declared using SqlOutParameter and then providing an entry matching the name in the input parameter Map. IN parameters are declared as SqlParameter and OUT parameters are of course sSqlOutParameters. The order is important and they should be declared "left to right".
    Thomas Risberg
    SpringSource by Pivotal
    http://www.springsource.org

  3. #3
    Join Date
    Jul 2005
    Posts
    10

    Default

    Thanks for the help.
    Can u provide me any url for Spring Tutorial?

Similar Threads

  1. Replies: 7
    Last Post: Jan 7th, 2013, 02:58 PM
  2. Replies: 3
    Last Post: Dec 2nd, 2010, 08:34 AM
  3. Replies: 5
    Last Post: Oct 1st, 2010, 08:00 AM
  4. Replies: 0
    Last Post: May 11th, 2005, 06:11 AM
  5. Transaction Management
    By caverns in forum Data
    Replies: 3
    Last Post: Mar 8th, 2005, 06:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •