【Java开源代码栏目提醒】:网学会员,鉴于大家对Java开源代码十分关注,论文会员在此为大家搜集整理了“CatDao.java”一文,供大家参考学习!
/*
*/
package com.relationinfo.finance.dao;
import com.relationinfo.finance.dto.Cat;
import com.relationinfo.finance.dto.CatPk;
import com.relationinfo.finance.exceptions.CatDaoException;
public interface CatDao
{
/**
* 增加新记录到 CAT table.
*/
public CatPk insert(Cat dto) throws CatDaoException;
/**
* 更新单笔记录 CAT table.
*/
public void update(CatPk pk, Cat dto) throws CatDaoException;
/**
* Deletes a single row in the CAT table.
*/
public void delete(CatPk pk) throws CatDaoException;
/**
* Returns the rows from the CAT table that matches the specified primary-key value.
*/
public Cat findByPrimaryKey(CatPk pk) throws CatDaoException;
/**
* Returns all rows from the CAT table that match the criteria 'USER_ID = :userId AND CAT_ID = :catId'.
*/
public Cat findByPrimaryKey(int userId, int catId) throws CatDaoException;
/**
* Returns all rows from the CAT table that match the criteria ''.
*/
public Cat[] findAll() throws CatDaoException;
/**
* Returns all rows from the CAT table that match the criteria 'USER_ID = :userId'.
*/
public Cat[] findByUsr(int userId) throws CatDaoException;
/**
* Returns all rows from the CAT table that match the criteria 'USER_ID = :userId'.
*/
public Cat[] findWhereUserIdEquals(int userId) throws CatDaoException;
/**
* Returns all rows from the CAT table that match the criteria 'CAT_ID = :catId'.
*/
public Cat[] findWhereCatIdEquals(int catId) throws CatDaoException;
/**
* Returns all rows from the CAT table that match the criteria 'CAT_NAME = :catName'.
*/
public Cat[] findWhereCatNameEquals(String catName) throws CatDaoException;
}
上一篇:
catchSQLExceptionFrame.java
下一篇:
关于广告设计人才培养模式研究