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

📄 product.java

📁 jdo 例子使用PrismTech类库 初步入门级使用 学习Java Data Objects的好例子
💻 JAVA
字号:
package iks.ethz.jpoxdemo.plain;

import javax.jdo.annotations.*;

/**
 * The Product Class is a generalization of all the products in the store
 * @author ionut
 */


public class Product{

	protected String name =null;
	protected String description =null;
	protected double price = 0.0;
	
	/**
     * Sole constructor.  (For invocation by subclass 
     * constructors, typically implicit.)
     */
	protected Product() {
	}
	
	/**
	 * Product constructor that creates a new product with given description elements
	 * @param name
	 * @param description
	 * @param price
	 */
	public Product(String name, String description, double price){
		this.name=name;
		this.description=description;
		this.price=price;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getDescription() {
		return description;
	}
		
	public void setDescription(String description) {
		this.description = description;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}
	
}

⌨️ 快捷键说明

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