【Java开源代码栏目提醒】:以下是网学会员为您推荐的Java开源代码-AccDao.java,希望本篇文章对您学习有所帮助。
package com.relationinfo.finance.dao;
import com.relationinfo.finance.dto.Acc;
import com.relationinfo.finance.dto.AccPk;
import com.relationinfo.finance.exceptions.AccDaoException;
public interface AccDao
{
/**
* 增加记录到ACC表.
*/
public AccPk insert(Acc dto) throws AccDaoException;
/**
* 更新ACC表的单笔记录.
*/
public void update(AccPk pk, Acc dto) throws AccDaoException;
/**
* 从Acc表中删除单笔记录.
*/
public void delete(AccPk pk) throws AccDaoException;
/**
* 从ACC表中返回匹配主键值的记录.
*/
public Acc findByPrimaryKey(AccPk pk) throws AccDaoException;
/**
* Returns all rows from the ACC table that match the criteria 'USER_ID = :userId AND ACC_ID = :accId'.
*/
public Acc findByPrimaryKey(int userId, int accId) throws AccDaoException;
/**
* Returns all rows from the ACC table that match the criteria ''.
*/
public Acc[] findAll() throws AccDaoException;
/**
* Returns all rows from the ACC table that match the criteria 'USER_ID = :userId'.
*/
public Acc[] findByUsr(int userId) throws AccDaoException;
/**
* Returns all rows from the ACC table that match the criteria 'USER_ID = :userId'.
*/
public Acc[] findWhereUserIdEquals(int userId) throws AccDaoException;
/**
* Returns all rows from the ACC table that match the criteria 'ACC_ID = :accId'.
*/
public Acc[] findWhereAccIdEquals(int accId) throws AccDaoException;
/**
* Returns all rows from the ACC table that match the criteria 'ACC_NAME = :accName'.
*/
public Acc[] findWhereAccNameEquals(String accName) throws AccDaoException;
}