⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customerdao.java

📁 由于跟踪客户的购物意向
💻 JAVA
字号:
/*
 */

package com.relationinfo.customertrace.dao;

import java.util.Date;
import com.relationinfo.customertrace.dto.*;
import com.relationinfo.customertrace.exceptions.*;

public interface CustomerDao
{
	/** 
	 * 增加新记录到 customer table.
	 */
	public CustomerPk insert(Customer dto) throws CustomerDaoException;

	/** 
	 * 更新单笔记录 customer table.
	 */
	public void update(CustomerPk pk, Customer dto) throws CustomerDaoException;

	/** 
	 * Deletes a single row in the customer table.
	 */
	public void delete(CustomerPk pk) throws CustomerDaoException;

	/** 
	 * Returns the rows from the customer table that matches the specified primary-key value.
	 */
	public Customer findByPrimaryKey(CustomerPk pk) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'customercode = :customercode'.
	 */
	public Customer findByPrimaryKey(String customercode) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria ''.
	 */
	public Customer[] findAll() throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'customertypecode = :customertypecode'.
	 */
	public Customer[] findByCustomerType(String customertypecode) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'customercode = :customercode'.
	 */
	public Customer[] findWhereCustomercodeEquals(String customercode) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'customertypecode = :customertypecode'.
	 */
	public Customer[] findWhereCustomertypecodeEquals(String customertypecode) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'customername = :customername'.
	 */
	public Customer[] findWhereCustomernameEquals(String customername) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'address = :address'.
	 */
	public Customer[] findWhereAddressEquals(String address) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'phone = :phone'.
	 */
	public Customer[] findWherePhoneEquals(String phone) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'mobile = :mobile'.
	 */
	public Customer[] findWhereMobileEquals(String mobile) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'email = :email'.
	 */
	public Customer[] findWhereEmailEquals(String email) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'birthday = :birthday'.
	 */
	public Customer[] findWhereBirthdayEquals(Date birthday) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'hobby = :hobby'.
	 */
	public Customer[] findWhereHobbyEquals(String hobby) throws CustomerDaoException;

	/** 
	 * Returns all rows from the customer table that match the criteria 'note = :note'.
	 */
	public Customer[] findWhereNoteEquals(String note) throws CustomerDaoException;

}

⌨️ 快捷键说明

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