Uses of Interface
org.hibernate.boot.model.relational.SqlStringGenerationContext
Packages that use SqlStringGenerationContext
Package
Description
Some SPIs related to DDL generation and schema management.
This package abstracts over the multifarious dialects of SQL
understood by the databases supported by Hibernate.
Support for
Dialect
-specific unique constraint definition.This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
This package defines an abstraction over all kinds of automatic
value generation, including id generation and version number
generation.
This package and its subpackages, especially
org.hibernate.id.enhanced
,
contain the built-in id generators, all of which implement either
IdentifierGenerator
or
PostInsertIdentifierGenerator
.Enhanced/improved versions of table and sequence based identifier generators
targeting portability and unified configuration.
An internal package containing implementations of central Hibernate APIs,
mostly defined in
org.hibernate
.This package defines the Hibernate configuration-time mapping model.
An SPI supporting custom instantiation of
entity instances and
embeddable objects.
This package abstracts persistence mechanisms for entities.
Validation for HQL queries.
Implementation of the SPIs for native SQL query support.
Implementation of the SPI for schema information extraction from the database via JDBC.
Defines an SPI for schema information extraction from the database via JDBC.
An implementation of the SPI for the tooling related to DDL generation, export, migration, and validation.
Support for exporting generated DDL to the database or to SQL scripts.
An SPI for tooling related to DDL generation, export, migration, and validation.
-
Uses of SqlStringGenerationContext in org.hibernate.boot.internal
Methods in org.hibernate.boot.internal that return SqlStringGenerationContext -
Uses of SqlStringGenerationContext in org.hibernate.boot.model.relational
Methods in org.hibernate.boot.model.relational with parameters of type SqlStringGenerationContextModifier and TypeMethodDescriptionString[]
AuxiliaryDatabaseObject.sqlCreateStrings
(SqlStringGenerationContext context) Gets the SQL strings for creating the database object.String[]
SimpleAuxiliaryDatabaseObject.sqlCreateStrings
(SqlStringGenerationContext context) String[]
AuxiliaryDatabaseObject.sqlDropStrings
(SqlStringGenerationContext context) Gets the SQL strings for dropping the database object.String[]
SimpleAuxiliaryDatabaseObject.sqlDropStrings
(SqlStringGenerationContext context) -
Uses of SqlStringGenerationContext in org.hibernate.boot.model.relational.internal
Classes in org.hibernate.boot.model.relational.internal that implement SqlStringGenerationContextMethods in org.hibernate.boot.model.relational.internal that return SqlStringGenerationContextModifier and TypeMethodDescriptionstatic SqlStringGenerationContext
SqlStringGenerationContextImpl.forTests
(JdbcEnvironment jdbcEnvironment) static SqlStringGenerationContext
SqlStringGenerationContextImpl.forTests
(JdbcEnvironment jdbcEnvironment, String defaultCatalog, String defaultSchema) static SqlStringGenerationContext
SqlStringGenerationContextImpl.fromConfigurationMap
(JdbcEnvironment jdbcEnvironment, Database database, Map<String, Object> configurationMap) static SqlStringGenerationContext
SqlStringGenerationContextImpl.fromConfigurationMapForMigration
(JdbcEnvironment jdbcEnvironment, Database database, Map<String, Object> configurationMap) static SqlStringGenerationContext
SqlStringGenerationContextImpl.fromExplicit
(JdbcEnvironment jdbcEnvironment, Database database, String defaultCatalog, String defaultSchema) -
Uses of SqlStringGenerationContext in org.hibernate.dialect
Methods in org.hibernate.dialect with parameters of type SqlStringGenerationContextModifier and TypeMethodDescriptionString[]
OracleUserDefinedTypeExporter.getSqlCreateStrings
(UserDefinedArrayType userDefinedType, Metadata metadata, SqlStringGenerationContext context) String[]
OracleUserDefinedTypeExporter.getSqlDropStrings
(UserDefinedArrayType userDefinedType, Metadata metadata, SqlStringGenerationContext context) -
Uses of SqlStringGenerationContext in org.hibernate.dialect.unique
Methods in org.hibernate.dialect.unique with parameters of type SqlStringGenerationContextModifier and TypeMethodDescriptionAlterTableUniqueDelegate.getAlterTableToAddUniqueKeyCommand
(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) AlterTableUniqueIndexDelegate.getAlterTableToAddUniqueKeyCommand
(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) CreateTableUniqueDelegate.getAlterTableToAddUniqueKeyCommand
(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) SkipNullableUniqueDelegate.getAlterTableToAddUniqueKeyCommand
(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) UniqueDelegate.getAlterTableToAddUniqueKeyCommand
(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) Get thealter table
command used to create the given unique key constraint, or return the empty string if the constraint was already included in thecreate table
statement byUniqueDelegate.getTableCreationUniqueConstraintsFragment(org.hibernate.mapping.Table, org.hibernate.boot.model.relational.SqlStringGenerationContext)
.AlterTableUniqueDelegate.getAlterTableToDropUniqueKeyCommand
(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) AlterTableUniqueIndexDelegate.getAlterTableToDropUniqueKeyCommand
(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) CreateTableUniqueDelegate.getAlterTableToDropUniqueKeyCommand
(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) SkipNullableUniqueDelegate.getAlterTableToDropUniqueKeyCommand
(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) UniqueDelegate.getAlterTableToDropUniqueKeyCommand
(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) Get thealter table
command used to drop the given unique key which was previously created byUniqueDelegate.getAlterTableToAddUniqueKeyCommand(org.hibernate.mapping.UniqueKey, org.hibernate.boot.Metadata, org.hibernate.boot.model.relational.SqlStringGenerationContext)
.AlterTableUniqueDelegate.getColumnDefinitionUniquenessFragment
(Column column, SqlStringGenerationContext context) CreateTableUniqueDelegate.getColumnDefinitionUniquenessFragment
(Column column, SqlStringGenerationContext context) SkipNullableUniqueDelegate.getColumnDefinitionUniquenessFragment
(Column column, SqlStringGenerationContext context) UniqueDelegate.getColumnDefinitionUniquenessFragment
(Column column, SqlStringGenerationContext context) Get the SQL fragment used to make the given column unique as part of its column definition, usually just" unique"
, or return an empty string if uniqueness does not belong in the column definition.AlterTableUniqueDelegate.getTableCreationUniqueConstraintsFragment
(Table table, SqlStringGenerationContext context) CreateTableUniqueDelegate.getTableCreationUniqueConstraintsFragment
(Table table, SqlStringGenerationContext context) UniqueDelegate.getTableCreationUniqueConstraintsFragment
(Table table, SqlStringGenerationContext context) Get the SQL fragment used to specify the unique constraints on the given table as part of thecreate table
command, with a leading comma, usually something like: -
Uses of SqlStringGenerationContext in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return SqlStringGenerationContextModifier and TypeMethodDescriptionSessionFactoryDelegatingImpl.getSqlStringGenerationContext()
SessionFactoryImplementor.getSqlStringGenerationContext()
-
Uses of SqlStringGenerationContext in org.hibernate.generator
Methods in org.hibernate.generator that return SqlStringGenerationContextModifier and TypeMethodDescriptiondefault SqlStringGenerationContext
GeneratorCreationContext.getSqlStringGenerationContext()
TheSqlStringGenerationContext
to use when generating SQL. -
Uses of SqlStringGenerationContext in org.hibernate.id
Methods in org.hibernate.id with parameters of type SqlStringGenerationContextModifier and TypeMethodDescriptiondefault String
BulkInsertionCapableIdentifierGenerator.determineBulkInsertionIdentifierGenerationSelectFragment
(SqlStringGenerationContext context) Return the select expression fragment, if any, that generates the identifier values.void
CompositeNestedGeneratedValueGenerator.GenerationPlan.initialize
(SqlStringGenerationContext context) Initializes this instance, in particular pre-generates SQL as necessary.void
CompositeNestedGeneratedValueGenerator.initialize
(SqlStringGenerationContext context) default void
Configurable.initialize
(SqlStringGenerationContext context) Initializes this instance, pre-generating SQL if necessary.void
IncrementGenerator.initialize
(SqlStringGenerationContext context) void
NativeGenerator.initialize
(SqlStringGenerationContext context) -
Uses of SqlStringGenerationContext in org.hibernate.id.enhanced
Methods in org.hibernate.id.enhanced with parameters of type SqlStringGenerationContextModifier and TypeMethodDescriptionprotected String
TableGenerator.buildInsertQuery
(String formattedPhysicalTableName, SqlStringGenerationContext context) protected String
TableGenerator.buildSelectQuery
(String formattedPhysicalTableName, SqlStringGenerationContext context) protected String
TableGenerator.buildUpdateQuery
(String formattedPhysicalTableName, SqlStringGenerationContext context) SequenceStyleGenerator.determineBulkInsertionIdentifierGenerationSelectFragment
(SqlStringGenerationContext context) protected InitCommand
TableGenerator.generateInsertInitCommand
(SqlStringGenerationContext context) default void
DatabaseStructure.initialize
(SqlStringGenerationContext context) Initializes this structure, in particular pre-generates SQL as necessary.void
SequenceStructure.initialize
(SqlStringGenerationContext context) void
SequenceStyleGenerator.initialize
(SqlStringGenerationContext context) void
TableGenerator.initialize
(SqlStringGenerationContext context) void
TableStructure.initialize
(SqlStringGenerationContext context) -
Uses of SqlStringGenerationContext in org.hibernate.internal
Methods in org.hibernate.internal that return SqlStringGenerationContext -
Uses of SqlStringGenerationContext in org.hibernate.mapping
Methods in org.hibernate.mapping that return SqlStringGenerationContextMethods in org.hibernate.mapping with parameters of type SqlStringGenerationContextModifier and TypeMethodDescriptionTable.getInitCommands
(SqlStringGenerationContext context) AbstractUserDefinedType.getQualifiedName
(SqlStringGenerationContext context) Table.getQualifiedName
(SqlStringGenerationContext context) UserDefinedType.getQualifiedName
(SqlStringGenerationContext context) void
Component.ValueGenerationPlan.initialize
(SqlStringGenerationContext context) Method parameters in org.hibernate.mapping with type arguments of type SqlStringGenerationContextModifier and TypeMethodDescriptionvoid
Table.addInitCommand
(Function<SqlStringGenerationContext, InitCommand> commandProducer) -
Uses of SqlStringGenerationContext in org.hibernate.metamodel.spi
Methods in org.hibernate.metamodel.spi that return SqlStringGenerationContext -
Uses of SqlStringGenerationContext in org.hibernate.persister.entity
Classes in org.hibernate.persister.entity that implement SqlStringGenerationContextModifier and TypeClassDescriptionclass
SqlStringGenerationContext implementation with support for overriding the default catalog and schemaMethods in org.hibernate.persister.entity with parameters of type SqlStringGenerationContextModifier and TypeMethodDescriptionAbstractEntityPersister.getEntityNameByTableNameMap
(PersistentClass persistentClass, SqlStringGenerationContext stringGenerationContext) -
Uses of SqlStringGenerationContext in org.hibernate.processor.validation
Methods in org.hibernate.processor.validation that return SqlStringGenerationContext -
Uses of SqlStringGenerationContext in org.hibernate.query.sql.internal
Constructors in org.hibernate.query.sql.internal with parameters of type SqlStringGenerationContextModifierConstructorDescriptionSQLQueryParser
(String queryString, SQLQueryParser.ParserContext context, SqlStringGenerationContext sqlStringGenerationContext) -
Uses of SqlStringGenerationContext in org.hibernate.tool.schema.extract.internal
Methods in org.hibernate.tool.schema.extract.internal that return SqlStringGenerationContextConstructors in org.hibernate.tool.schema.extract.internal with parameters of type SqlStringGenerationContextModifierConstructorDescriptionDatabaseInformationImpl
(ServiceRegistry serviceRegistry, JdbcEnvironment jdbcEnvironment, SqlStringGenerationContext context, DdlTransactionIsolator ddlTransactionIsolator, SchemaManagementTool tool) ExtractionContextImpl
(ServiceRegistry serviceRegistry, JdbcEnvironment jdbcEnvironment, SqlStringGenerationContext context, JdbcConnectionAccess jdbcConnectionAccess, ExtractionContext.DatabaseObjectAccess registeredTableAccess) -
Uses of SqlStringGenerationContext in org.hibernate.tool.schema.extract.spi
Methods in org.hibernate.tool.schema.extract.spi that return SqlStringGenerationContextModifier and TypeMethodDescriptionExtractionContext.EmptyExtractionContext.getSqlStringGenerationContext()
ExtractionContext.getSqlStringGenerationContext()
-
Uses of SqlStringGenerationContext in org.hibernate.tool.schema.internal
Methods in org.hibernate.tool.schema.internal that return SqlStringGenerationContextModifier and TypeMethodDescriptionstatic SqlStringGenerationContext
Helper.createSqlStringGenerationContext
(ExecutionOptions options, Metadata metadata) Methods in org.hibernate.tool.schema.internal with parameters of type SqlStringGenerationContextModifier and TypeMethodDescriptionprotected void
AbstractSchemaMigrator.applyForeignKeys
(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets) protected void
AbstractSchemaMigrator.applyIndexes
(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets) protected void
StandardTableExporter.applyInitCommands
(Table table, List<String> sqlStrings, SqlStringGenerationContext context) protected void
AbstractSchemaMigrator.applyUniqueKeys
(Table table, TableInformation tableInfo, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets) static DatabaseInformation
Helper.buildDatabaseInformation
(ServiceRegistry serviceRegistry, DdlTransactionIsolator ddlTransactionIsolator, SqlStringGenerationContext context, SchemaManagementTool tool) protected void
AbstractSchemaMigrator.createSchemaAndCatalog
(DatabaseInformation existingDatabase, ExecutionOptions options, Dialect dialect, Formatter formatter, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, SqlStringGenerationContext context, GenerationTarget[] targets) protected void
AbstractSchemaMigrator.createTable
(Table table, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets) protected String
StandardSequenceExporter.getFormattedSequenceName
(QualifiedSequenceName name, Metadata metadata, SqlStringGenerationContext context) String[]
StandardTableMigrator.getSqlAlterStrings
(Table table, Metadata metadata, TableInformation tableInfo, SqlStringGenerationContext context) String[]
StandardAuxiliaryDatabaseObjectExporter.getSqlCreateStrings
(AuxiliaryDatabaseObject object, Metadata metadata, SqlStringGenerationContext context) String[]
StandardForeignKeyExporter.getSqlCreateStrings
(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) String[]
StandardIndexExporter.getSqlCreateStrings
(Index index, Metadata metadata, SqlStringGenerationContext context) String[]
StandardSequenceExporter.getSqlCreateStrings
(Sequence sequence, Metadata metadata, SqlStringGenerationContext context) String[]
StandardTableExporter.getSqlCreateStrings
(Table table, Metadata metadata, SqlStringGenerationContext context) String[]
StandardUniqueKeyExporter.getSqlCreateStrings
(UniqueKey constraint, Metadata metadata, SqlStringGenerationContext context) String[]
StandardUserDefinedTypeExporter.getSqlCreateStrings
(UserDefinedArrayType userDefinedType, Metadata metadata, SqlStringGenerationContext context) String[]
StandardUserDefinedTypeExporter.getSqlCreateStrings
(UserDefinedObjectType userDefinedType, Metadata metadata, SqlStringGenerationContext context) String[]
StandardUserDefinedTypeExporter.getSqlCreateStrings
(UserDefinedType userDefinedType, Metadata metadata, SqlStringGenerationContext context) StandardTableCleaner.getSqlDisableConstraintString
(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) String[]
StandardAuxiliaryDatabaseObjectExporter.getSqlDropStrings
(AuxiliaryDatabaseObject object, Metadata metadata, SqlStringGenerationContext context) String[]
StandardForeignKeyExporter.getSqlDropStrings
(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) String[]
StandardIndexExporter.getSqlDropStrings
(Index index, Metadata metadata, SqlStringGenerationContext context) String[]
StandardSequenceExporter.getSqlDropStrings
(Sequence sequence, Metadata metadata, SqlStringGenerationContext context) String[]
StandardTableExporter.getSqlDropStrings
(Table table, Metadata metadata, SqlStringGenerationContext context) String[]
StandardUniqueKeyExporter.getSqlDropStrings
(UniqueKey constraint, Metadata metadata, SqlStringGenerationContext context) String[]
StandardUserDefinedTypeExporter.getSqlDropStrings
(UserDefinedArrayType userDefinedType, Metadata metadata, SqlStringGenerationContext context) String[]
StandardUserDefinedTypeExporter.getSqlDropStrings
(UserDefinedObjectType userDefinedType, Metadata metadata, SqlStringGenerationContext context) String[]
StandardUserDefinedTypeExporter.getSqlDropStrings
(UserDefinedType userDefinedType, Metadata metadata, SqlStringGenerationContext context) StandardTableCleaner.getSqlEnableConstraintString
(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) String[]
StandardTableCleaner.getSqlTruncateStrings
(Collection<Table> tables, Metadata metadata, SqlStringGenerationContext context) protected void
AbstractSchemaMigrator.migrateTable
(Table table, TableInformation tableInformation, Dialect dialect, Metadata metadata, Formatter formatter, ExecutionOptions options, SqlStringGenerationContext sqlGenerationContext, GenerationTarget... targets) protected abstract NameSpaceTablesInformation
AbstractSchemaMigrator.performTablesMigration
(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, Formatter formatter, Set<String> exportIdentifiers, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, SqlStringGenerationContext sqlGenerationContext, GenerationTarget[] targets) protected NameSpaceTablesInformation
GroupedSchemaMigratorImpl.performTablesMigration
(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, Formatter formatter, Set<String> exportIdentifiers, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, SqlStringGenerationContext context, GenerationTarget[] targets) protected NameSpaceTablesInformation
IndividuallySchemaMigratorImpl.performTablesMigration
(Metadata metadata, DatabaseInformation existingDatabase, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, Dialect dialect, Formatter formatter, Set<String> exportIdentifiers, boolean tryToCreateCatalogs, boolean tryToCreateSchemas, Set<Identifier> exportedCatalogs, Namespace namespace, SqlStringGenerationContext context, GenerationTarget[] targets) StandardTableMigrator.sqlAlterStrings
(Table table, Dialect dialect, Metadata metadata, TableInformation tableInformation, SqlStringGenerationContext context) -
Uses of SqlStringGenerationContext in org.hibernate.tool.schema.internal.exec
Methods in org.hibernate.tool.schema.internal.exec that return SqlStringGenerationContextConstructors in org.hibernate.tool.schema.internal.exec with parameters of type SqlStringGenerationContextModifierConstructorDescriptionImprovedExtractionContextImpl
(ServiceRegistry serviceRegistry, JdbcEnvironment jdbcEnvironment, SqlStringGenerationContext context, DdlTransactionIsolator ddlTransactionIsolator, ExtractionContext.DatabaseObjectAccess databaseObjectAccess) -
Uses of SqlStringGenerationContext in org.hibernate.tool.schema.spi
Methods in org.hibernate.tool.schema.spi with parameters of type SqlStringGenerationContextModifier and TypeMethodDescriptionExtractionTool.createExtractionContext
(ServiceRegistry serviceRegistry, JdbcEnvironment jdbcEnvironment, SqlStringGenerationContext context, DdlTransactionIsolator ddlTransactionIsolator, ExtractionContext.DatabaseObjectAccess databaseObjectAccess) String[]
TableMigrator.getSqlAlterStrings
(Table table, Metadata metadata, TableInformation tableInfo, SqlStringGenerationContext context) String[]
Exporter.getSqlCreateStrings
(T exportable, Metadata metadata, SqlStringGenerationContext context) Get the commands needed for creation.Cleaner.getSqlDisableConstraintString
(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) A statement that disables the given foreign key constraint.String[]
Exporter.getSqlDropStrings
(T exportable, Metadata metadata, SqlStringGenerationContext context) Get the commands needed for dropping.Cleaner.getSqlEnableConstraintString
(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) A statement that re-enables the given foreign key constraint.String[]
Cleaner.getSqlTruncateStrings
(Collection<Table> tables, Metadata metadata, SqlStringGenerationContext context) A statement or statements that truncate the given tables.