Originally posted by Cory Max: Gregg Bolinger: It seems as if your classes are private. How exactly does this work? Is that a type-o or am I missing something?
Those are only the stored procedure classes which happen to be inner classes of a public DAO class. DAO methods such as:
public List<Sport> getSports();
actually use the StoredProcedure class. I could have made them anonymous inner classes to the getSports method but that gets nasty and there are more than the one method that might use a specific stored procedure class. But since they are confined to usage within the single DAO (no other DAO needs to GetSports other than the SportDAO) they are private inner classes.
That said, making them each their own public class outside of the DAO class is perfectly valid as well. Its just preference.
Joined: Jul 20, 2005
Ahhh... inner classes. Makes perfect sense. Thanks for the reply Greg.
Karthik Vijayarajan wrote:Thanks Greg.
I tried extending StoredProcedure and it works great.
Can i not specify OUT parameters in JdbcTemplate.update() method. I did look at the documentation but it is not very precise.
use jdbcTemplate().call(....) method.
Gautam Trivedi<br />Software Engineer
subject: Spring :Approach to call Stored Procedures