/* * Distributable under LGPL v3 license. * See terms of license at https://github.com/Yunfeng/schotel/blob/master/LICENSE */ package cn.buk.hotel.sc; import cn.buk.common.Page; import cn.buk.util.DateUtil; import java.util.Date; /** * Created by william on 2014-11-19. */ public class HotelSearchCriteria { private int cityId; private Date checkInDate; private Date checkOutDate; private String hotelName=""; private Page page = new Page(); private String star=""; private int districtId; private int zoneId; @Override public String toString() { return Integer.toString(cityId) + "," + DateUtil.formatDate(checkInDate, "yyyy-MM-dd") + "," + DateUtil.formatDate(checkOutDate, "yyyy-MM-dd")+ "," + hotelName + "," + Integer.toString(page.getPageNo()) + "," + Integer.toString(page.getPageSize()) + "," + star + "," + Integer.toString(districtId) + "," + Integer.toString(zoneId); } public Page getPage() { return page; } public void setPage(Page page) { this.page = page; } public String getStar() { return star; } public void setStar(String star) { this.star = star; } public int getDistrictId() { return districtId; } public void setDistrictId(int districtId) { this.districtId = districtId; } public int getZoneId() { return zoneId; } public void setZoneId(int zoneId) { this.zoneId = zoneId; } public int getCityId() { return cityId; } public void setCityId(int cityId) { this.cityId = cityId; } public String getHotelName() { return hotelName; } public void setHotelName(String hotelName) { this.hotelName = hotelName; } public Date getCheckInDate() { return checkInDate; } public void setCheckInDate(Date checkInDate) { this.checkInDate = checkInDate; } public Date getCheckOutDate() { return checkOutDate; } public void setCheckOutDate(Date checkOutDate) { this.checkOutDate = checkOutDate; } }