HHH-17424 - Have Dialect manage more of ExtractedDatabaseMetadata

https://hibernate.atlassian.net/browse/HHH-17424
This commit is contained in:
Steve Ebersole 2023-11-15 19:04:02 -06:00
parent dcd7a20399
commit 637838d92b
2 changed files with 3 additions and 3 deletions

View File

@ -593,7 +593,7 @@ public class SessionFactoryOptionsBuilder implements SessionFactoryOptions {
private boolean disallowBatchUpdates(Dialect dialect, ExtractedDatabaseMetaData meta) { private boolean disallowBatchUpdates(Dialect dialect, ExtractedDatabaseMetaData meta) {
final Boolean dialectAnswer = dialect.supportsBatchUpdates(); final Boolean dialectAnswer = dialect.supportsBatchUpdates();
if ( dialectAnswer != null ) { if ( dialectAnswer != null ) {
return dialectAnswer; return !dialectAnswer;
} }
return !meta.supportsBatchUpdates(); return !meta.supportsBatchUpdates();
} }

View File

@ -4953,7 +4953,7 @@ public abstract class Dialect implements ConversionContext, TypeContributor, Fun
} }
/** /**
* Does this Dialect support {@linkplain PreparedStatement#addBatch() batch updates}. * Whether this Dialect supports {@linkplain PreparedStatement#addBatch() batch updates}.
* *
* @return {@code true} indicates it does; {@code false} indicates it does not; {@code null} indicates * @return {@code true} indicates it does; {@code false} indicates it does not; {@code null} indicates
* it might and that database-metadata should be consulted. * it might and that database-metadata should be consulted.
@ -4966,7 +4966,7 @@ public abstract class Dialect implements ConversionContext, TypeContributor, Fun
} }
/** /**
* Does this Dialect support {@linkplain PreparedStatement#addBatch() batch updates}. * Whether this Dialect supports the JDBC {@link java.sql.Types#REF_CURSOR} type.
* *
* @return {@code true} indicates it does; {@code false} indicates it does not; {@code null} indicates * @return {@code true} indicates it does; {@code false} indicates it does not; {@code null} indicates
* it might and that database-metadata should be consulted * it might and that database-metadata should be consulted