Ryan Ransford
Posts: 71
Nickname: rdransfo
Registered: Jul, 2008
|
Ryan Ransford is a Java developer working in the enterprise looking to make the world a better place
|
|
|
|
Spring Note: SqlUpdate
|
Posted: Jan 23, 2011 9:42 AM
|
|
|
This post originated from an RSS feed registered with Agile Buzz
by Ryan Ransford.
|
Original Post: Spring Note: SqlUpdate
Feed Title: Active-Active Configuration
Feed URL: http://active-active.blogspot.com/feeds/posts/default
Feed Description: Active-Active Configuration is a blog about making my place in the enterprise world better. This blog is primarily focused on Java articles, but be prepared to be challenged by posts about dynamic languages, agile tools, and the lighter side of geek culture.
|
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Ryan Ransford
Latest Posts From Active-Active Configuration
|
|
The org.springframework.jdbc.object.SqlUpdate class is another tool that I use a lot. This class encapsulates INSERT, UPDATE, and DELETE queries as beans defined within your application context. In most situations, you will be using the SqlUpdate class as-is with multiple configurations within a DAO's context. Since the class is not abstract, it is quite easy to extend for creating dummy/mock instances for testing.
ITSpringJdbc.java
ITSpringJdbc-context.xml
insert into DUAL (dummy) values (?)
]]>
Read: Spring Note: SqlUpdate
|
|