01: /*
02: * Copyright (C) 2005 Rob Manning
03: * manningr@users.sourceforge.net
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: */
19: package net.sourceforge.squirrel_sql.plugins.dbcopy.event;
20:
21: import net.sourceforge.squirrel_sql.plugins.dbcopy.SessionInfoProvider;
22:
23: /**
24: * Contains info about a table that is about to be copied. The table is one
25: * of possibly a set of tables to be copied.
26: */
27: public class TableEvent extends AbstractCopyEvent {
28:
29: /** the number of the table in the set. 1 indicates the first table */
30: private int tableNumber;
31:
32: /** the total number of tables in the set. This will be >= 1 */
33: private int tableCount;
34:
35: /** the name of the table to be copied */
36: private String tableName;
37:
38: public TableEvent(SessionInfoProvider provider) {
39: super (provider);
40: }
41:
42: /**
43: * @param tableNumber The tableNumber to set.
44: */
45: public void setTableNumber(int tableNumber) {
46: this .tableNumber = tableNumber;
47: }
48:
49: /**
50: * @return Returns the tableNumber.
51: */
52: public int getTableNumber() {
53: return tableNumber;
54: }
55:
56: /**
57: * @param tableCount The tableCount to set.
58: */
59: public void setTableCount(int tableCount) {
60: this .tableCount = tableCount;
61: }
62:
63: /**
64: * @return Returns the tableCount.
65: */
66: public int getTableCount() {
67: return tableCount;
68: }
69:
70: /**
71: * @param tableName The tableName to set.
72: */
73: public void setTableName(String tableName) {
74: this .tableName = tableName;
75: }
76:
77: /**
78: * @return Returns the tableName.
79: */
80: public String getTableName() {
81: return tableName;
82: }
83:
84: }
|