htdao.java

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

JAVA
119
字号
/*
 * Author :Cao guangxin
 * on 26-三月-2005 at 09:54:55
 * 
 * Mail:relationinfo@hotmail.com
 * 
 * visit:www.relaioninfo.com or www.helpsoft.org
 */

package org.helpsoft.contract.dao;

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

public interface HtDao
{
	/** 
	 * Inserts a new row in the ht table.
	 */
	public HtPk insert(Ht dto) throws HtDaoException;

	/** 
	 * Updates a single row in the ht table.
	 */
	public void update(HtPk pk, Ht dto) throws HtDaoException;

	/** 
	 * Deletes a single row in the ht table.
	 */
	public void delete(HtPk pk) throws HtDaoException;

	/** 
	 * Returns the rows from the ht table that matches the specified primary-key value.
	 */
	public Ht findByPrimaryKey(HtPk pk) throws HtDaoException;

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

	/** 
	 * Returns all rows from the ht table that match the criteria 'htbm = :htbm'.
	 */
	public Ht findByPrimaryKey(String htbm) throws HtDaoException;

	/** 
	 * Returns all rows from the ht table that match the criteria 'htbm = :htbm'.
	 */
	public Ht[] findWhereHtbmEquals(String htbm) throws HtDaoException;

	/** 
	 * Returns all rows from the ht table that match the criteria 'jfdlrbm = :jfdlrbm'.
	 */
	public Ht[] findWhereJfdlrbmEquals(String jfdlrbm) throws HtDaoException;

	/** 
	 * Returns all rows from the ht table that match the criteria 'jfbm = :jfbm'.
	 */
	public Ht[] findWhereJfbmEquals(String jfbm) throws HtDaoException;

	/** 
	 * Returns all rows from the ht table that match the criteria 'qsdd = :qsdd'.
	 */
	public Ht[] findWhereQsddEquals(String qsdd) throws HtDaoException;

	/** 
	 * Returns all rows from the ht table that match the criteria 'yf = :yf'.
	 */
	public Ht[] findWhereYfEquals(String yf) throws HtDaoException;

	/** 
	 * Returns all rows from the ht table that match the criteria 'yfdlr = :yfdlr'.
	 */
	public Ht[] findWhereYfdlrEquals(String yfdlr) throws HtDaoException;

	/** 
	 * Returns all rows from the ht table that match the criteria 'jfqzrq = :jfqzrq'.
	 */
	public Ht[] findWhereJfqzrqEquals(Date jfqzrq) throws HtDaoException;

	/** 
	 * Returns all rows from the ht table that match the criteria 'yfqzrq = :yfqzrq'.
	 */
	public Ht[] findWhereYfqzrqEquals(Date yfqzrq) throws HtDaoException;

	/** 
	 * Returns all rows from the ht table that match the criteria 'xmmc = :xmmc'.
	 */
	public Ht[] findWhereXmmcEquals(String xmmc) throws HtDaoException;

	/** 
	 * Returns all rows from the ht table that match the criteria 'htnr = :htnr'.
	 */
	public Ht[] findWhereHtnrEquals(String htnr) throws HtDaoException;

	/** 
	 * Sets the value of maxRows
	 */
	public void setMaxRows(int maxRows);

	/** 
	 * Gets the value of maxRows
	 */
	public int getMaxRows();

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

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

}

⌨️ 快捷键说明

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