接口 AuxiliaryDatabaseObject
-
- 所有超级接口:
Exportable,Serializable
- 所有已知实现类:
AbstractAuxiliaryDatabaseObject,NamedAuxiliaryDatabaseObject,SimpleAuxiliaryDatabaseObject
public interface AuxiliaryDatabaseObject extends Exportable, Serializable
Auxiliary database objects (i.e., triggers, stored procedures, etc) defined in the mappings. Allows Hibernate to manage their lifecycle as part of creating/dropping the schema.- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfaceAuxiliaryDatabaseObject.ExpandableAdditional, optional interface for AuxiliaryDatabaseObject that want to allow expansion of allowable dialects via mapping.
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleanappliesToDialect(Dialect dialect)Does this database object apply to the given dialect?booleanbeforeTablesOnCreation()Defines a simple precedence.String[]sqlCreateStrings(Dialect dialect)Gets the SQL strings for creating the database object.String[]sqlDropStrings(Dialect dialect)Gets the SQL strings for dropping the database object.-
从接口继承的方法 org.hibernate.boot.model.relational.Exportable
getExportIdentifier
-
-
-
-
方法详细资料
-
appliesToDialect
boolean appliesToDialect(Dialect dialect)
Does this database object apply to the given dialect?- 参数:
dialect- The dialect to check against.- 返回:
- True if this database object does apply to the given dialect.
-
beforeTablesOnCreation
boolean beforeTablesOnCreation()
Defines a simple precedence. Should creation of this auxiliary object happen before creation of tables? Iftrue, the auxiliary object creation will happen after any explicit schema creations but before table/sequence creations; iffalse, the auxiliary object creation will happen after explicit schema creations and after table/sequence creations. This precedence is automatically inverted for dropping.- 返回:
trueindicates this object should be created before tables;falseindicates it should be created after.
-
sqlCreateStrings
String[] sqlCreateStrings(Dialect dialect)
Gets the SQL strings for creating the database object.- 参数:
dialect- The dialect for which to generate the SQL creation strings- 返回:
- the SQL strings for creating the database object.
-
-