Skip to content

Commit df974fd

Browse files
committed
move TypeBeanInstanceProducer as per the todo
1 parent b0ff5b1 commit df974fd

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

hibernate-core/src/main/java/org/hibernate/boot/internal/BootstrapContextImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import org.hibernate.boot.archive.scan.spi.ScanOptions;
1818
import org.hibernate.boot.archive.scan.spi.Scanner;
1919
import org.hibernate.boot.archive.spi.ArchiveDescriptorFactory;
20-
import org.hibernate.boot.model.TypeBeanInstanceProducer;
2120
import org.hibernate.boot.model.convert.spi.ConverterDescriptor;
2221
import org.hibernate.boot.model.relational.AuxiliaryDatabaseObject;
2322
import org.hibernate.boot.registry.StandardServiceRegistry;

hibernate-core/src/main/java/org/hibernate/boot/model/TypeBeanInstanceProducer.java renamed to hibernate-core/src/main/java/org/hibernate/boot/internal/TypeBeanInstanceProducer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* SPDX-License-Identifier: LGPL-2.1-or-later
33
* Copyright Red Hat Inc. and Hibernate Authors
44
*/
5-
package org.hibernate.boot.model;
5+
package org.hibernate.boot.internal;
66

77
import org.hibernate.InstantiationException;
88
import org.hibernate.Internal;
@@ -19,7 +19,7 @@
1919
*
2020
* @author Christian Beikov
2121
*/
22-
@Internal //TODO: move this to org.hibernate.boot.internal, where its only usage is
22+
@Internal
2323
public class TypeBeanInstanceProducer implements BeanInstanceProducer, TypeBootstrapContext {
2424
private final ConfigurationService configurationService;
2525

hibernate-core/src/main/java/org/hibernate/boot/spi/BootstrapContext.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.hibernate.boot.archive.scan.spi.ScanOptions;
1515
import org.hibernate.boot.archive.spi.ArchiveDescriptorFactory;
1616
import org.hibernate.boot.internal.ClassmateContext;
17+
import org.hibernate.boot.internal.TypeBeanInstanceProducer;
1718
import org.hibernate.boot.model.convert.spi.ConverterDescriptor;
1819
import org.hibernate.boot.model.relational.AuxiliaryDatabaseObject;
1920
import org.hibernate.boot.registry.StandardServiceRegistry;
@@ -61,7 +62,7 @@ public interface BootstrapContext {
6162
/**
6263
* The {@link BeanInstanceProducer} to use when creating custom type references.
6364
*
64-
* @implNote Usually a {@link org.hibernate.boot.model.TypeBeanInstanceProducer}.
65+
* @implNote Usually a {@link TypeBeanInstanceProducer}.
6566
*/
6667
BeanInstanceProducer getCustomTypeProducer();
6768

hibernate-core/src/main/java/org/hibernate/tool/schema/extract/internal/InformationExtractorJdbcDatabaseMetaDataImpl.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ protected <T> T processSchemaResultSet(
5353
ExtractionContext.ResultSetProcessor<T> processor)
5454
throws SQLException {
5555
try ( ResultSet resultSet =
56-
getJdbcDatabaseMetaData()
57-
.getSchemas( catalog, schemaPattern ) ) {
56+
getJdbcDatabaseMetaData()
57+
.getSchemas( catalog, schemaPattern ) ) {
5858
return processor.process( resultSet );
5959
}
6060
}
@@ -68,8 +68,8 @@ protected <T> T processTableResultSet(
6868
ExtractionContext.ResultSetProcessor<T> processor)
6969
throws SQLException {
7070
try ( ResultSet resultSet =
71-
getJdbcDatabaseMetaData()
72-
.getTables( catalog, schemaPattern, tableNamePattern, types) ) {
71+
getJdbcDatabaseMetaData()
72+
.getTables( catalog, schemaPattern, tableNamePattern, types) ) {
7373
return processor.process( resultSet );
7474
}
7575
}
@@ -83,8 +83,8 @@ protected <T> T processColumnsResultSet(
8383
ExtractionContext.ResultSetProcessor<T> processor)
8484
throws SQLException {
8585
try ( ResultSet resultSet =
86-
getJdbcDatabaseMetaData()
87-
.getColumns( catalog, schemaPattern, tableNamePattern, columnNamePattern ) ) {
86+
getJdbcDatabaseMetaData()
87+
.getColumns( catalog, schemaPattern, tableNamePattern, columnNamePattern ) ) {
8888
return processor.process( resultSet );
8989
}
9090
}
@@ -97,8 +97,8 @@ protected <T> T processPrimaryKeysResultSet(
9797
ExtractionContext.ResultSetProcessor<T> processor)
9898
throws SQLException {
9999
try ( ResultSet resultSet =
100-
getJdbcDatabaseMetaData()
101-
.getPrimaryKeys( catalogFilter, schemaFilter, tableName.getText() ) ) {
100+
getJdbcDatabaseMetaData()
101+
.getPrimaryKeys( catalogFilter, schemaFilter, tableName.getText() ) ) {
102102
return processor.process( resultSet );
103103
}
104104
}
@@ -113,8 +113,8 @@ protected <T> T processIndexInfoResultSet(
113113
ExtractionContext.ResultSetProcessor<T> processor)
114114
throws SQLException {
115115
try ( ResultSet resultSet =
116-
getJdbcDatabaseMetaData()
117-
.getIndexInfo( catalog, schema, table, unique, approximate ) ) {
116+
getJdbcDatabaseMetaData()
117+
.getIndexInfo( catalog, schema, table, unique, approximate ) ) {
118118
return processor.process( resultSet );
119119
}
120120
}
@@ -127,8 +127,8 @@ protected <T> T processImportedKeysResultSet(
127127
ExtractionContext.ResultSetProcessor<T> processor)
128128
throws SQLException {
129129
try ( ResultSet resultSet =
130-
getJdbcDatabaseMetaData()
131-
.getImportedKeys( catalog, schema, table ) ) {
130+
getJdbcDatabaseMetaData()
131+
.getImportedKeys( catalog, schema, table ) ) {
132132
return processor.process( resultSet );
133133
}
134134
}
@@ -144,9 +144,9 @@ protected <T> T processCrossReferenceResultSet(
144144
ExtractionContext.ResultSetProcessor<T> processor)
145145
throws SQLException {
146146
try ( ResultSet resultSet =
147-
getJdbcDatabaseMetaData()
148-
.getCrossReference( parentCatalog, parentSchema, parentTable,
149-
foreignCatalog, foreignSchema, foreignTable) ) {
147+
getJdbcDatabaseMetaData()
148+
.getCrossReference( parentCatalog, parentSchema, parentTable,
149+
foreignCatalog, foreignSchema, foreignTable) ) {
150150
return processor.process( resultSet );
151151
}
152152
}

hibernate-core/src/test/java/org/hibernate/orm/test/boot/models/BootstrapContextTesting.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.hibernate.boot.archive.spi.ArchiveDescriptorFactory;
1818
import org.hibernate.boot.internal.ClassLoaderAccessImpl;
1919
import org.hibernate.boot.internal.ClassmateContext;
20-
import org.hibernate.boot.model.TypeBeanInstanceProducer;
20+
import org.hibernate.boot.internal.TypeBeanInstanceProducer;
2121
import org.hibernate.boot.model.convert.spi.ConverterDescriptor;
2222
import org.hibernate.boot.model.relational.AuxiliaryDatabaseObject;
2323
import org.hibernate.boot.registry.StandardServiceRegistry;

0 commit comments

Comments
 (0)