Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28827 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
public class BrandWiseActivatedModel {
4
 
5
	private String brand;
6
	private long lmsQty;
7
	private long lms;
8
	private long mtdQty;
9
	private long mtd;
10
	private long lmtdQty;
11
	private long lmtd;
12
 
13
	public BrandWiseActivatedModel(String brand, long lmsQty, long lms, long mtdQty, long mtd, long lmtdQty,
14
			long lmtd) {
15
		super();
16
		this.brand = brand;
17
		this.lmsQty = lmsQty;
18
		this.lms = lms;
19
		this.mtdQty = mtdQty;
20
		this.mtd = mtd;
21
		this.lmtdQty = lmtdQty;
22
		this.lmtd = lmtd;
23
	}
24
 
25
	public String getBrand() {
26
		return brand;
27
	}
28
 
29
	public void setBrand(String brand) {
30
		this.brand = brand;
31
	}
32
 
33
	public long getLms() {
34
		return lms;
35
	}
36
 
37
	public void setLms(long lms) {
38
		this.lms = lms;
39
	}
40
 
41
	public long getLmsQty() {
42
		return lmsQty;
43
	}
44
 
45
	public void setLmsQty(long lmsQty) {
46
		this.lmsQty = lmsQty;
47
	}
48
 
49
	public long getMtd() {
50
		return mtd;
51
	}
52
 
53
	public void setMtd(long mtd) {
54
		this.mtd = mtd;
55
	}
56
 
57
	public long getMtdQty() {
58
		return mtdQty;
59
	}
60
 
61
	public void setMtdQty(long mtdQty) {
62
		this.mtdQty = mtdQty;
63
	}
64
 
65
	public long getLmtd() {
66
		return lmtd;
67
	}
68
 
69
	public void setLmtd(long lmtd) {
70
		this.lmtd = lmtd;
71
	}
72
 
73
	public long getLmtdQty() {
74
		return lmtdQty;
75
	}
76
 
77
	public void setLmtdQty(long lmtdQty) {
78
		this.lmtdQty = lmtdQty;
79
	}
80
 
81
	@Override
82
	public int hashCode() {
83
		final int prime = 31;
84
		int result = 1;
85
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
86
		result = prime * result + (int) (lms ^ (lms >>> 32));
87
		result = prime * result + (int) (lmsQty ^ (lmsQty >>> 32));
88
		result = prime * result + (int) (lmtd ^ (lmtd >>> 32));
89
		result = prime * result + (int) (lmtdQty ^ (lmtdQty >>> 32));
90
		result = prime * result + (int) (mtd ^ (mtd >>> 32));
91
		result = prime * result + (int) (mtdQty ^ (mtdQty >>> 32));
92
		return result;
93
	}
94
 
95
	@Override
96
	public boolean equals(Object obj) {
97
		if (this == obj)
98
			return true;
99
		if (obj == null)
100
			return false;
101
		if (getClass() != obj.getClass())
102
			return false;
103
		BrandWiseActivatedModel other = (BrandWiseActivatedModel) obj;
104
		if (brand == null) {
105
			if (other.brand != null)
106
				return false;
107
		} else if (!brand.equals(other.brand))
108
			return false;
109
		if (lms != other.lms)
110
			return false;
111
		if (lmsQty != other.lmsQty)
112
			return false;
113
		if (lmtd != other.lmtd)
114
			return false;
115
		if (lmtdQty != other.lmtdQty)
116
			return false;
117
		if (mtd != other.mtd)
118
			return false;
119
		if (mtdQty != other.mtdQty)
120
			return false;
121
		return true;
122
	}
123
 
124
	@Override
125
	public String toString() {
126
		return "BrandWiseActivatedModel [brand=" + brand + ", lms=" + lms + ", lmsQty=" + lmsQty + ", mtd=" + mtd
127
				+ ", mtdQty=" + mtdQty + ", lmtd=" + lmtd + ", lmtdQty=" + lmtdQty + "]";
128
	}
129
 
130
}