Class SchemaManagerImpl
- java.lang.Object
-
- org.hibernate.relational.internal.SchemaManagerImpl
-
- All Implemented Interfaces:
SchemaManager
public class SchemaManagerImpl extends Object implements SchemaManager
Implementation ofSchemaManager, backed by aSessionFactoryImplementorandSchemaManagementToolCoordinator.
-
-
Constructor Summary
Constructors Constructor Description SchemaManagerImpl(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddropMappedObjects(boolean dropSchemas)Drop database objects mapped by Hibernate entities, undoing the previous export.voidexportMappedObjects(boolean createSchemas)Export database objects mapped by Hibernate entities.voidtruncateMappedObjects()Truncate the database tables mapped by Hibernate entities, and then re-import initial data from any configured load script.voidvalidateMappedObjects()Validate that the database objects mapped by Hibernate entities have the expected definitions.
-
-
-
Constructor Detail
-
SchemaManagerImpl
public SchemaManagerImpl(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata)
-
-
Method Detail
-
exportMappedObjects
public void exportMappedObjects(boolean createSchemas)
Description copied from interface:SchemaManagerExport database objects mapped by Hibernate entities.Programmatic way to run
SchemaCreator.- Specified by:
exportMappedObjectsin interfaceSchemaManager- Parameters:
createSchemas- iftrue, attempt to create schemas, otherwise, assume the schemas already exist
-
dropMappedObjects
public void dropMappedObjects(boolean dropSchemas)
Description copied from interface:SchemaManagerDrop database objects mapped by Hibernate entities, undoing the previous export.Programmatic way to run
SchemaDropper.- Specified by:
dropMappedObjectsin interfaceSchemaManager- Parameters:
dropSchemas- iftrue, drop schemas, otherwise, leave them be
-
validateMappedObjects
public void validateMappedObjects()
Description copied from interface:SchemaManagerValidate that the database objects mapped by Hibernate entities have the expected definitions.Programmatic way to run
SchemaValidator.- Specified by:
validateMappedObjectsin interfaceSchemaManager
-
truncateMappedObjects
public void truncateMappedObjects()
Description copied from interface:SchemaManagerTruncate the database tables mapped by Hibernate entities, and then re-import initial data from any configured load script.Programmatic way to run
SchemaTruncator.- Specified by:
truncateMappedObjectsin interfaceSchemaManager
-
-