📄 relationdao.java
字号:
/*
*/
package com.relationinfo.customertrace.dao;
import com.relationinfo.customertrace.dto.*;
import com.relationinfo.customertrace.exceptions.*;
public interface RelationDao
{
/**
* 增加新记录到 relation table.
*/
public RelationPk insert(Relation dto) throws RelationDaoException;
/**
* 更新单笔记录 relation table.
*/
public void update(RelationPk pk, Relation dto) throws RelationDaoException;
/**
* Deletes a single row in the relation table.
*/
public void delete(RelationPk pk) throws RelationDaoException;
/**
* Returns the rows from the relation table that matches the specified primary-key value.
*/
public Relation findByPrimaryKey(RelationPk pk) throws RelationDaoException;
/**
* Returns all rows from the relation table that match the criteria 'relationcode = :relationcode'.
*/
public Relation findByPrimaryKey(String relationcode) throws RelationDaoException;
/**
* Returns all rows from the relation table that match the criteria ''.
*/
public Relation[] findAll() throws RelationDaoException;
/**
* Returns all rows from the relation table that match the criteria 'customercode = :customercode'.
*/
public Relation[] findByCustomer(String customercode) throws RelationDaoException;
/**
* Returns all rows from the relation table that match the criteria 'relationcode = :relationcode'.
*/
public Relation[] findWhereRelationcodeEquals(String relationcode) throws RelationDaoException;
/**
* Returns all rows from the relation table that match the criteria 'customercode = :customercode'.
*/
public Relation[] findWhereCustomercodeEquals(String customercode) throws RelationDaoException;
/**
* Returns all rows from the relation table that match the criteria 'relationname = :relationname'.
*/
public Relation[] findWhereRelationnameEquals(String relationname) throws RelationDaoException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -