Skip to content

Commit 003dcc6

Browse files
committed
getFactory to getSessionFactory to avoid conflicts
1 parent f7851a7 commit 003dcc6

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/sql/results/internal/ReactiveResultSetAccess.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public interface ReactiveResultSetAccess extends JdbcValuesMetadata {
3434

3535
ResultSet getResultSet();
3636

37-
SessionFactoryImplementor getFactory();
37+
SessionFactoryImplementor getSessionFactory();
38+
3839
void release();
3940

4041
/**
@@ -51,7 +52,7 @@ default int getColumnCount() {
5152
return getResultSet().getMetaData().getColumnCount();
5253
}
5354
catch (SQLException e) {
54-
throw getFactory().getJdbcServices().getJdbcEnvironment().getSqlExceptionHelper().convert(
55+
throw getSessionFactory().getJdbcServices().getJdbcEnvironment().getSqlExceptionHelper().convert(
5556
e,
5657
"Unable to access ResultSet column count"
5758
);
@@ -63,7 +64,7 @@ default int resolveColumnPosition(String columnName) {
6364
return getResultSet().findColumn( columnName );
6465
}
6566
catch (SQLException e) {
66-
throw getFactory().getJdbcServices().getJdbcEnvironment().getSqlExceptionHelper().convert(
67+
throw getSessionFactory().getJdbcServices().getJdbcEnvironment().getSqlExceptionHelper().convert(
6768
e,
6869
"Unable to find column position by name"
6970
);
@@ -72,13 +73,13 @@ default int resolveColumnPosition(String columnName) {
7273

7374
default String resolveColumnName(int position) {
7475
try {
75-
return getFactory().getJdbcServices().getJdbcEnvironment()
76+
return getSessionFactory().getJdbcServices().getJdbcEnvironment()
7677
.getDialect()
7778
.getColumnAliasExtractor()
7879
.extractColumnAlias( getResultSet().getMetaData(), position );
7980
}
8081
catch (SQLException e) {
81-
throw getFactory().getJdbcServices().getJdbcEnvironment().getSqlExceptionHelper().convert(
82+
throw getSessionFactory().getJdbcServices().getJdbcEnvironment().getSqlExceptionHelper().convert(
8283
e,
8384
"Unable to find column name by position"
8485
);
@@ -87,7 +88,7 @@ default String resolveColumnName(int position) {
8788

8889
@Override
8990
default <J> BasicType<J> resolveType(int position, JavaType<J> explicitJavaType, TypeConfiguration typeConfiguration) {
90-
final JdbcServices jdbcServices = getFactory().getJdbcServices();
91+
final JdbcServices jdbcServices = getSessionFactory().getJdbcServices();
9192
try {
9293
final ResultSetMetaData metaData = getResultSet().getMetaData();
9394
final String columnTypeName = metaData.getColumnTypeName( position );
@@ -145,7 +146,7 @@ public EnumType getEnumeratedType() {
145146

146147
@Override
147148
public Dialect getDialect() {
148-
return getFactory().getJdbcServices().getDialect();
149+
return getSessionFactory().getJdbcServices().getDialect();
149150
}
150151
}
151152
);

0 commit comments

Comments
 (0)