org.jdiagnose.library.db
Class HibernateDiagnostic

java.lang.Object
  extended byorg.jdiagnose.DiagnosticUnit
      extended byorg.jdiagnose.library.db.HibernateDiagnostic
All Implemented Interfaces:
org.jdiagnose.Diagnostic, org.jdiagnose.DiagnosticContainer, org.jdiagnose.DiagnosticUnitLifeCycle

public class HibernateDiagnostic
extends org.jdiagnose.DiagnosticUnit

Author:
jmccrindle

Constructor Summary
HibernateDiagnostic()
          Default Constructor
HibernateDiagnostic(java.lang.String name)
           
 
Method Summary
 void diagnoseSql()
           
 net.sf.hibernate.SessionFactory getSessionFactory()
           
 java.lang.String getSql()
           
 void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
           
 void setSql(java.lang.String sql)
           
 
Methods inherited from class org.jdiagnose.DiagnosticUnit
assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertTrue, assertTrue, diagnose, getDiagnosticContainers, getDiagnostics, getName, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateDiagnostic

public HibernateDiagnostic()
Default Constructor


HibernateDiagnostic

public HibernateDiagnostic(java.lang.String name)
Parameters:
name -
Method Detail

diagnoseSql

public void diagnoseSql()
                 throws net.sf.hibernate.HibernateException,
                        java.sql.SQLException
Throws:
net.sf.hibernate.HibernateException
java.sql.SQLException

getSessionFactory

public net.sf.hibernate.SessionFactory getSessionFactory()

setSessionFactory

public void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)

getSql

public java.lang.String getSql()

setSql

public void setSql(java.lang.String sql)


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.