📄 agileconnection.java
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -