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: * This contains information to describe a record that was copied in relation
25: * to other records of a table.
26: *
27: */
28: public class RecordEvent extends AbstractCopyEvent {
29:
30: /** the number of the record. This will always be >= 1 */
31: private int recordNumber;
32:
33: /**
34: * the total number of records to be copied from the table this record
35: * belongs to
36: */
37: private int recordCount;
38:
39: /**
40: *
41: * @param aNumber
42: * @param aCount
43: */
44: public RecordEvent(SessionInfoProvider prov, int aNumber, int aCount) {
45: super (prov);
46: recordNumber = aNumber;
47: recordCount = aCount;
48: }
49:
50: /**
51: * @param recordNumber The recordNumber to set.
52: */
53: public void setRecordNumber(int recordNumber) {
54: this .recordNumber = recordNumber;
55: }
56:
57: /**
58: * @return Returns the recordNumber.
59: */
60: public int getRecordNumber() {
61: return recordNumber;
62: }
63:
64: /**
65: * @param recordCount The recordCount to set.
66: */
67: public void setRecordCount(int recordCount) {
68: this .recordCount = recordCount;
69: }
70:
71: /**
72: * @return Returns the recordCount.
73: */
74: public int getRecordCount() {
75: return recordCount;
76: }
77:
78: }
|