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

📄 contenttype.java

📁 本书由浅入深、循序渐进地介绍了MVC的体系结构和如何构建一个基于MVC的Web框架
💻 JAVA
字号:
package com.myContent.vo;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import com.gd.jdbc.impl.GdDbCommon;

public class ContentType {
	public ContentType() {
	}
	//定义变量
	private int id = 0;
	private String contentTypeId = "";
	private String contentTypeName = "";
	public String validate() {
		String msg = "";
		if ("".equals(this.contentTypeId) || "".equals(this.contentTypeName)) {
			msg = "类别id和类别名称不能为空";
		}
		return msg;
	}
	/**
	 * @return the contentTypeId
	 */
	public String getContentTypeId() {
		return contentTypeId;
	}
	/**
	 * @param contentTypeId the contentTypeId to set
	 */
	public void setContentTypeId(String contentTypeId) {
		this.contentTypeId = contentTypeId;
	}
	/**
	 * @return the contentTypeName
	 */
	public String getContentTypeName() {
		return contentTypeName;
	}
	/**
	 * @param contentTypeName the contentTypeName to set
	 */
	public void setContentTypeName(String contentTypeName) {
		this.contentTypeName = contentTypeName;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
}

⌨️ 快捷键说明

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