01: /*
02: * Committer.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.interfaces;
13:
14: /**
15: *
16: * @author support@sql-workbench.net
17: */
18: public interface Committer {
19: /**
20: * The integer value that identifies the fact that no COMMIT statement
21: * at all should be written to the output file
22: */
23: public static final int NO_COMMIT_FLAG = Integer.MIN_VALUE;
24:
25: /**
26: * Define the interval when commits should be send to the DBMS
27: * @param interval the number of statement after which to commit. 0 means each statement
28: */
29: void setCommitEvery(int interval);
30:
31: /**
32: * Never commit anything
33: */
34: void commitNothing();
35:
36: }
|