|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgriffon.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)
| 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 |
|---|
private static final org.slf4j.Logger LOG
private final org.hibernate.cfg.Configuration configuration
private final org.hibernate.SessionFactory sessionFactory
| Constructor Detail |
|---|
public HibernateSchemaHelper(org.hibernate.cfg.Configuration configuration, org.hibernate.SessionFactory sessionFactory)
| Method Detail |
|---|
private void closeStatement(Statement stmt)
public void createDatabaseSchema()
public void dropDatabaseSchema()
private void execute(HibernateSchemaHelper.HibernateCallback callback)
private void executeSchemaScript(Connection con, String[] sql)
private void executeSchemaStatement(Statement stmt, String sql)
public org.hibernate.cfg.Configuration getConfiguration()
public org.hibernate.SessionFactory getSessionFactory()
public void updateDatabaseSchema()
Groovy Documentation