⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 locationvo.java

📁 一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习
💻 JAVA
字号:
/*
 * Created on 2006-1-28
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package com.xyz.data;

import java.io.Serializable;

/**
 * @author admin
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class LocationVO implements Serializable {
	
	private String city;
	private String state;
	private String zipCode;
	private String areaCode;
	private int salesCount;
	
	public LocationVO(){
		city = "";
		state = "";
		zipCode = "";
		areaCode = "";
	}
	public LocationVO(String aCity, String aState, String aZipeCode,
	    String anAreaCode){
	    	city = aCity;
	    	state = aState;
	    	zipCode = aZipeCode;
	    	areaCode = anAreaCode;
	}
	
	public LocationVO(String aCity, String aState, String aZipeCode,
	    String anAreaCode,int aSalesCount){
			city = aCity;
			state = aState;
			zipCode = aZipeCode;
			areaCode = anAreaCode;
			salesCount = aSalesCount;
	}
			
		
	public LocationVO(LocationVO locationVO, int aSalesCount){
		city = locationVO.city;
		state = locationVO.state;
		zipCode = locationVO.zipCode;
		areaCode = locationVO.areaCode;
		salesCount = aSalesCount;
	}

	/**
	 * @return
	 */
	public String getAreaCode() {
		return areaCode;
	}

	/**
	 * @return
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @return
	 */
	public int getSalesCount() {
		return salesCount;
	}

	/**
	 * @return
	 */
	public String getState() {
		return state;
	}

	/**
	 * @return
	 */
	public String getZipCode() {
		return zipCode;
	}

	/**
	 * @param string
	 */
	public void setAreaCode(String string) {
		areaCode = string;
	}

	/**
	 * @param string
	 */
	public void setCity(String string) {
		city = string;
	}

	/**
	 * @param i
	 */
	public void setSalesCount(int i) {
		salesCount = i;
	}

	/**
	 * @param string
	 */
	public void setState(String string) {
		state = string;
	}

	/**
	 * @param string
	 */
	public void setZipCode(String string) {
		zipCode = string;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -