Groovy Documentation

griffon.plugins.hibernate3.internal
[Java] Class HibernateSchemaHelper

java.lang.Object
  griffon.plugins.hibernate3.internal.HibernateSchemaHelper

public class HibernateSchemaHelper
extends Object

Executes schema scripts. Based on Spring's org.springframework.orm.hibernate3.LocalSessionFactoryBean Original author: Juergen Hoeller (Spring 1.2)

Authors:
Andres Almiray


Nested Class Summary
interface HibernateSchemaHelper.HibernateCallback

 
Field Summary
private static org.slf4j.Logger LOG

private org.hibernate.cfg.Configuration configuration

private org.hibernate.SessionFactory sessionFactory

 
Constructor Summary
HibernateSchemaHelper(org.hibernate.cfg.Configuration configuration, org.hibernate.SessionFactory sessionFactory)

 
Method Summary
private void closeStatement(Statement stmt)

void createDatabaseSchema()

void dropDatabaseSchema()

private void execute(HibernateSchemaHelper.HibernateCallback callback)

private void executeSchemaScript(Connection con, String[] sql)

private void executeSchemaStatement(Statement stmt, String sql)

org.hibernate.cfg.Configuration getConfiguration()

org.hibernate.SessionFactory getSessionFactory()

void updateDatabaseSchema()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

LOG

private static final org.slf4j.Logger LOG


configuration

private final org.hibernate.cfg.Configuration configuration


sessionFactory

private final org.hibernate.SessionFactory sessionFactory


 
Constructor Detail

HibernateSchemaHelper

public HibernateSchemaHelper(org.hibernate.cfg.Configuration configuration, org.hibernate.SessionFactory sessionFactory)


 
Method Detail

closeStatement

private void closeStatement(Statement stmt)


createDatabaseSchema

public void createDatabaseSchema()


dropDatabaseSchema

public void dropDatabaseSchema()


execute

private void execute(HibernateSchemaHelper.HibernateCallback callback)


executeSchemaScript

private void executeSchemaScript(Connection con, String[] sql)


executeSchemaStatement

private void executeSchemaStatement(Statement stmt, String sql)


getConfiguration

public org.hibernate.cfg.Configuration getConfiguration()


getSessionFactory

public org.hibernate.SessionFactory getSessionFactory()


updateDatabaseSchema

public void updateDatabaseSchema()


 

Groovy Documentation