org.springframework.jdbc.object.StoredProcedure is an abstract class, although it may be allowed to be used as a concrete class after the jira change SPR-3898 [SPR-3987] #8667
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Celal Ziftci opened SPR-3987 and commented
After the following change: http://opensource.atlassian.com/projects/spring/browse/SPR-3898
StoredProcedure class doesn't need to be abstract. If it were to be a concrete class, we could put it entirely into the config file.
Below is an example;
If this is not seen as appropriate, then adding a concrete implementation (which does absolutely nothing, just an empty concrete implementation that extends StoredProcedure) would also allow us to do the same. Then in the code, we would do:
StoredProcedure sp = ( StoredProcedure ) _context.getBean( "storedProc" );
Map inParams = new HashMap();
inParams.put( "intData", 5 );
Map spResults = sp.execute( inParams );
Object outParam = spResults.get( "outParam" );
Object result = spResults.get( "resultSet1" );
Affects: 2.0.6, 2.1 M4, 2.5 RC1
Referenced from: commits 4145c29, 2855e5c, 8fdc57e
The text was updated successfully, but these errors were encountered: