📄 categorydao.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 CategoryDao
{
/**
* Inserts a new row in the Category table.
*/
public CategoryPk insert(Category dto) throws CategoryDaoException;
/**
* Updates a single row in the Category table.
*/
public void update(CategoryPk pk, Category dto) throws CategoryDaoException;
/**
* Deletes a single row in the Category table.
*/
public void delete(CategoryPk pk) throws CategoryDaoException;
/**
* Returns the rows from the Category table that matches the specified primary-key value.
*/
public Category findByPrimaryKey(CategoryPk pk) throws CategoryDaoException;
/**
* Returns all rows from the Category table that match the criteria ''.
*/
public Category[] findAll() throws CategoryDaoException;
/**
* Returns all rows from the Category table that match the criteria 'CategoryID = :categoryID'.
*/
public Category findByPrimaryKey(int categoryID) throws CategoryDaoException;
/**
* Returns all rows from the Category table that match the criteria 'CategoryID = :categoryID'.
*/
public Category[] findWhereCategoryIDEquals(int categoryID) throws CategoryDaoException;
/**
* Returns all rows from the Category table that match the criteria 'Name = :name'.
*/
public Category[] findWhereNameEquals(String name) throws CategoryDaoException;
/**
* Returns all rows from the Category table that match the criteria 'Description = :description'.
*/
public Category[] findWhereDescriptionEquals(String description) throws CategoryDaoException;
/**
* Sets the value of maxRows
*/
public void setMaxRows(int maxRows);
/**
* Gets the value of maxRows
*/
public int getMaxRows();
/**
* Returns all rows from the Category table that match the specified arbitrary SQL statement
*/
public Category[] findByDynamicSelect(String sql, Object[] sqlParams) throws CategoryDaoException;
/**
* Returns all rows from the Category table that match the specified arbitrary SQL statement
*/
public Category[] findByDynamicWhere(String sql, Object[] sqlParams) throws CategoryDaoException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -