Top Fields Constructors Methods
org.hibernate.tool.schema.extract.internal

public Class DatabaseInformationImpl

extends Object
implements DatabaseInformation, DatabaseObjectAccess
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.extract.spi.ExtractionContext.DatabaseObjectAccess, org.hibernate.tool.schema.extract.spi.DatabaseInformation
Imports
java.sql.SQLException, java.util.HashMap, .Map, org.hibernate.boot.model.naming.Identifier, org.hibernate.boot.model.relational.Namespace, .QualifiedSequenceName, .QualifiedTableName, .SqlStringGenerationContext, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment, org.hibernate.resource.transaction.spi.DdlTransactionIsolator, org.hibernate.service.ServiceRegistry, org.hibernate.tool.schema.extract.spi.DatabaseInformation, .ExtractionContext, .InformationExtractor, .NameSpaceTablesInformation, .SequenceInformation, .TableInformation, org.hibernate.tool.schema.spi.SchemaManagementTool

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final ExtractionContext
private final InformationExtractor
private final JdbcEnvironment
private final Map<QualifiedSequenceName, SequenceInformation>
private final SqlStringGenerationContext

Constructor Summary

AccessConstructor and Description
public
DatabaseInformationImpl(ServiceRegistry serviceRegistry, JdbcEnvironment jdbcEnvironment, SqlStringGenerationContext sqlStringGenerationContext, DdlTransactionIsolator ddlTransactionIsolator, SchemaManagementTool tool)

Method Summary

Modifier and TypeMethod and Description
public boolean
catalogExists(Identifier
The catalog name
catalog
)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.catalogExists.

Check to see if the given catalog already exists.
public void
public SequenceInformation
getSequenceInformation(Identifier
The name of the catalog which contains the schema which the sequence belongs to
catalogName
,
Identifier
The name of the schema the sequence belongs to
schemaName
,
Identifier
The sequence name
sequenceName
)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getSequenceInformation.

Obtain reference to the named SequenceInformation
public SequenceInformation
getSequenceInformation(Namespace.Name
The name of the schema the table belongs to
schemaName
,
Identifier
The sequence name
sequenceName
)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getSequenceInformation.

Obtain reference to the named SequenceInformation
public SequenceInformation
getSequenceInformation(QualifiedSequenceName
The qualified sequence name
sequenceName
)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getSequenceInformation.

Obtain reference to the named SequenceInformation
public TableInformation
getTableInformation(Identifier
The name of the catalog which contains the schema which the table belongs to
catalogName
,
Identifier
The name of the schema the table belongs to
schemaName
,
Identifier
The table name
tableName
)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTableInformation.

Obtain reference to the named TableInformation
public TableInformation
getTableInformation(Namespace.Name
The name of the schema the table belongs to
namespace
,
Identifier
The table name
tableName
)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTableInformation.

Obtain reference to the named TableInformation
public TableInformation
getTableInformation(QualifiedTableName
The qualified table name
tableName
)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTableInformation.

Obtain reference to the named TableInformation
public NameSpaceTablesInformation
private void
public SequenceInformation
public TableInformation
public boolean
schemaExists(Namespace.Name
The schema name
namespace
)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.schemaExists.

Check to see if the given schema already exists.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

extractionContextback to summary
private final ExtractionContext extractionContext
extractorback to summary
private final InformationExtractor extractor
jdbcEnvironmentback to summary
private final JdbcEnvironment jdbcEnvironment
sequenceInformationMapback to summary
private final Map<QualifiedSequenceName, SequenceInformation> sequenceInformationMap
sqlStringGenerationContextback to summary
private final SqlStringGenerationContext sqlStringGenerationContext

Constructor Detail

DatabaseInformationImplback to summary
public DatabaseInformationImpl(ServiceRegistry serviceRegistry, JdbcEnvironment jdbcEnvironment, SqlStringGenerationContext sqlStringGenerationContext, DdlTransactionIsolator ddlTransactionIsolator, SchemaManagementTool tool) throws SQLException

Method Detail

catalogExistsback to summary
public boolean catalogExists(Identifier catalog)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.catalogExists.

Doc from org.hibernate.tool.schema.extract.spi.DatabaseInformation.catalogExists.

Check to see if the given catalog already exists.

Parameters
catalog:Identifier

The catalog name

Returns:boolean

true indicates a catalog with the given name already exists

Annotations
@Override
cleanupback to summary
public void cleanup()

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

Annotations
@Override
getSequenceInformationback to summary
public SequenceInformation getSequenceInformation(Identifier catalogName, Identifier schemaName, Identifier sequenceName)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getSequenceInformation.

Doc from org.hibernate.tool.schema.extract.spi.DatabaseInformation.getSequenceInformation.

Obtain reference to the named SequenceInformation

Parameters
catalogName:Identifier

The name of the catalog which contains the schema which the sequence belongs to

schemaName:Identifier

The name of the schema the sequence belongs to

sequenceName:Identifier

The sequence name

Returns:SequenceInformation

The sequence information. May return null if not found.

Annotations
@Override
getSequenceInformationback to summary
public SequenceInformation getSequenceInformation(Namespace.Name schemaName, Identifier sequenceName)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getSequenceInformation.

Doc from org.hibernate.tool.schema.extract.spi.DatabaseInformation.getSequenceInformation.

Obtain reference to the named SequenceInformation

Parameters
schemaName:Namespace.Name

The name of the schema the table belongs to

sequenceName:Identifier

The sequence name

Returns:SequenceInformation

The sequence information. May return null if not found.

Annotations
@Override
getSequenceInformationback to summary
public SequenceInformation getSequenceInformation(QualifiedSequenceName sequenceName)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getSequenceInformation.

Doc from org.hibernate.tool.schema.extract.spi.DatabaseInformation.getSequenceInformation.

Obtain reference to the named SequenceInformation

Parameters
sequenceName:QualifiedSequenceName

The qualified sequence name

Returns:SequenceInformation

The sequence information. May return null if not found.

Annotations
@Override
getTableInformationback to summary
public TableInformation getTableInformation(Identifier catalogName, Identifier schemaName, Identifier tableName)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTableInformation.

Doc from org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTableInformation.

Obtain reference to the named TableInformation

Parameters
catalogName:Identifier

The name of the catalog which contains the schema which the table belongs to

schemaName:Identifier

The name of the schema the table belongs to

tableName:Identifier

The table name

Returns:TableInformation

The table information. May return null if not found.

Annotations
@Override
getTableInformationback to summary
public TableInformation getTableInformation(Namespace.Name namespace, Identifier tableName)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTableInformation.

Doc from org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTableInformation.

Obtain reference to the named TableInformation

Parameters
namespace:Namespace.Name

The name of the schema the table belongs to

tableName:Identifier

The table name

Returns:TableInformation

The table information. May return null if not found.

Annotations
@Override
getTableInformationback to summary
public TableInformation getTableInformation(QualifiedTableName tableName)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTableInformation.

Doc from org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTableInformation.

Obtain reference to the named TableInformation

Parameters
tableName:QualifiedTableName

The qualified table name

Returns:TableInformation

The table information. May return null if not found.

Annotations
@Override
getTablesInformationback to summary
public NameSpaceTablesInformation getTablesInformation(Namespace namespace)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTablesInformation.

Doc from org.hibernate.tool.schema.extract.spi.DatabaseInformation.getTablesInformation.

Obtain reference to all the TableInformation for a given Namespace

Parameters
namespace:Namespace

The Namespace which contains the TableInformation

Returns:NameSpaceTablesInformation

a NameSpaceTablesInformation

Annotations
@Override
initializeSequencesback to summary
private void initializeSequences() throws SQLException
locateSequenceInformationback to summary
public SequenceInformation locateSequenceInformation(QualifiedSequenceName sequenceName)

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.DatabaseObjectAccess.locateSequenceInformation.

Annotations
@Override
locateTableInformationback to summary
public TableInformation locateTableInformation(QualifiedTableName tableName)

Implements org.hibernate.tool.schema.extract.spi.ExtractionContext.DatabaseObjectAccess.locateTableInformation.

Annotations
@Override
schemaExistsback to summary
public boolean schemaExists(Namespace.Name namespace)

Implements org.hibernate.tool.schema.extract.spi.DatabaseInformation.schemaExists.

Doc from org.hibernate.tool.schema.extract.spi.DatabaseInformation.schemaExists.

Check to see if the given schema already exists.

Parameters
namespace:Namespace.Name

The schema name

Returns:boolean

true indicates a schema with the given name already exists

Annotations
@Override