1. Instance variables threadsafe inside MappingSqlQuery? forum.springsource.orgprotected class MyQuery extends MappingSqlQuery { private Object myObj; public MyQuery(DataSource ds, Object obj) { this.myObject = obj; } public Object mapRow(ResultSet rs, int rowNum) throws SQLException { myObject.set(rs); .... ... ... |
2. MappingSqlQuery Connection forum.springsource.orgI am using MappingSqlQuery to execute a query, but inside the method protected Object mapRow(ResultSet rs, int rownum) that I need to implement, I would like to get the same Connection ... |
3. MappingSqlQuery forum.springsource.orgMappingSqlQuery I believe I am misunderstanding something somewhere. In a web app you will execute the same sql, over and over again in lots of different threads but with different parameters. ... |
4. rowMapper or MappingSqlQuery? forum.springsource.orgrowMapper or MappingSqlQuery? Hello, I'm participating in the process of migrating existing DAOs of a web application to use Spring for database interaction. I am not sure which way is more ... |
5. Close connection when using JDBCDAOSupport, MappingSqlQuery forum.springsource.org1. Is this interpretation of the documentation correct? 2. If so, how should I close my Jdbc connections? (or does the JdbcDaoSupport superclass manage this?) |
6. MappingSqlQuery with parameters(Simple question) forum.springsource.orgI would like to do the following query but it fails. select * from table where field like '%?%' where ? is the parameter The problem is that when the parameter ... |
7. MappingSqlQuery with 6 args forum.springsource.orgMappingSqlQuery with 6 args This should be a simple question: How can I execute the following query: select distinct prefs.user_id, up1.value as ae, up2.value as inf, up3.value as ps, up4.value as ... |
8. MappingSqlQuery Question forum.springsource.orgMappingSqlQuery Question Currently I have the following code for my Query public class DrugAlternativeServiceJdbc2 extends JdbcDaoSupport implements DrugAlternativeService { public List retrieveAlternatives(DrugAlternativeRequest request) { DataSource ds = this.getDataSource(); AlternativeQuery aq = ... |
9. Subclassing MappingSqlQuery forum.springsource.orgNov 14th, 2005, 05:51 AM #1 lingan View Profile View Forum Posts Private Message Junior Member Join Date Nov 2005 Posts 15 Subclassing MappingSqlQuery Hi , My need is like this ... |
10. Trouble with MappingSqlQuery Parameters forum.springsource.orgTrouble with MappingSqlQuery Parameters Hello, I've created several MappingSqlQueries for my application, however one doesn't seem to work properly. The only thing that makes it unique is that a single column ... |
11. MappingSqlQuery parameters problem forum.springsource.orgMappingSqlQuery parameters problem Hi, i have this class public class LoginJdbc { protected final Log logger = LogFactory.getLog(getClass()); private DataSource dataSource; /** * @param dataSource The dataSource to set. */ public ... |
12. jdbcTemplate or MappingSqlQuery forum.springsource.orgHi, I am doing small app.Up to now just for getting data frm database i used MappingSqlQuery. I want insert data into database. Whether i should use jdbctemplate or MappingSqlQuery. I ... |
13. Using MappingSqlQuery - Want to return Map of objects intead of List of objects forum.springsource.orgUsing MappingSqlQuery - Want to return Map of objects intead of List of objects Any idea how to return a Map of objects ? The following code returns a List of ... |
14. Passing Null Argument using MappingSqlQuery forum.springsource.orgPassing Null Argument using MappingSqlQuery I am trying to select a row with the following query: SELECT id, name, description, company_id FROM group WHERE name = ? AND company_id = ? ... |
15. MappingSqlQuery, don't need to declareParameter forum.springsource.orgMappingSqlQuery, don't need to declareParameter Hello, I'm having a small problem. I want to pass in a List that contains int values to the mapping class below. I my problem in ... |
16. 1 to many mapping and MappingSqlQuery forum.springsource.orgMaybe this is more a database question, but here goes..... I have a query that returns records with 1 to many mapping. For example, querying for students in a class. Prior ... |
17. MappingSqlQuery Does not works but JdbcTemplate Does forum.springsource.orgSep 27th, 2006, 04:46 PM #1 kevinrs View Profile View Forum Posts Private Message Junior Member Join Date Sep 2006 Posts 1 MappingSqlQuery Does not work, but JdbcTemplate Does Work with ... |
18. Problems with MappingSqlQuery using a PreparedStatement forum.springsource.orgProblems with MappingSqlQuery using a PreparedStatement Hi, I've read some thread about some similar problems with mapping the character ? using MappingSqlQuery. I took some of this code in the example ... |
19. Unable to map query using MappingSqlQuery forum.springsource.orgNov 17th, 2006, 07:12 AM #1 raman_spring View Profile View Forum Posts Private Message Junior Member Join Date Nov 2006 Posts 4 Unable to map query using MappingSqlQuery I am using ... |
20. MappingSqlQuery: LinkedList or ArrayList forum.springsource.orgHi I was just wondering how Spring decides whether to return a LinkedList, or an ArrayList from a MappingSQLQuery. Normally I'm used to my methods (actually written by someone else) returning ... |
21. Parameter list for IN clause in MappingSqlQuery forum.springsource.orgHi, i searched the forum but unfortunately i didn't find a solution. I'm using MappingSqlQueries in my App. Now i have to pass a parameter list (e.g. id's or something similar) ... |
22. MappingSqlQuery : One Parameter used Multiple Times? forum.springsource.orgMappingSqlQuery : One Parameter used Multiple Times? After looking through the docs, I believe the answer to this queston is "no". I figured I would make sure this conclusion was not ... |
23. Sorting records in MappingSqlQuery forum.springsource.orgHi, I have a MappingSqlQuery that reads a data set sorted with an ORDER BY statement in SQL. Yet in the returned linked list, I see that the last element is ... |
24. Exception handling and MappingSqlQuery forum.springsource.org |
25. MappingSqlQuery insert date Oracle forum.springsource.orgHello, How to set an oracle 10.2 date in a mappingSqlQuery during an insert ? Please can you send me a small exemple TY in advance |
26. MappingSqlQuery with a custom ExceptionTranslator? forum.springsource.orgMappingSqlQuery with a custom ExceptionTranslator? I am doing data access with JdbcTemplate and using setExceptionTranslator to set it to a custom exception translator that I have written. I am then using ... |
27. MappingSQLQuery: Change query dynamically forum.springsource.orgMappingSQLQuery: Change query dynamically Hello! i have a class that extends MappingSQLQuery. in this class i have a public method which changes the sql query. im doing this using setSql("new query..."); ... |
28. JDBC MappingSQLQuery Design forum.springsource.orgJDBC MappingSQLQuery Design Hi There I have a project I am developing where I decided to create a seperate class for each SQL query, update and delete. Each query class extends ... |
29. setObject null using MappingSqlQuery forum.springsource.orgsetObject null using MappingSqlQuery This is my first posting to spring forum so I apologize if this is not the right thread. I am using MappingSqlQuery class. I declareParameter as TYPES.CHAR. ... |
30. Issues with SQL statement using MappingSqlQuery : please help.. forum.springsource.orgIssues with SQL statement using MappingSqlQuery : please help.. When I send more than one value in IN bloc I am getting error.With one value it is fine. SQL : Code: ... |
31. Problem with MappingSqlQuery : Help forum.springsource.orgProblem with MappingSqlQuery : Help I have an situation where I can send List |