站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

SchemaUpdate (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.tool.hbm2ddl
Class SchemaUpdate

java.lang.Object
  extended bynet.sf.hibernate.tool.hbm2ddl.SchemaUpdate

public class SchemaUpdate
extends Object

A commandline tool to update a database schema. May also be called from inside an application.

Author:
Christoph Sturm

Constructor Summary
SchemaUpdate(Configuration cfg)
           
SchemaUpdate(Configuration cfg, Properties connectionProperties)
           
 
Method Summary
 void execute(boolean script, boolean doUpdate)
          Execute the schema updates
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaUpdate

public SchemaUpdate(Configuration cfg)
             throws HibernateException

SchemaUpdate

public SchemaUpdate(Configuration cfg,
                    Properties connectionProperties)
             throws HibernateException
Method Detail

main

public static void main(String[] args)

execute

public void execute(boolean script,
                    boolean doUpdate)
Execute the schema updates

Parameters:
script - print all DDL to the console