GH-9818: Fix typos in JavaDocs of JDBC components

Fixes: #9818
Issue link: https://github.com/spring-projects/spring-integration/issues/9818

(cherry picked from commit 370f308fe7)
This commit is contained in:
Artem Bilan
2025-02-11 11:13:55 -05:00
committed by Spring Builds
parent 26a72e124e
commit bd2744fe22
4 changed files with 18 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2024 the original author or authors.
* Copyright 2016-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -305,6 +305,19 @@ public class DefaultLockRepository
return this.renewQuery;
}
/**
* The flag to perform a database check query on start or not.
* @param checkDatabaseOnStart false to not perform the database check.
* @since 6.2
*/
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
this.checkDatabaseOnStart = checkDatabaseOnStart;
if (!checkDatabaseOnStart) {
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
"and required table is not going be checked.");
}
}
@Override
public void afterPropertiesSet() {
this.deleteQuery = String.format(this.deleteQuery, this.prefix);
@@ -347,19 +360,6 @@ public class DefaultLockRepository
this.readCommittedTransactionTemplate = new TransactionTemplate(this.transactionManager, transactionDefinition);
}
/**
* The flag to perform a database check query on start or not.
* @param checkDatabaseOnStart false to not perform the database check.
* @since 6.2
*/
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
this.checkDatabaseOnStart = checkDatabaseOnStart;
if (!checkDatabaseOnStart) {
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
"and required table is not going be checked.");
}
}
@Override
public boolean isAutoStartup() {
return this.checkDatabaseOnStart;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2017-2024 the original author or authors.
* Copyright 2017-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -193,7 +193,7 @@ public class JdbcMetadataStore implements ConcurrentMetadataStore, InitializingB
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
this.checkDatabaseOnStart = checkDatabaseOnStart;
if (!checkDatabaseOnStart) {
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
LOGGER.info("The 'JdbcMetadataStore' won't be started automatically " +
"and required table is not going be checked.");
}
}

View File

@@ -431,7 +431,7 @@ public class JdbcChannelMessageStore implements PriorityCapableChannelMessageSto
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
this.checkDatabaseOnStart = checkDatabaseOnStart;
if (!checkDatabaseOnStart) {
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
LOGGER.info("The 'JdbcChannelMessageStore' won't be started automatically " +
"and required table is not going be checked.");
}
}

View File

@@ -368,7 +368,7 @@ public class JdbcMessageStore extends AbstractMessageGroupStore
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
this.checkDatabaseOnStart = checkDatabaseOnStart;
if (!checkDatabaseOnStart) {
logger.info("The 'DefaultLockRepository' won't be started automatically " +
logger.info("The 'JdbcMessageStore' won't be started automatically " +
"and required table is not going be checked.");
}
}