/* * Provided by CSTI Consulting * Following GNU LESSER GENERAL PUBLIC LICENSE * You may obtain more details at * * http://www.csticonsulting.com * Copyright (c) 2006-2010 Consultation CS-TI inc. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.salesmanager.central.orders; import java.util.Date; public class OrderListCriteria { private Date sdate; private Date edate; private long orderid = -1; private String customerName; public Date getEdate() { return edate; } public void setEdate(Date edate) { this.edate = edate; } public Date getSdate() { return sdate; } public void setSdate(Date sdate) { this.sdate = sdate; } public long getOrderid() { return orderid; } public void setOrderid(long orderid) { this.orderid = orderid; } public String getCustomerName() { return customerName; } public void setCustomerName(String customerName) { this.customerName = customerName; } public boolean isSet() { if (customerName != null || orderid != -1 || sdate != null || edate != null) { return true; } else { return false; } } public void resetCriteria() { this.orderid = -1; this.sdate = null; this.edate = null; this.customerName = null; } }