[Building Sakai] Sakai BasicSQLService - Can we add dbUpdate() Methods?

Steve Swinsburg steve.swinsburg at gmail.com
Wed Jul 20 15:43:31 PDT 2011


It would be nice to be able to do this with the Spring Annotations so we don't need the XML wiring at all.  I think for that to happen the Sakai data source needs to be configured to support them. 

Cheers,
Steve

Sent from my iPad

On 20/07/2011, at 23:34, csev <csev at umich.edu> wrote:

> 
> On Jul 20, 2011, at 12:32 AM, Steve Swinsburg wrote:
> 
>> Here's the wiring from the archetype, find the bean labelled DAO.
>> https://source.sakaiproject.org/contrib//swinsburg/sakai-maven-archetype/archetype/trunk/src/main/resources/archetype-resources/pack/src/webapp/WEB-INF/components.xml
> 
> That is more understandable - I will try to translate that into declarative Java code instead of XML wiring for my initial testing.
> 
>> Then if your data is properly typed you can do:
>> 
>> getJdbcTemplate().update(SOME_STATEMENT,
>> 	new Object[]{t.getName(), t.getDescription()}
>> );
> 
> Nice - Whew.  My data is already properly typed.
> 
> /Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110721/e207e5ea/attachment.html 


More information about the sakai-dev mailing list