ProductSearchFormBean.java
资源名称:JAVAshop.rar [点击查看]
上传用户:sxychgz
上传日期:2019-04-21
资源大小:4772k
文件大小:2k
源码类别:
电子政务应用
开发平台:
Java
- package com.bjsxt.shopping.product;
- import java.util.Date;
- //DTO Data Transfer Object
- //通过显示层传递到了业务层
- public class ProductSearchFormBean {
- private int categoryId;
- private String name;
- private double lowNormalPrice;
- private double highNormalPrice;
- private double lowMemberPrice;
- private double highMemberPrice;
- private String startDate;
- private String endDate;
- public int getCategoryId() {
- return categoryId;
- }
- public void setCategoryId(int categoryId) {
- this.categoryId = categoryId;
- }
- public double getHighMemberPrice() {
- return highMemberPrice;
- }
- public void setHighMemberPrice(double highMemberPrice) {
- this.highMemberPrice = highMemberPrice;
- }
- public double getHighNormalPrice() {
- return highNormalPrice;
- }
- public void setHighNormalPrice(double highNormalPrice) {
- this.highNormalPrice = highNormalPrice;
- }
- public double getLowMemberPrice() {
- return lowMemberPrice;
- }
- public void setLowMemberPrice(double lowMemberPrice) {
- this.lowMemberPrice = lowMemberPrice;
- }
- public double getLowNormalPrice() {
- return lowNormalPrice;
- }
- public void setLowNormalPrice(double lowNormalPrice) {
- this.lowNormalPrice = lowNormalPrice;
- }
- public String getName() {
- if(this.name == null) return "";
- else return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getEndDate() {
- if(this.endDate == null) return "";
- else return endDate;
- }
- public void setEndDate(String endDate) {
- this.endDate = endDate;
- }
- public String getStartDate() {
- if(this.startDate == null) return "";
- else return startDate;
- }
- public void setStartDate(String startDate) {
- this.startDate = startDate;
- }
- public boolean validate () {
- return true;
- }
- }