Interface C3P0MessageLogger

  • All Superinterfaces:
    org.jboss.logging.BasicLogger, ConnectionPoolingLogger

    @MessageLogger(projectCode="HHH")
    @ValidIdRange(min=10001,
                  max=15000)
    public interface C3P0MessageLogger
    extends ConnectionPoolingLogger
    The jboss-logging MessageLogger 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.

    • 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 conflicting hibernate.c3p0.XYZ and c3p0.XYZ settings
        Parameters:
        hibernateStyle - The hibernate.c3p0 prefixed setting
        c3p0Style - The c3p0. 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 class
        jdbcUrl - 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