📄 newsattributedao.java
字号:
/*
* Created on 2005-11-10
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.mycompany.news.dao;
import java.sql.Connection;
import java.sql.SQLException;
import com.mycompany.news.dto.News;
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public interface NewsAttributeDAO {
public News getByID(long id)throws Exception;//根据主键获取对象
public void setConnection(Connection conn);
public Connection getConnection();
public String getAttributeValue(long newsid,String attributeName,int attrType) throws SQLException;
public void deleteByNews(News news) throws Exception;
public void recommendNews(long news) throws Exception;
public void cancelRecommend(long news) throws Exception;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -