Top Description Inners Methods
org.hibernate.tool.schema.extract.spi

public Interface ExtractionContext

Known Direct Implementers
org.hibernate.tool.schema.extract.spi.ExtractionContext.EmptyExtractionContext, org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl, org.hibernate.tool.schema.extract.internal.ExtractionContextImpl
Annotations
@Incubating
Imports
java.sql.Connection, .DatabaseMetaData, .PreparedStatement, .ResultSet, .SQLException, org.hibernate.Incubating, org.hibernate.boot.model.naming.Identifier, org.hibernate.boot.model.relational.QualifiedSequenceName, .QualifiedTableName, .SqlStringGenerationContext, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment, org.hibernate.service.ServiceRegistry

Defines a context for performing extraction including providing access to information about ongoing extraction as well as to delegates needed in performing extraction.
Authors
Steve Ebersole, Gail Badner

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
ExtractionContext.DatabaseObjectAccess

In conjunction with getDatabaseObjectAccess() provides access to information about known database objects to the extractor.

public abstract static class
public static interface

Method Summary

Modifier and TypeMethod and Description
public void
public ExtractionContext.DatabaseObjectAccess
public Identifier
public Identifier
public Connection
public DatabaseMetaData
public JdbcEnvironment
public default <T> T
getQueryResults(String queryString, Object[] positionalParameters, ExtractionContext.ResultSetProcessor<T> resultSetProcessor)

public ServiceRegistry
public SqlStringGenerationContext

Method Detail

cleanupback to summary
public void cleanup()
getDatabaseObjectAccessback to summary
public ExtractionContext.DatabaseObjectAccess getDatabaseObjectAccess()
getDefaultCatalogback to summary
public Identifier getDefaultCatalog()
getDefaultSchemaback to summary
public Identifier getDefaultSchema()
getJdbcConnectionback to summary
public Connection getJdbcConnection()
getJdbcDatabaseMetaDataback to summary
public DatabaseMetaData getJdbcDatabaseMetaData()
getJdbcEnvironmentback to summary
public JdbcEnvironment getJdbcEnvironment()
getQueryResultsback to summary
public default <T> T getQueryResults(String queryString, Object[] positionalParameters, ExtractionContext.ResultSetProcessor<T> resultSetProcessor) throws SQLException
Annotations
@Incubating
getServiceRegistryback to summary
public ServiceRegistry getServiceRegistry()
getSqlStringGenerationContextback to summary
public SqlStringGenerationContext getSqlStringGenerationContext()
org.hibernate.tool.schema.extract.spi back to summary

public Interface ExtractionContext.DatabaseObjectAccess

Known Direct Implementers
org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl
Annotations
@Incubating

In conjunction with getDatabaseObjectAccess() provides access to information about known database objects to the extractor.

Method Summary

Modifier and TypeMethod and Description
public SequenceInformation
public TableInformation

Method Detail

locateSequenceInformationback to summary
public SequenceInformation locateSequenceInformation(QualifiedSequenceName sequenceName)
locateTableInformationback to summary
public TableInformation locateTableInformation(QualifiedTableName tableName)
org.hibernate.tool.schema.extract.spi back to summary

public abstract Class ExtractionContext.EmptyExtractionContext

extends Object
implements ExtractionContext
Class Inheritance
  • java.lang.Object
  • org.hibernate.tool.schema.extract.spi.ExtractionContext.EmptyExtractionContext
All Implemented Interfaces
org.hibernate.tool.schema.extract.spi.ExtractionContext

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public ExtractionContext.DatabaseObjectAccess
public Identifier
public Identifier
public Connection
public DatabaseMetaData
public JdbcEnvironment
public ServiceRegistry
public SqlStringGenerationContext
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EmptyExtractionContextback to summary
public EmptyExtractionContext()

Method Detail

cleanupback to summary
public void cleanup()

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.cleanup.

Annotations
@Override
getDatabaseObjectAccessback to summary
public ExtractionContext.DatabaseObjectAccess getDatabaseObjectAccess()

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.getDatabaseObjectAccess.

Annotations
@Override
getDefaultCatalogback to summary
public Identifier getDefaultCatalog()

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.getDefaultCatalog.

Annotations
@Override
getDefaultSchemaback to summary
public Identifier getDefaultSchema()

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.getDefaultSchema.

Annotations
@Override
getJdbcConnectionback to summary
public Connection getJdbcConnection()

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.getJdbcConnection.

Annotations
@Override
getJdbcDatabaseMetaDataback to summary
public DatabaseMetaData getJdbcDatabaseMetaData()

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.getJdbcDatabaseMetaData.

Annotations
@Override
getJdbcEnvironmentback to summary
public JdbcEnvironment getJdbcEnvironment()

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.getJdbcEnvironment.

Annotations
@Override
getServiceRegistryback to summary
public ServiceRegistry getServiceRegistry()

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.getServiceRegistry.

Annotations
@Override
getSqlStringGenerationContextback to summary
public SqlStringGenerationContext getSqlStringGenerationContext()

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.getSqlStringGenerationContext.

Annotations
@Override
org.hibernate.tool.schema.extract.spi back to summary

public Interface ExtractionContext.ResultSetProcessor<T>

Annotations
@Incubating

Method Summary

Modifier and TypeMethod and Description
public T
process(ResultSet resultSet)

Method Detail

processback to summary
public T process(ResultSet resultSet) throws SQLException