Skip to content

Commit fa4c43f

Browse files
committed
remove @deprecated methods of CoreMessageLogger
1 parent 0c48c12 commit fa4c43f

File tree

1 file changed

+0
-77
lines changed

1 file changed

+0
-77
lines changed

hibernate-core/src/main/java/org/hibernate/internal/CoreMessageLogger.java

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
import org.hibernate.JDBCException;
1818
import org.hibernate.LockMode;
1919
import org.hibernate.cache.CacheException;
20-
import org.hibernate.dialect.Dialect;
21-
import org.hibernate.engine.jdbc.env.internal.LobCreationLogging;
2220
import org.hibernate.engine.spi.SessionFactoryImplementor;
2321
import org.hibernate.id.IntegralDataTypeHolder;
2422
import org.hibernate.service.Service;
@@ -58,14 +56,6 @@ public interface CoreMessageLogger extends BasicLogger {
5856
id = 8)
5957
void autoFlushWillNotWork();
6058

61-
/**
62-
* @deprecated Use {@link org.hibernate.engine.jdbc.batch.JdbcBatchLogging#batchContainedStatementsOnRelease} instead
63-
*/
64-
@Deprecated
65-
@LogMessage(level = INFO)
66-
@Message(value = "Releases batch still contained JDBC statements", id = 10)
67-
void batchContainedStatementsOnRelease();
68-
6959
@LogMessage(level = WARN)
7060
@Message(value = "Configuration settings with for connection provider '%s' are set, but the connection provider is not on the classpath; these properties will be ignored",
7161
id = 22)
@@ -482,14 +472,6 @@ void synchronizationFailed(
482472
@Message(value = "Could not deserialize cache file [%s]: %s", id = 307)
483473
void unableToDeserializeCache(String path, SerializationException error);
484474

485-
/**
486-
* @deprecated Use {@link org.hibernate.engine.jdbc.batch.JdbcBatchLogging#unableToExecuteBatch} instead
487-
*/
488-
@LogMessage(level = ERROR)
489-
@Message(value = "Exception executing batch [%s], SQL: %s", id = 315)
490-
@Deprecated
491-
void unableToExecuteBatch(Exception e, String sql );
492-
493475
@LogMessage(level = INFO)
494476
@Message(value = "Could not find any META-INF/persistence.xml file in the classpath", id = 318)
495477
void unableToFindPersistenceXmlInClasspath();
@@ -542,14 +524,6 @@ void synchronizationFailed(
542524
@Message(value = "Could not read or init a hi value", id = 351)
543525
void unableToReadOrInitHiValue(@Cause SQLException e);
544526

545-
/**
546-
* @deprecated Use {@link org.hibernate.engine.jdbc.batch.JdbcBatchLogging#unableToReleaseBatchStatement} instead
547-
*/
548-
@LogMessage(level = ERROR)
549-
@Message(value = "Unable to release batch statement...", id = 352)
550-
@Deprecated
551-
void unableToReleaseBatchStatement();
552-
553527
@LogMessage(level = ERROR)
554528
@Message(value = "Could not release a cache lock: %s", id = 353)
555529
void unableToReleaseCacheLock(CacheException ce);
@@ -594,14 +568,6 @@ void synchronizationFailed(
594568
@Message(value = "I/O reported error writing cached file: %s: %s", id = 378)
595569
void unableToWriteCachedFile(String path, String message);
596570

597-
/**
598-
* @deprecated Use {@link org.hibernate.engine.jdbc.JdbcLogging#unexpectedRowCounts} instead
599-
*/
600-
@LogMessage(level = WARN)
601-
@Message(value = "JDBC driver did not return the expected number of row counts", id = 381)
602-
@Deprecated
603-
void unexpectedRowCounts();
604-
605571
@LogMessage(level = WARN)
606572
@Message(value = "ResultSet had no statement associated with it, but was not yet registered", id = 386)
607573
void unregisteredResultSetWithoutStatement();
@@ -624,14 +590,6 @@ void unsupportedMultiTableBulkHqlJpaql(
624590
@Message(value = "Explicit segment value for id generator [%s.%s] suggested; using default [%s]", id = 398)
625591
void usingDefaultIdGeneratorSegmentValue(String tableName, String segmentColumnName, String defaultToUse);
626592

627-
/**
628-
* @deprecated Use {@link org.hibernate.dialect.DialectLogging#usingDialect} instead
629-
*/
630-
@LogMessage(level = DEBUG)
631-
@Message(value = "Using dialect: %s", id = 400)
632-
@Deprecated
633-
void usingDialect(Dialect dialect);
634-
635593
@LogMessage(level = ERROR)
636594
@Message(value = "Don't use old DTDs, read the Hibernate 3.x Migration Guide", id = 404)
637595
void usingOldDtd();
@@ -657,41 +615,6 @@ void unsupportedMultiTableBulkHqlJpaql(
657615
@Message(value = "Closing un-released batch", id = 420)
658616
void closingUnreleasedBatch();
659617

660-
661-
/**
662-
* @deprecated Use {@link LobCreationLogging#disablingContextualLOBCreation} instead
663-
*/
664-
@LogMessage(level = DEBUG)
665-
@Message(value = "Disabling contextual LOB creation as %s is true", id = 421)
666-
@Deprecated
667-
void disablingContextualLOBCreation(String nonContextualLobCreation);
668-
669-
/**
670-
* @deprecated Use {@link LobCreationLogging#disablingContextualLOBCreationSinceConnectionNull} instead
671-
*/
672-
@LogMessage(level = DEBUG)
673-
@Message(value = "Disabling contextual LOB creation as connection was null", id = 422)
674-
@Deprecated
675-
void disablingContextualLOBCreationSinceConnectionNull();
676-
677-
/**
678-
* @deprecated Use {@link LobCreationLogging#nonContextualLobCreationJdbcVersion} instead
679-
*/
680-
@LogMessage(level = DEBUG)
681-
@Message(value = "Disabling contextual LOB creation as JDBC driver reported JDBC version [%s] less than 4", id = 423)
682-
@Deprecated
683-
void disablingContextualLOBCreationSinceOldJdbcVersion(int jdbcMajorVersion);
684-
685-
/**
686-
* @deprecated Use {@link LobCreationLogging#contextualClobCreationFailed} instead
687-
*
688-
* @see LobCreationLogging#contextualClobCreationFailed
689-
* @see LobCreationLogging#contextualNClobCreationFailed
690-
*/
691-
@LogMessage(level = DEBUG)
692-
@Message(value = "Disabling contextual LOB creation as createClob() method threw error: %s", id = 424)
693-
@Deprecated
694-
void disablingContextualLOBCreationSinceCreateClobFailed(Throwable t);
695618
@LogMessage(level = INFO)
696619
@Message(value = "update timestamps cache puts: %s", id = 433)
697620
void timestampCachePuts(long updateTimestampsCachePutCount);

0 commit comments

Comments
 (0)