01: /*
02: * CopyTask.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.sql.wbcommands;
13:
14: import java.sql.SQLException;
15: import workbench.db.WbConnection;
16: import workbench.sql.StatementRunnerResult;
17: import workbench.storage.RowActionMonitor;
18: import workbench.util.ArgumentParser;
19:
20: /**
21: *
22: * @author support@sql-workbench.net
23: */
24: public interface CopyTask {
25: boolean init(WbConnection source, WbConnection target,
26: StatementRunnerResult result, ArgumentParser cmdLine,
27: RowActionMonitor monitor) throws SQLException;
28:
29: void copyData() throws SQLException, Exception;
30:
31: boolean isSuccess();
32:
33: CharSequence getMessages();
34:
35: void cancel();
36: }
|