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

📄 entriesdao.java

📁 JAVA 经典案例 源代码 Part2.
💻 JAVA
字号:
/*
 * 
 * 开发时间:2004-08-20 at 05:40:07
 * 
 * 作者:曹广鑫
 * 
 * 网站:www.helpsoft.org  电子邮件:support@helpsoft.org
 */

package org.helpsoft.blog.dao;

import org.helpsoft.blog.dto.*;
import org.helpsoft.blog.exceptions.*;
import java.sql.CallableStatement;

public interface EntriesDao
{
	/** 
	 * Inserts a new row in the entries table.
	 */
	public EntriesPk insert(Entries dto) throws EntriesDaoException;

	/** 
	 * Updates a single row in the entries table.
	 */
	public void update(EntriesPk pk, Entries dto) throws EntriesDaoException;

	/** 
	 * Deletes a single row in the entries table.
	 */
	public void delete(EntriesPk pk) throws EntriesDaoException;

	/** 
	 * Returns the rows from the entries table that matches the specified primary-key value.
	 */
	public Entries findByPrimaryKey(EntriesPk pk) throws EntriesDaoException;

	/** 
	 * Returns all rows from the entries table.
	 */
	public Entries[] findAll() throws EntriesDaoException;

	/** 
	 * Returns all rows from the entries table that match the criteria 'entryid = :entryid'.
	 */
	public Entries[] findWhereEntryidEquals(int entryid) throws EntriesDaoException;

	/** 
	 * Returns all rows from the entries table that match the criteria 'name = :name'.
	 */
	public Entries[] findWhereNameEquals(String name) throws EntriesDaoException;

	/** 
	 * Returns all rows from the entries table that match the criteria 'author = :author'.
	 */
	public Entries[] findWhereAuthorEquals(String author) throws EntriesDaoException;

	/** 
	 * Returns all rows from the entries table that match the criteria 'date = :date'.
	 */
	public Entries[] findWhereDateEquals(String date) throws EntriesDaoException;

	/** 
	 * Returns all rows from the entries table that match the criteria 'entryid = :entryid'.
	 */
	public Entries findByPrimaryKey(int entryid) throws EntriesDaoException;

	/** 
	 * Returns all rows from the entries table that match the specified arbitrary SQL statement
	 */
	public Entries[] findByDynamicSelect(String sql, Object[] sqlParams) throws EntriesDaoException;

	/** 
	 * Returns all rows from the entries table that match the specified arbitrary SQL statement
	 */
	public Entries[] findByDynamicWhere(String sql, Object[] sqlParams) throws EntriesDaoException;

}

⌨️ 快捷键说明

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