@SuppressWarnings("rawtypes")
public void execBq(BatchBean bb, BlockingQueue<Map> bq, boolean closeConnetction) {
PreparedStatement pst = null;
try {
conn.setAutoCommit(false);
Long beginTime = System.currentTimeMillis();
pst = conn.prepareStatement(bb.getSql());
int k = bq.size();
for (int i = 1; i <= k; i++) {
Map s = bq.take();
for (int j = 0; j < bb.getParam().length; j++) {
pst.setString(j + 1, (String) s.get(bb.getParam()[j]));
}
pst.addBatch();
if (i % Storage.BUFFER_COUNT == 0 || i == k) {
pst.executeBatch();
conn.commit();