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

SimpleAuxiliaryDatabaseObject (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.mapping
Class SimpleAuxiliaryDatabaseObject

java.lang.Object
  extended byorg.hibernate.mapping.AbstractAuxiliaryDatabaseObject
      extended byorg.hibernate.mapping.SimpleAuxiliaryDatabaseObject
All Implemented Interfaces:
AuxiliaryDatabaseObject, RelationalModel, Serializable

public class SimpleAuxiliaryDatabaseObject
extends AbstractAuxiliaryDatabaseObject

A simple implementation of AbstractAuxiliaryDatabaseObject in which the CREATE and DROP strings are provided up front. Contains simple facilities for templating the catalog and schema names into the provided strings.

This is the form created when the mapping documents use <create/> and <drop/>.

Author:
Steve Ebersole
See Also:
Serialized Form

Constructor Summary
SimpleAuxiliaryDatabaseObject(String sqlCreateString, String sqlDropString)
           
SimpleAuxiliaryDatabaseObject(String sqlCreateString, String sqlDropString, HashSet dialectScopes)
           
 
Method Summary
 String sqlCreateString(Dialect dialect, Mapping p, String defaultCatalog, String defaultSchema)
           
 String sqlDropString(Dialect dialect, String defaultCatalog, String defaultSchema)
           
 
Methods inherited from class org.hibernate.mapping.AbstractAuxiliaryDatabaseObject
addDialectScope, appliesToDialect, getDialectScopes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAuxiliaryDatabaseObject

public SimpleAuxiliaryDatabaseObject(String sqlCreateString,
                                     String sqlDropString)

SimpleAuxiliaryDatabaseObject

public SimpleAuxiliaryDatabaseObject(String sqlCreateString,
                                     String sqlDropString,
                                     HashSet dialectScopes)
Method Detail

sqlCreateString

public String sqlCreateString(Dialect dialect,
                              Mapping p,
                              String defaultCatalog,
                              String defaultSchema)
                       throws HibernateException
Throws:
HibernateException

sqlDropString

public String sqlDropString(Dialect dialect,
                            String defaultCatalog,
                            String defaultSchema)