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

📄 honorupdate.java

📁 是一个JSP与数据库应用系统
💻 JAVA
字号:
package until;

import java.sql.*;
import database.conn;

public class honorupdate
{
	private int id;
	private String title;
	private String times;
	private String content;
	
	conn cn = new conn();
	
	public honorupdate()
	{
		id = 1;
		title = "";
		times = "";
		content = "";
	}
	
	public void setId(int id)
	{
		this.id = id;
	}
	public String getTitle()
	{
		return title;
	}
	public String getTimes()
	{
		return times;
	}
	public String getContent()
	{
		return content;
	}
	
	public void updatehonor()
	{
		try
		{
			String strsql = "select * from C_Honor where id="+id+"";
			ResultSet rs = cn.executeQuery(strsql);
			if(rs.next())
			{
				title = rs.getString("title");
				times = rs.getString("datatimes");
				content = rs.getString("content");
			}
			cn.closestmt();
			cn.closeconn();
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
	}
}

⌨️ 快捷键说明

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