logdao.java

来自「STRUTS数据库项目开发宝典」· Java 代码 · 共 84 行

JAVA
84
字号
/*
 * 
 * on 06-十月-2005 at 04:15:42
 * 
 * Mail:relationinfo@hotmail.com
 * 
 * visit:www.relaioninfo.com or www.helpsoft.org
 */

package org.helpsoft.helplog.dao;

import java.util.Date;
import org.helpsoft.helplog.dto.*;
import org.helpsoft.helplog.exceptions.*;

public interface LogDao
{
	/** 
	 * Inserts a new row in the Log table.
	 */
	public LogPk insert(Log dto) throws LogDaoException;

	/** 
	 * Updates a single row in the Log table.
	 */
	public void update(LogPk pk, Log dto) throws LogDaoException;

	/** 
	 * Deletes a single row in the Log table.
	 */
	public void delete(LogPk pk) throws LogDaoException;

	/** 
	 * Returns the rows from the Log table that matches the specified primary-key value.
	 */
	public Log findByPrimaryKey(LogPk pk) throws LogDaoException;

	/** 
	 * Returns all rows from the Log table that match the criteria ''.
	 */
	public Log[] findAll() throws LogDaoException;

	/** 
	 * Returns all rows from the Log table that match the criteria 'logid = :logid'.
	 */
	public Log findByPrimaryKey(String logid) throws LogDaoException;

	/** 
	 * Returns all rows from the Log table that match the criteria 'logtypecode = :logtypecode'.
	 */
	public Log[] findByLogtype(String logtypecode) throws LogDaoException;

	/** 
	 * Returns all rows from the Log table that match the criteria 'logid = :logid'.
	 */
	public Log[] findWhereLogidEquals(String logid) throws LogDaoException;

	/** 
	 * Returns all rows from the Log table that match the criteria 'logtypecode = :logtypecode'.
	 */
	public Log[] findWhereLogtypecodeEquals(String logtypecode) throws LogDaoException;

	/** 
	 * Returns all rows from the Log table that match the criteria 'title = :title'.
	 */
	public Log[] findWhereTitleEquals(String title) throws LogDaoException;

	/** 
	 * Returns all rows from the Log table that match the criteria 'content = :content'.
	 */
	public Log[] findWhereContentEquals(String content) throws LogDaoException;

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

	/** 
	 * Returns all rows from the Log table that match the criteria 'date = :date'.
	 */
	public Log[] findWhereDateEquals(Date date) throws LogDaoException;

}

⌨️ 快捷键说明

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