Subversion Repositories SmartDukaan

Rev

Rev 28797 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28755 amit.gupta 1
package com.spice.profitmandi.dao.model;
2
 
3
import com.spice.profitmandi.dao.enumuration.fofo.ApplicableServiceType;
4
import com.spice.profitmandi.dao.enumuration.fofo.PartnerStatusType;
5
 
6
public class FinanceServicesModel {
7
 
8
	private int fofoId;
9
	private PartnerStatusType partnerStatusType;
10
	private ApplicableServiceType applicableType;
11
	private boolean active; 
12
	private int brandServiceId;
13
	private int serviceId;
14
	private String brand;
15
	private String name;
16
 
17
 
18
 
19
 
20
	public ApplicableServiceType getApplicableType() {
21
		return applicableType;
22
	}
23
 
24
	public void setApplicableType(ApplicableServiceType applicableType) {
25
		this.applicableType = applicableType;
26
	}
27
 
28
	public boolean isActive() {
29
		return active;
30
	}
31
 
32
	public void setActive(boolean active) {
33
		this.active = active;
34
	}
35
 
36
	public int getFofoId() {
37
		return fofoId;
38
	}
39
 
40
	public void setFofoId(int fofoId) {
41
		this.fofoId = fofoId;
42
	}
43
 
44
	public PartnerStatusType getPartnerStatusType() {
45
		return partnerStatusType;
46
	}
47
 
48
	public void setPartnerStatusType(PartnerStatusType partnerStatusType) {
49
		this.partnerStatusType = partnerStatusType;
50
	}
51
 
52
	public int getBrandServiceId() {
53
		return brandServiceId;
54
	}
55
 
56
	public void setBrandServiceId(int brandServiceId) {
57
		this.brandServiceId = brandServiceId;
58
	}
59
 
60
	public int getServiceId() {
61
		return serviceId;
62
	}
63
 
64
	public void setServiceId(int serviceId) {
65
		this.serviceId = serviceId;
66
	}
67
 
68
	public String getBrand() {
69
		return brand;
70
	}
71
 
72
	public void setBrand(String brand) {
73
		this.brand = brand;
74
	}
75
 
76
	public String getName() {
77
		return name;
78
	}
79
 
80
	public void setName(String name) {
81
		this.name = name;
82
	}
83
 
84
	@Override
85
	public int hashCode() {
86
		final int prime = 31;
87
		int result = 1;
88
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
89
		result = prime * result + brandServiceId;
90
		result = prime * result + fofoId;
91
		result = prime * result + ((name == null) ? 0 : name.hashCode());
92
		result = prime * result + ((partnerStatusType == null) ? 0 : partnerStatusType.hashCode());
93
		result = prime * result + serviceId;
94
		return result;
95
	}
96
 
97
	@Override
98
	public boolean equals(Object obj) {
99
		if (this == obj)
100
			return true;
101
		if (obj == null)
102
			return false;
103
		if (getClass() != obj.getClass())
104
			return false;
105
		FinanceServicesModel other = (FinanceServicesModel) obj;
106
		if (brand == null) {
107
			if (other.brand != null)
108
				return false;
109
		} else if (!brand.equals(other.brand))
110
			return false;
111
		if (brandServiceId != other.brandServiceId)
112
			return false;
113
		if (fofoId != other.fofoId)
114
			return false;
115
		if (name == null) {
116
			if (other.name != null)
117
				return false;
118
		} else if (!name.equals(other.name))
119
			return false;
120
		if (partnerStatusType == null) {
121
			if (other.partnerStatusType != null)
122
				return false;
123
		} else if (!partnerStatusType.equals(other.partnerStatusType))
124
			return false;
125
		if (serviceId != other.serviceId)
126
			return false;
127
		return true;
128
	}
129
 
130
 
131
 
132
	@Override
133
	public String toString() {
134
		return "FinanceServicesModel [fofoId=" + fofoId + ", partnerStatusType=" + partnerStatusType
135
				+ ", applicableType=" + applicableType + ", active=" + active + ", brandServiceId=" + brandServiceId
136
				+ ", serviceId=" + serviceId + ", brand=" + brand + ", name=" + name + "]";
137
	}
138
 
139
	public FinanceServicesModel(int fofoId, PartnerStatusType partnerStatusType, ApplicableServiceType applicableType,
140
			boolean active, int brandServiceId, int serviceId, String brand, String name) {
141
		super();
142
		this.fofoId = fofoId;
143
		this.partnerStatusType = partnerStatusType;
144
		this.applicableType = applicableType;
145
		this.active = active;
146
		this.brandServiceId = brandServiceId;
147
		this.serviceId = serviceId;
148
		this.brand = brand;
149
		this.name = name;
150
	}
151
 
152
 
153
 
154
}