public void addBatch() throws SQLException { if (_logs.isSQLEnabled()) _logs.logSQL("batching " + this, LoggingConnection.this); long start = System.currentTimeMillis(); try { super.addBatch(); if (shouldTrackParameters()) { // make sure our list is initialized if (_paramBatch == null) _paramBatch = new ArrayList(); // copy parameters since they will be re-used if (_params != null) _paramBatch.add(new ArrayList(_params)); else _paramBatch.add(null); } } finally { logTime(start); } }
public void addBatch() throws SQLException { if (_logs.isSQLEnabled()) _logs.logSQL("batching " + this, LoggingConnection.this); long start = System.currentTimeMillis(); try { super.addBatch(); if (shouldTrackParameters()) { // make sure our list is initialized if (_paramBatch == null) _paramBatch = new ArrayList<List<String>>(); // copy parameters since they will be re-used if (_params != null) { List<String> copyParms = new ArrayList<String>(_params); _paramBatch.add(copyParms); } else _paramBatch.add(null); } } finally { logTime(start); } }
public void addBatch() throws SQLException { if (_logs.isSQLEnabled()) _logs.logSQL("batching " + this, LoggingConnection.this); long start = System.currentTimeMillis(); try { super.addBatch(); if (shouldTrackParameters()) { // make sure our list is initialized if (_paramBatch == null) _paramBatch = new ArrayList<List<String>>(); // copy parameters since they will be re-used if (_params != null) { List<String> copyParms = new ArrayList<String>(_params); _paramBatch.add(copyParms); } else _paramBatch.add(null); } } finally { logTime(start); } }
public void addBatch() throws SQLException { if (_logs.isSQLEnabled()) _logs.logSQL("batching " + this, LoggingConnection.this); long start = System.currentTimeMillis(); try { super.addBatch(); if (shouldTrackParameters()) { // make sure our list is initialized if (_paramBatch == null) _paramBatch = new ArrayList<List<String>>(); // copy parameters since they will be re-used if (_params != null) { List<String> copyParms = new ArrayList<String>(_params); _paramBatch.add(copyParms); } else _paramBatch.add(null); } } finally { logTime(start); } }