src/com/dao/TKehuDAO.java

(开头部分) 5KB

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

package com.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.model.TKehu;

/**
 * A data access object (DAO) providing persistence and search support for TKehu
 * 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.model.TKehu
 * @author MyEclipse Persistence Tools
 */

public class TKehuDAO extends HibernateDaoSupport {
	private static final Log log = LogFactory.getLog(TKehuDAO.class);
	// property constants
	public static final String DENGJI = "dengji";
	public static final String XINGMING = "xingming";
	public static final String XINGBIE = "xingbie";
	public static final String NIANLING = "nianling";
	public static final String DIANHUA = "dianhua";
	public static final String EMAIL = "email";
	public static final String ZHUZHI = "zhuzhi";
	public static final String BEIZHU = "beizhu";
	public static final String JIANKUAN = "jiankuan";
	public static final String BICHANG = "bichang";
	public static final String XIONGWEI = "xiongwei";
	public static final String YAOWEI = "yaowei";
	public static final String TUNWEI = "tunwei";

	protected void initDao() {
		// do nothing
	}

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

	public void delete(TKehu persistentInstance) {
		log.debug("deleting TKehu instance");
		try {
			getHibernateTemplate().delete(persistentInstance);
			log.debug("delete successful");
后面还有 146 行代码,购买后查看完整代码

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

AI 解读 AI

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

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