📄 frienddao.java
字号:
package com.relationinfo.txl.dao;
import com.relationinfo.txl.dto.*;
import com.relationinfo.txl.exceptions.*;
import java.sql.CallableStatement;
public interface FriendDao
{
/**
* 增加新记录到 friend table.
*/
public FriendPk insert(Friend dto) throws FriendDaoException;
/**
* 更新单笔记录 friend table.
*/
public void update(FriendPk pk, Friend dto) throws FriendDaoException;
/**
* Deletes a single row in the friend table.
*/
public void delete(FriendPk pk) throws FriendDaoException;
/**
* 返回符合指定主键值的记录.
*/
public Friend findByPrimaryKey(FriendPk pk) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'xmjp = :xmjp'.
*/
public Friend findByPrimaryKey(String xmjp) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 ''.
*/
public Friend[] findAll() throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'groupid = :groupid'.
*/
public Friend[] findByGroup1(String groupid) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'xmjp = :xmjp'.
*/
public Friend[] findWhereXmjpEquals(String xmjp) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'groupid = :groupid'.
*/
public Friend[] findWhereGroupidEquals(String groupid) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'name = :name'.
*/
public Friend[] findWhereNameEquals(String name) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'age = :age'.
*/
public Friend[] findWhereAgeEquals(String age) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'sex = :sex'.
*/
public Friend[] findWhereSexEquals(String sex) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'Professional = :professional'.
*/
public Friend[] findWhereProfessionalEquals(String professional) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'Scholarship = :scholarship'.
*/
public Friend[] findWhereScholarshipEquals(String scholarship) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'address = :address'.
*/
public Friend[] findWhereAddressEquals(String address) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'email = :email'.
*/
public Friend[] findWhereEmailEquals(String email) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'phone = :phone'.
*/
public Friend[] findWherePhoneEquals(String phone) throws FriendDaoException;
/**
* 返回所有的记录,满足条件 'note = :note'.
*/
public Friend[] findWhereNoteEquals(String note) throws FriendDaoException;
/**
* 设置 maxRows
*/
public void setMaxRows(int maxRows);
/**
* 获得 maxRows
*/
public int getMaxRows();
/**
* Returns all rows from the friend table that match the specified arbitrary SQL statement
*/
public Friend[] findByDynamicSelect(String sql, Object[] sqlParams) throws FriendDaoException;
/**
* Returns all rows from the friend table that match the specified arbitrary SQL statement
*/
public Friend[] findByDynamicWhere(String sql, Object[] sqlParams) throws FriendDaoException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -