📄 articledao.java
字号:
/*
* This source file was generated by FireStorm/DAO 3.0 (build 99)
* on 26-十月-2005 at 09:50:56
*
* If you purchase a full license for FireStorm/DAO you can customize this file header.
*
* For more information please visit http://www.codefutures.com/products/firestorm
*/
package cn.wanfeng.myblog.dao;
import java.util.Date;
import cn.wanfeng.myblog.dto.*;
import cn.wanfeng.myblog.exceptions.*;
import java.sql.CallableStatement;
public interface ArticleDao
{
/**
* Inserts a new row in the Article table.
*/
public ArticlePk insert(Article dto) throws ArticleDaoException;
/**
* Updates a single row in the Article table.
*/
public void update(ArticlePk pk, Article dto) throws ArticleDaoException;
/**
* Deletes a single row in the Article table.
*/
public void delete(ArticlePk pk) throws ArticleDaoException;
/**
* Returns the rows from the Article table that matches the specified primary-key value.
*/
public Article findByPrimaryKey(ArticlePk pk) throws ArticleDaoException;
/**
* Returns all rows from the Article table that match the criteria ''.
*/
public Article[] findAll() throws ArticleDaoException;
/**
* Returns all rows from the Article table that match the criteria 'ArticleID = :articleID'.
*/
public Article findByPrimaryKey(int articleID) throws ArticleDaoException;
/**
* Returns all rows from the Article table that match the criteria 'CategoryID = :categoryID'.
*/
public Article[] findByCategory(int categoryID) throws ArticleDaoException;
/**
* Returns all rows from the Article table that match the criteria 'ArticleID = :articleID'.
*/
public Article[] findWhereArticleIDEquals(int articleID) throws ArticleDaoException;
/**
* Returns all rows from the Article table that match the criteria 'CategoryID = :categoryID'.
*/
public Article[] findWhereCategoryIDEquals(int categoryID) throws ArticleDaoException;
/**
* Returns all rows from the Article table that match the criteria 'Subject = :subject'.
*/
public Article[] findWhereSubjectEquals(String subject) throws ArticleDaoException;
/**
* Returns all rows from the Article table that match the criteria 'Content = :content'.
*/
public Article[] findWhereContentEquals(String content) throws ArticleDaoException;
/**
* Returns all rows from the Article table that match the criteria 'PublishTime = :publishTime'.
*/
public Article[] findWherePublishTimeEquals(Date publishTime) throws ArticleDaoException;
/**
* Sets the value of maxRows
*/
public void setMaxRows(int maxRows);
/**
* Gets the value of maxRows
*/
public int getMaxRows();
/**
* Returns all rows from the Article table that match the specified arbitrary SQL statement
*/
public Article[] findByDynamicSelect(String sql, Object[] sqlParams) throws ArticleDaoException;
/**
* Returns all rows from the Article table that match the specified arbitrary SQL statement
*/
public Article[] findByDynamicWhere(String sql, Object[] sqlParams) throws ArticleDaoException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -