com.jtri.report
Class JasperConfig

java.lang.Object
  extended bycom.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
           
 
Constructor Summary
JasperConfig()
           
 
Method Summary
static void closeSession()
           
static org.hibernate.Session currentSession()
           
static JRDataSource getHBMDS()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

public static final java.lang.ThreadLocal session
Constructor Detail

JasperConfig

public JasperConfig()
Method Detail

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()