code/src/com/dao/TXuantiDAO.java

(开头部分) 5KB

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

package com.dao;
// default package

import com.dao.BaseHibernateDAO;
//import com.dao.HibernateSessionFactory;

import com.model.TXuanti;
import com.util.Util;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Example;
import org.hibernate.criterion.Expression;
import org.hibernate.mapping.PersistentClass;

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

public class TXuantiDAO extends BaseHibernateDAO  {
    private static final Log log = LogFactory.getLog(TXuantiDAO.class);
	//property constants

    public void save(TXuanti transientInstance) {
        log.debug("saving TXuanti instance");
        try {
            getSessions().save(transientInstance);
            closeSessions();
            log.debug("save successful");
        } catch (RuntimeException re) {
            log.error("save failed", re);
            throw re;
        }
    }
    
	public void delete(TXuanti persistentInstance) {
        log.debug("deleting TXuanti instance");
        try {
            getSessions().delete(persistentInstance);
            closeSessions();
            log.debug("delete successful");
        } catch (RuntimeException re) {
            log.error("delete failed", re);
            throw re;
        }
    }
    
    public TXuanti findById( int id) {
        log.debug("getting TXuanti instance with id: " + id);
        try {
            TXuanti instance = (TXuanti) getSession()
后面还有 114 行代码,购买后查看完整代码

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

AI 解读 AI

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

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