SQLParameterSource « Database « Spring Q&A;

Home
Spring Q&A;
1.Annotation
2.AOP
3.Batch
4.Bean
5.Binding
6.Context
7.Core
8.Database
9.Development
10.EJB
11.Exception
12.File
13.GWT
14.Integration
15.Internationalization
16.Java EE
17.Job
18.JPA
19.JSF
20.Message
21.MVC
22.MVC Controller
23.Object
24.Remote
25.Roo
26.Security
27.Session
28.Spring Tool Suite
29.Struts
30.Test
31.Thread
32.Transaction
33.Web
34.Web Service
35.XML
Spring Q&A; » Database » SQLParameterSource 

1. SQLParameterSource causes "nvalid column type"...why?    forum.springsource.org

JdbcTemplate jt = new JdbcTemplate(dataSource); String sqlStr = "DELETE FROM mytab WHERE someval = :someval"; MapSQLParameterSource p = new MapSQLParameterSource().addValue("someval", 1234); jt.update(sqlStr, p);

2. invalid column type error for char type using SqlParameterSource    forum.springsource.org

invalid column type error for char type using SqlParameterSource Hello, I'm doing batch insert as given below. I have a char field in the object. I think because of that field, ...

3. Can we use SqlParameterSource for executing procedure.    forum.springsource.org

Can we use SqlParameterSource for executing procedure. Hi All, Defined procedure & execution as follows: Code: private class EmployeeProcedure extends StoredProcedure{ public EmployeeProcedure(){ super(); setDataSource(jdbcTemplate.getDataSource()); setSql(CREATE_EMPLOYEE_PROC); declareParameter(new SqlOutParameter("return_employee_id", Types.VARCHAR)); declareParameter(new SqlParameter("emp_name", ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.