inewsdao.java

来自「struts hibernet spring」· Java 代码 · 共 52 行

JAVA
52
字号
package com.ts.dao;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.ts.orm.TsNews;

/**
 * A data access object (DAO) providing persistence and search support for
 * TsNews entities. Transaction control of the save(), update() and delete()
 * operations can directly support Spring container-managed transactions or they
 * can be augmented to handle user-managed Spring transactions. Each of these
 * methods provides additional information for how to configure it for the
 * desired type of transaction control.
 * 
 * @see com.ts.orm.TsNews
 * @author MyEclipse Persistence Tools
 */

public interface iNewsDAO {

	public void save(TsNews transientInstance);

	public void delete(TsNews persistentInstance);

	public TsNews findById(java.lang.Integer id);

	public List findByExample(TsNews instance);

	public List findByProperty(String propertyName, Object value);

	public List findByNewsType(Object newsType) ;

	public List findByNewsTitle(Object newsTitle);

	public List findByNewsContent(Object newsContent);

	public List findByStatus(Object status) ;

	public List findAll();
	
	public TsNews merge(TsNews detachedInstance);

	public void attachDirty(TsNews instance);

	public void attachClean(TsNews instance);

}

⌨️ 快捷键说明

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