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

csev csev at umich.edu
Wed Jul 20 06:34:54 PDT 2011


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/20110720/fa79517b/attachment.html 


More information about the sakai-dev mailing list