Subversion Repositories SmartDukaan

Rev

Rev 23338 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23338 Rev 30122
Line 17... Line 17...
17
	private String createTimestamp;
17
	private String createTimestamp;
18
	private String activeTimestamp;
18
	private String activeTimestamp;
19
	private String expireTimestamp;
19
	private String expireTimestamp;
20
	private int createdBy;
20
	private int createdBy;
21
	private Set<Integer> retailerIds;
21
	private Set<Integer> retailerIds;
22
	private Map<Integer, String> itemStringMap = new HashMap<>();
22
	private Map<Integer, String> catalogStringMap = new HashMap<>();
23
	public int getSchemeId() {
23
	public int getSchemeId() {
24
		return schemeId;
24
		return schemeId;
25
	}
25
	}
26
	public void setSchemeId(int schemeId) {
26
	public void setSchemeId(int schemeId) {
27
		this.schemeId = schemeId;
27
		this.schemeId = schemeId;
Line 96... Line 96...
96
		return retailerIds;
96
		return retailerIds;
97
	}
97
	}
98
	public void setRetailerIds(Set<Integer> retailerIds) {
98
	public void setRetailerIds(Set<Integer> retailerIds) {
99
		this.retailerIds = retailerIds;
99
		this.retailerIds = retailerIds;
100
	}
100
	}
-
 
101
 
101
	public String getRetailerIdsString(){
102
	public String getRetailerIdsString() {
102
		Set<String> stringRetailerIds = new HashSet<>();
103
		Set<String> stringRetailerIds = new HashSet<>();
103
		if(!retailerIds.isEmpty()){
104
		if (!retailerIds.isEmpty()) {
104
			for(int retailerId : retailerIds){
105
			for (int retailerId : retailerIds) {
105
				stringRetailerIds.add(String.valueOf(retailerId));
106
				stringRetailerIds.add(String.valueOf(retailerId));
106
			}
107
			}
107
		}
108
		}
108
		return String.join("\n", stringRetailerIds);
109
		return String.join("\n", stringRetailerIds);
109
	}
110
	}
110
	
111
 
111
	public Map<Integer, String> getItemStringMap() {
112
	public Map<Integer, String> getCatalogStringMap() {
112
		return itemStringMap;
113
		return catalogStringMap;
113
	}
114
	}
114
	
115
 
115
	public void setItemStringMap(Map<Integer, String> itemStringMap) {
116
	public void setCatalogStringMap(Map<Integer, String> integerStringMap) {
116
		this.itemStringMap = itemStringMap;
117
		this.catalogStringMap = integerStringMap;
117
	}
118
	}
118
	
119
	
119
	/*public String getItemIdsString(){
120
	/*public String getItemIdsString(){
120
		Set<String> stringItemIds = new HashSet<>();
121
		Set<String> stringItemIds = new HashSet<>();
121
		if(!itemIds.isEmpty()){
122
		if(!itemIds.isEmpty()){
Line 130... Line 131...
130
	public String toString() {
131
	public String toString() {
131
		return "SchemeModel [schemeId=" + schemeId + ", name=" + name + ", description=" + description + ", schemeType="
132
		return "SchemeModel [schemeId=" + schemeId + ", name=" + name + ", description=" + description + ", schemeType="
132
				+ schemeType + ", amountType=" + amountType + ", amount=" + amount + ", startDateTime=" + startDateTime
133
				+ schemeType + ", amountType=" + amountType + ", amount=" + amount + ", startDateTime=" + startDateTime
133
				+ ", endDateTime=" + endDateTime + ", createTimestamp=" + createTimestamp + ", activeTimestamp="
134
				+ ", endDateTime=" + endDateTime + ", createTimestamp=" + createTimestamp + ", activeTimestamp="
134
				+ activeTimestamp + ", expireTimestamp=" + expireTimestamp + ", createdBy=" + createdBy
135
				+ activeTimestamp + ", expireTimestamp=" + expireTimestamp + ", createdBy=" + createdBy
135
				+ ", retailerIds=" + retailerIds + ", itemStringMap=" + itemStringMap + "]";
136
				+ ", retailerIds=" + retailerIds + ", catalogStringMap=" + catalogStringMap + "]";
136
	}
137
	}
137
	
138
	
138
}
139
}