This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Utility methods for handling dates | |
@class Dates | |
@static | |
*/ | |
var Dates = (function($) { | |
"use strict"; | |
/** Lets you know if a supplied date is a Monday |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Dates = (function($) { | |
"use strict"; | |
return { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a simplest solution. Consider a batch size like 1000 | |
* and insert queries in the batches of 1000 queries at a time. | |
*/ | |
String sql = "insert into employee (name, city, phone) values (?, ?, ?)"; | |
Connection connection = new getConnection(); | |
PreparedStatement ps = connection.prepareStatement(sql); | |
final int batchSize = 1000; |