agileconnection.java

来自「java实现的可配置的工作流引擎,采用jsp+javabean实现」· Java 代码 · 共 44 行

JAVA
44
字号
/*
 * Created on 2004-10-18 TODO To change the template for this generated file go to Window - Preferences - Java - Code
 * Style - Code Templates
 */
package com.hongsoft.agile;

import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.Transaction;

/**
 * @author hongsoft.com TODO To change the template for this generated type comment go to Window - Preferences - Java -
 *         Code Style - Code Templates
 */
public class AgileConnection {

    private Session session;

    private Transaction t;

    /**
     * @return Returns the session.
     */
    public Session getHibernateSession() {
        return session;
    }

    public java.sql.Connection getJDBCConnection() throws HibernateException {
        return session.connection();
    }

    public Transaction getTransaction() {
        return t;
    }

    /**
     * @param session The session to set.
     */
    public AgileConnection(Session session, Transaction t) {
        this.session = session;
        this.t = t;
    }
}

⌨️ 快捷键说明

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