src/com/xfhq/service/TLiuyanDAO.java

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.xfhq.service;

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.xfhq.orm.TLiuyan;

/**
 * Data access object (DAO) for domain model class TLiuyan.
 * 
 * @see com.model.TLiuyan
 * @author MyEclipse Persistence Tools
 */

public class TLiuyanDAO extends HibernateDaoSupport
{
	private static final Log log = LogFactory.getLog(TLiuyanDAO.class);

	// property constants
	public static final String LIUYAN_TITLE = "liuyanTitle";

	public static final String LIUYAN_CONTENT = "liuyanContent";

	protected void initDao()
	{
		// do nothing
	}

	public void save(TLiuyan transientInstance)
	{
		log.debug("saving TLiuyan instance");
		try
		{
			getHibernateTemplate().save(transientInstance);
			log.debug("save successful");
		} catch (RuntimeException re)
		{
			log.error("save failed", re);
			throw re;
		}
	}

	public void delete(TLiuyan persistentInstance)
	{
		log.debug("deleting TLiuyan instance");
		try
		{
			getHibernateTemplate().delete(persistentInstance);
			log.debug("delete successful");
		} catch (RuntimeException re)
		{
			log.error("delete failed", re);
			throw re;
		}
	}
后面还有 121 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。