com.jtri.report
Class JasperConfig
java.lang.Object
com.jtri.report.JasperConfig
- public class JasperConfig
- extends java.lang.Object
- Author:
- atorres
Created on Aug 20, 2005
Config class to get JRDatasource to Jasper reports design tools.
To use this class on IReports, include in the classpath the hibernate
configuration, the hbm.xml files and all jars needed to hibernate.
Them configure JasperConfig as the Custom Datasource class provider and getHBMDS as
the static method to get the Datasource connection.
You still must set the initial query property of HBMDS.
|
Field Summary |
static java.lang.ThreadLocal |
session
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
public static final java.lang.ThreadLocal session
JasperConfig
public JasperConfig()
currentSession
public static org.hibernate.Session currentSession()
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
closeSession
public static void closeSession()
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
getHBMDS
public static JRDataSource getHBMDS()