📄 blogdao.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 cn.wanfeng.myblog.dto.*;
import cn.wanfeng.myblog.exceptions.*;
import java.sql.CallableStatement;
public interface BlogDao
{
/**
* Inserts a new row in the Blog table.
*/
public BlogPk insert(Blog dto) throws BlogDaoException;
/**
* Updates a single row in the Blog table.
*/
public void update(BlogPk pk, Blog dto) throws BlogDaoException;
/**
* Deletes a single row in the Blog table.
*/
public void delete(BlogPk pk) throws BlogDaoException;
/**
* Returns the rows from the Blog table that matches the specified primary-key value.
*/
public Blog findByPrimaryKey(BlogPk pk) throws BlogDaoException;
/**
* Returns all rows from the Blog table that match the criteria ''.
*/
public Blog[] findAll() throws BlogDaoException;
/**
* Returns all rows from the Blog table that match the criteria 'BlogID = :blogID'.
*/
public Blog findByPrimaryKey(int blogID) throws BlogDaoException;
/**
* Returns all rows from the Blog table that match the criteria 'BlogID = :blogID'.
*/
public Blog[] findWhereBlogIDEquals(int blogID) throws BlogDaoException;
/**
* Returns all rows from the Blog table that match the criteria 'Username = :username'.
*/
public Blog[] findWhereUsernameEquals(String username) throws BlogDaoException;
/**
* Returns all rows from the Blog table that match the criteria 'Password = :password'.
*/
public Blog[] findWherePasswordEquals(String password) throws BlogDaoException;
/**
* Returns all rows from the Blog table that match the criteria 'Subject = :subject'.
*/
public Blog[] findWhereSubjectEquals(String subject) throws BlogDaoException;
/**
* Returns all rows from the Blog table that match the criteria 'Description = :description'.
*/
public Blog[] findWhereDescriptionEquals(String description) throws BlogDaoException;
/**
* Returns all rows from the Blog table that match the criteria 'Email = :email'.
*/
public Blog[] findWhereEmailEquals(String email) throws BlogDaoException;
/**
* Sets the value of maxRows
*/
public void setMaxRows(int maxRows);
/**
* Gets the value of maxRows
*/
public int getMaxRows();
/**
* Returns all rows from the Blog table that match the specified arbitrary SQL statement
*/
public Blog[] findByDynamicSelect(String sql, Object[] sqlParams) throws BlogDaoException;
/**
* Returns all rows from the Blog table that match the specified arbitrary SQL statement
*/
public Blog[] findByDynamicWhere(String sql, Object[] sqlParams) throws BlogDaoException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -