move TypeBeanInstanceProducer as per the todo
This commit is contained in:
parent
b0ff5b1bec
commit
df974fd1fb
|
@ -17,7 +17,6 @@ import org.hibernate.boot.archive.scan.spi.ScanEnvironment;
|
|||
import org.hibernate.boot.archive.scan.spi.ScanOptions;
|
||||
import org.hibernate.boot.archive.scan.spi.Scanner;
|
||||
import org.hibernate.boot.archive.spi.ArchiveDescriptorFactory;
|
||||
import org.hibernate.boot.model.TypeBeanInstanceProducer;
|
||||
import org.hibernate.boot.model.convert.spi.ConverterDescriptor;
|
||||
import org.hibernate.boot.model.relational.AuxiliaryDatabaseObject;
|
||||
import org.hibernate.boot.registry.StandardServiceRegistry;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
* Copyright Red Hat Inc. and Hibernate Authors
|
||||
*/
|
||||
package org.hibernate.boot.model;
|
||||
package org.hibernate.boot.internal;
|
||||
|
||||
import org.hibernate.InstantiationException;
|
||||
import org.hibernate.Internal;
|
||||
|
@ -19,7 +19,7 @@ import java.util.Map;
|
|||
*
|
||||
* @author Christian Beikov
|
||||
*/
|
||||
@Internal //TODO: move this to org.hibernate.boot.internal, where its only usage is
|
||||
@Internal
|
||||
public class TypeBeanInstanceProducer implements BeanInstanceProducer, TypeBootstrapContext {
|
||||
private final ConfigurationService configurationService;
|
||||
|
|
@ -14,6 +14,7 @@ import org.hibernate.boot.archive.scan.spi.ScanEnvironment;
|
|||
import org.hibernate.boot.archive.scan.spi.ScanOptions;
|
||||
import org.hibernate.boot.archive.spi.ArchiveDescriptorFactory;
|
||||
import org.hibernate.boot.internal.ClassmateContext;
|
||||
import org.hibernate.boot.internal.TypeBeanInstanceProducer;
|
||||
import org.hibernate.boot.model.convert.spi.ConverterDescriptor;
|
||||
import org.hibernate.boot.model.relational.AuxiliaryDatabaseObject;
|
||||
import org.hibernate.boot.registry.StandardServiceRegistry;
|
||||
|
@ -61,7 +62,7 @@ public interface BootstrapContext {
|
|||
/**
|
||||
* The {@link BeanInstanceProducer} to use when creating custom type references.
|
||||
*
|
||||
* @implNote Usually a {@link org.hibernate.boot.model.TypeBeanInstanceProducer}.
|
||||
* @implNote Usually a {@link TypeBeanInstanceProducer}.
|
||||
*/
|
||||
BeanInstanceProducer getCustomTypeProducer();
|
||||
|
||||
|
|
|
@ -53,8 +53,8 @@ public class InformationExtractorJdbcDatabaseMetaDataImpl extends AbstractInform
|
|||
ExtractionContext.ResultSetProcessor<T> processor)
|
||||
throws SQLException {
|
||||
try ( ResultSet resultSet =
|
||||
getJdbcDatabaseMetaData()
|
||||
.getSchemas( catalog, schemaPattern ) ) {
|
||||
getJdbcDatabaseMetaData()
|
||||
.getSchemas( catalog, schemaPattern ) ) {
|
||||
return processor.process( resultSet );
|
||||
}
|
||||
}
|
||||
|
@ -68,8 +68,8 @@ public class InformationExtractorJdbcDatabaseMetaDataImpl extends AbstractInform
|
|||
ExtractionContext.ResultSetProcessor<T> processor)
|
||||
throws SQLException {
|
||||
try ( ResultSet resultSet =
|
||||
getJdbcDatabaseMetaData()
|
||||
.getTables( catalog, schemaPattern, tableNamePattern, types) ) {
|
||||
getJdbcDatabaseMetaData()
|
||||
.getTables( catalog, schemaPattern, tableNamePattern, types) ) {
|
||||
return processor.process( resultSet );
|
||||
}
|
||||
}
|
||||
|
@ -83,8 +83,8 @@ public class InformationExtractorJdbcDatabaseMetaDataImpl extends AbstractInform
|
|||
ExtractionContext.ResultSetProcessor<T> processor)
|
||||
throws SQLException {
|
||||
try ( ResultSet resultSet =
|
||||
getJdbcDatabaseMetaData()
|
||||
.getColumns( catalog, schemaPattern, tableNamePattern, columnNamePattern ) ) {
|
||||
getJdbcDatabaseMetaData()
|
||||
.getColumns( catalog, schemaPattern, tableNamePattern, columnNamePattern ) ) {
|
||||
return processor.process( resultSet );
|
||||
}
|
||||
}
|
||||
|
@ -97,8 +97,8 @@ public class InformationExtractorJdbcDatabaseMetaDataImpl extends AbstractInform
|
|||
ExtractionContext.ResultSetProcessor<T> processor)
|
||||
throws SQLException {
|
||||
try ( ResultSet resultSet =
|
||||
getJdbcDatabaseMetaData()
|
||||
.getPrimaryKeys( catalogFilter, schemaFilter, tableName.getText() ) ) {
|
||||
getJdbcDatabaseMetaData()
|
||||
.getPrimaryKeys( catalogFilter, schemaFilter, tableName.getText() ) ) {
|
||||
return processor.process( resultSet );
|
||||
}
|
||||
}
|
||||
|
@ -113,8 +113,8 @@ public class InformationExtractorJdbcDatabaseMetaDataImpl extends AbstractInform
|
|||
ExtractionContext.ResultSetProcessor<T> processor)
|
||||
throws SQLException {
|
||||
try ( ResultSet resultSet =
|
||||
getJdbcDatabaseMetaData()
|
||||
.getIndexInfo( catalog, schema, table, unique, approximate ) ) {
|
||||
getJdbcDatabaseMetaData()
|
||||
.getIndexInfo( catalog, schema, table, unique, approximate ) ) {
|
||||
return processor.process( resultSet );
|
||||
}
|
||||
}
|
||||
|
@ -127,8 +127,8 @@ public class InformationExtractorJdbcDatabaseMetaDataImpl extends AbstractInform
|
|||
ExtractionContext.ResultSetProcessor<T> processor)
|
||||
throws SQLException {
|
||||
try ( ResultSet resultSet =
|
||||
getJdbcDatabaseMetaData()
|
||||
.getImportedKeys( catalog, schema, table ) ) {
|
||||
getJdbcDatabaseMetaData()
|
||||
.getImportedKeys( catalog, schema, table ) ) {
|
||||
return processor.process( resultSet );
|
||||
}
|
||||
}
|
||||
|
@ -144,9 +144,9 @@ public class InformationExtractorJdbcDatabaseMetaDataImpl extends AbstractInform
|
|||
ExtractionContext.ResultSetProcessor<T> processor)
|
||||
throws SQLException {
|
||||
try ( ResultSet resultSet =
|
||||
getJdbcDatabaseMetaData()
|
||||
.getCrossReference( parentCatalog, parentSchema, parentTable,
|
||||
foreignCatalog, foreignSchema, foreignTable) ) {
|
||||
getJdbcDatabaseMetaData()
|
||||
.getCrossReference( parentCatalog, parentSchema, parentTable,
|
||||
foreignCatalog, foreignSchema, foreignTable) ) {
|
||||
return processor.process( resultSet );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ import org.hibernate.boot.archive.scan.spi.ScanOptions;
|
|||
import org.hibernate.boot.archive.spi.ArchiveDescriptorFactory;
|
||||
import org.hibernate.boot.internal.ClassLoaderAccessImpl;
|
||||
import org.hibernate.boot.internal.ClassmateContext;
|
||||
import org.hibernate.boot.model.TypeBeanInstanceProducer;
|
||||
import org.hibernate.boot.internal.TypeBeanInstanceProducer;
|
||||
import org.hibernate.boot.model.convert.spi.ConverterDescriptor;
|
||||
import org.hibernate.boot.model.relational.AuxiliaryDatabaseObject;
|
||||
import org.hibernate.boot.registry.StandardServiceRegistry;
|
||||
|
|
Loading…
Reference in New Issue