Package org.hibernate.c3p0.internal
Interface C3P0MessageLogger
-
- All Superinterfaces:
org.jboss.logging.BasicLogger
,ConnectionPoolingLogger
@MessageLogger(projectCode="HHH") @ValidIdRange(min=10001, max=15000) public interface C3P0MessageLogger extends ConnectionPoolingLogger
The jboss-loggingMessageLogger
for the hibernate-c3p0 module. It reserves message ids ranging from 10001 to 15000 inclusively.New messages must be added after the last message defined to ensure message codes are unique.
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.logging.Logger
C3P0_LOGGER
static C3P0MessageLogger
C3P0_MSG_LOGGER
static String
NAME
-
Fields inherited from interface org.hibernate.internal.log.ConnectionPoolingLogger
CONNECTIONS_LOGGER, CONNECTIONS_MESSAGE_LOGGER, LOGGER_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bothHibernateAndC3p0StylesSet(String hibernateStyle, String c3p0Style)
Log a message (WARN) about conflictinghibernate.c3p0.XYZ
andc3p0.XYZ
settingsvoid
c3p0UsingDriver(String jdbcDriverClass, String jdbcUrl)
Log a message (INFO) about which Driver class is being used.String
jdbcDriverNotFound(String jdbcDriverClass)
Build a message about not being able to find the JDBC driver classvoid
unableToDestroyC3p0ConnectionPool(SQLException e)
Log a message (WARN) about not being able to stop the underlying c3p0 pool.String
unableToInstantiateC3p0ConnectionPool()
Build a message about not being able to start the underlying c3p0 pool.-
Methods inherited from interface org.jboss.logging.BasicLogger
debug, debug, debug, debug, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugv, debugv, debugv, debugv, debugv, debugv, debugv, debugv, error, error, error, error, errorf, errorf, errorf, errorf, errorf, errorf, errorf, errorf, errorv, errorv, errorv, errorv, errorv, errorv, errorv, errorv, fatal, fatal, fatal, fatal, fatalf, fatalf, fatalf, fatalf, fatalf, fatalf, fatalf, fatalf, fatalv, fatalv, fatalv, fatalv, fatalv, fatalv, fatalv, fatalv, info, info, info, info, infof, infof, infof, infof, infof, infof, infof, infof, infov, infov, infov, infov, infov, infov, infov, infov, isDebugEnabled, isEnabled, isInfoEnabled, isTraceEnabled, log, log, log, log, logf, logf, logf, logf, logf, logf, logf, logf, logf, logf, logf, logf, logv, logv, logv, logv, logv, logv, logv, logv, logv, logv, logv, logv, trace, trace, trace, trace, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracev, tracev, tracev, tracev, tracev, tracev, tracev, tracev, warn, warn, warn, warn, warnf, warnf, warnf, warnf, warnf, warnf, warnf, warnf, warnv, warnv, warnv, warnv, warnv, warnv, warnv, warnv
-
Methods inherited from interface org.hibernate.internal.log.ConnectionPoolingLogger
autoCommitMode, cleaningUpConnectionPool, connectionProperties, hibernateConnectionPoolSize, jdbcDriverNotSpecified, jdbcIsolationLevel, jdbcUrlNotSpecified, loadedDriver, loadedDrivers, noDriver, unableToCloseConnection, unableToClosePooledConnection, usingHibernateBuiltInConnectionPool, usingUrl
-
-
-
-
Field Detail
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
C3P0_LOGGER
static final org.jboss.logging.Logger C3P0_LOGGER
-
C3P0_MSG_LOGGER
static final C3P0MessageLogger C3P0_MSG_LOGGER
-
-
Method Detail
-
bothHibernateAndC3p0StylesSet
@LogMessage(level=WARN) @Message(value="Both hibernate-style property \'%1$s\' and c3p0-style property \'%2$s\' have been set in Hibernate properties. Hibernate-style property \'%1$s\' will be used and c3p0-style property \'%2$s\' will be ignored!", id=10001) void bothHibernateAndC3p0StylesSet(String hibernateStyle, String c3p0Style)
Log a message (WARN) about conflictinghibernate.c3p0.XYZ
andc3p0.XYZ
settings- Parameters:
hibernateStyle
- Thehibernate.c3p0
prefixed settingc3p0Style
- Thec3p0.
prefixed setting
-
c3p0UsingDriver
@LogMessage(level=INFO) @Message(value="C3P0 using driver: %s at URL: %s", id=10002) void c3p0UsingDriver(String jdbcDriverClass, String jdbcUrl)
Log a message (INFO) about which Driver class is being used.- Parameters:
jdbcDriverClass
- The JDBC Driver classjdbcUrl
- The JDBC URL
-
jdbcDriverNotFound
@Message(value="JDBC Driver class not found: %s", id=10003) String jdbcDriverNotFound(String jdbcDriverClass)
Build a message about not being able to find the JDBC driver class- Parameters:
jdbcDriverClass
- The JDBC driver class we could not find- Returns:
- The message
-
unableToDestroyC3p0ConnectionPool
@LogMessage(level=WARN) @Message(value="Could not destroy C3P0 connection pool", id=10004) void unableToDestroyC3p0ConnectionPool(@Cause SQLException e)
Log a message (WARN) about not being able to stop the underlying c3p0 pool.- Parameters:
e
- The exception when we tried to stop pool
-
unableToInstantiateC3p0ConnectionPool
@Message(value="Could not instantiate C3P0 connection pool", id=10005) String unableToInstantiateC3p0ConnectionPool()
Build a message about not being able to start the underlying c3p0 pool.- Returns:
- The message
-
-