01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2008.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail.rdbms.schema;
07:
08: import java.sql.SQLException;
09:
10: /**
11: *
12: * @author James Leigh
13: */
14: public class ValueBatch extends Batch {
15:
16: public static int total_rows;
17:
18: public static int total_st;
19:
20: private RdbmsTable table;
21:
22: public void setTable(RdbmsTable table) {
23: assert table != null;
24: this .table = table;
25: }
26:
27: public synchronized int flush() throws SQLException {
28: synchronized (table) {
29: int count = super .flush();
30: total_rows += count;
31: total_st += 2;
32: table.modified(count, 0);
33: return count;
34: }
35: }
36:
37: }
|