org.jenkins.plugins.audit2db.internal.data
Class HibernateUtil

java.lang.Object
  extended by org.jenkins.plugins.audit2db.internal.data.HibernateUtil

public class HibernateUtil
extends Object

Utility class for Hibernate access.

Author:
Marco Scata

Constructor Summary
HibernateUtil()
           
 
Method Summary
static Properties getExtraProperties(String driverClass, String driverUrl, String username, String password)
           
static String getSchemaDdl(String driverClass, String driverUrl, String username, String password)
           
static org.hibernate.SessionFactory getSessionFactory()
           
static org.hibernate.SessionFactory getSessionFactory(Properties extraProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateUtil

public HibernateUtil()
Method Detail

getSessionFactory

public static org.hibernate.SessionFactory getSessionFactory(Properties extraProperties)

getSessionFactory

public static org.hibernate.SessionFactory getSessionFactory()

getExtraProperties

public static Properties getExtraProperties(String driverClass,
                                            String driverUrl,
                                            String username,
                                            String password)

getSchemaDdl

public static String getSchemaDdl(String driverClass,
                                  String driverUrl,
                                  String username,
                                  String password)
                           throws IOException
Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.