ibasicservice.java

来自「struts+spring+hibernate自创框架」· Java 代码 · 共 74 行

JAVA
74
字号
/*****************************************************************************
 *
 *             CHIIC SYSTEMS, INC.
 *
 *                PROPRIETARY DATA
 *
 *  THIS DOCUMENT CONTAINS TRADE SECRET DATA WHICH IS THE PROPERTY OF
 *  CHIIC SYSTEMS, INC.  THIS DOCUMENT IS SUBMITTED TO RECIPIENT IN
 *  CONFIDENCE.  INFORMATION CONTAINED HEREIN MAY NOT BE USED, COPIED OR
 *  DISCLOSED IN WHOLE OR IN PART EXCEPT AS PERMITTED BY WRITTEN AGREEMENT
 *  SIGNED BY AN OFFICER OF CHIIC SYSTEMS, INC.
 *
 *  Title:       IBasicService.java
 *
 ******************************************************************************/

package com.pegasus.framework.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;

import com.pegasus.framework.component.taglib.html.pager.PageAgent;
import com.pegasus.framework.exception.BusinessException;
import com.pegasus.framework.pojo.IBusinessObject;

public interface IBasicService {
	String getTableName();

	void delete(Serializable id) throws BusinessException;

	void delete(IBusinessObject data) throws BusinessException;

	IBusinessObject load(Serializable id) throws BusinessException;
	IBusinessObject load(String pk, String value) throws BusinessException;
	List query() throws BusinessException;
	List query(Criterion[] criterionArray, Order[] orderArray) throws BusinessException;

	List query(Criterion[] criterionArray, Order[] orderArray, PageAgent pageAgent) throws BusinessException;

	List query(List criterionList, List orderList) throws BusinessException;

	List query(List criterionList, List orderList, PageAgent pageAgent) throws BusinessException;

	List query(String hql) throws BusinessException;

	List query(String hql, Collection criteria, PageAgent pageAgent) throws BusinessException;

	IBusinessObject saveObject(IBusinessObject data) throws BusinessException;

	IBusinessObject saveOrUpdateObject(IBusinessObject data) throws BusinessException;

	IBusinessObject updateObject(IBusinessObject data) throws BusinessException;
	
	IBusinessObject mergeObject(IBusinessObject data) throws BusinessException;
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}

⌨️ 快捷键说明

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