What is the use of this spring class BatchPreparedStatementSetter?

Can anyone give me short description about his spring class

org.springframework.jdbc.core.BatchPreparedStatementSetter

(JavaDoc API Link)

Answers


It's used for bulk insertion of many rows at once.

This code will illustrate how it's used.

Take a good look at importEmployees method, and everything should become clear.


Need Your Help

getting nil:NilClass when scoping dates in Rails

ruby-on-rails ruby date scoping

I'm a bit dumfounded - getting an 'undefined method `each' for nil:NilClass' error.

Given a lat/lng coordinate, calculate the min and max lat/lng values for a 10 km area

google-maps latitude-longitude

Lets say I have a lat lng coordinate and I want to place that at the center of a square that is 10km wide and then get the minimum lat/lng and maximum lat/lng.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.