Top Description Fields Constructors Methods
org.hibernate.relational.internal

public Class SchemaManagerImpl

extends Object
implements SchemaManager
Class Inheritance
All Implemented Interfaces
org.hibernate.relational.SchemaManager
Imports
org.hibernate.boot.spi.MetadataImplementor, org.hibernate.cfg.AvailableSettings, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.relational.SchemaManager, org.hibernate.tool.schema.Action, org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator, java.util.HashMap, .Map

Implementation of SchemaManager, backed by a SessionFactoryImplementor and SchemaManagementToolCoordinator.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final MetadataImplementor
metadata

Deprecated as a consequence of MetadataImplementor being deprecated.
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Constructor Summary

AccessConstructor and Description
public
SchemaManagerImpl(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata)

Deprecated as a consequence of SessionFactoryImplementor and MetadataImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public void
dropMappedObjects(boolean
if true, drop schemas, otherwise, leave them be
dropSchemas
)

Implements org.hibernate.relational.SchemaManager.dropMappedObjects.

Drop database objects mapped by Hibernate entities, undoing the previous export.
public void
exportMappedObjects(boolean
if true, attempt to create schemas, otherwise, assume the schemas already exist
createSchemas
)

Implements org.hibernate.relational.SchemaManager.exportMappedObjects.

Export database objects mapped by Hibernate entities.
public void
truncateMappedObjects()

Implements org.hibernate.relational.SchemaManager.truncateMappedObjects.

Truncate the database tables mapped by Hibernate entities, and then re-import initial data from any configured load script.
public void
validateMappedObjects()

Implements org.hibernate.relational.SchemaManager.validateMappedObjects.

Validate that the database objects mapped by Hibernate entities have the expected definitions.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

metadataback to summary
private final MetadataImplementor metadata

Deprecated

as a consequence of MetadataImplementor being deprecated. See corresponding docs for further information.

sessionFactoryback to summary
private final SessionFactoryImplementor sessionFactory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Constructor Detail

SchemaManagerImplback to summary
public SchemaManagerImpl(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata)

Deprecated

as a consequence of SessionFactoryImplementor and MetadataImplementor being deprecated. See corresponding docs for further information.

Method Detail

dropMappedObjectsback to summary
public void dropMappedObjects(boolean dropSchemas)

Implements org.hibernate.relational.SchemaManager.dropMappedObjects.

Doc from org.hibernate.relational.SchemaManager.dropMappedObjects.

Drop database objects mapped by Hibernate entities, undoing the previous export.

Programmatic way to run org.hibernate.tool.schema.spi.SchemaDropper.

Parameters
dropSchemas:boolean

if true, drop schemas, otherwise, leave them be

Annotations
@Override
exportMappedObjectsback to summary
public void exportMappedObjects(boolean createSchemas)

Implements org.hibernate.relational.SchemaManager.exportMappedObjects.

Doc from org.hibernate.relational.SchemaManager.exportMappedObjects.

Export database objects mapped by Hibernate entities.

Programmatic way to run org.hibernate.tool.schema.spi.SchemaCreator.

Parameters
createSchemas:boolean

if true, attempt to create schemas, otherwise, assume the schemas already exist

Annotations
@Override
truncateMappedObjectsback to summary
public void truncateMappedObjects()

Implements org.hibernate.relational.SchemaManager.truncateMappedObjects.

Doc from org.hibernate.relational.SchemaManager.truncateMappedObjects.

Truncate the database tables mapped by Hibernate entities, and then re-import initial data from any configured load script.

Programmatic way to run org.hibernate.tool.schema.spi.SchemaTruncator.

Annotations
@Override
validateMappedObjectsback to summary
public void validateMappedObjects()

Implements org.hibernate.relational.SchemaManager.validateMappedObjects.

Doc from org.hibernate.relational.SchemaManager.validateMappedObjects.

Validate that the database objects mapped by Hibernate entities have the expected definitions.

Programmatic way to run org.hibernate.tool.schema.spi.SchemaValidator.

Annotations
@Override