Package org.jooq.impl

Class NoConnectionProvider

  • All Implemented Interfaces:
    ConnectionProvider

    public class NoConnectionProvider
    extends java.lang.Object
    implements ConnectionProvider
    An "empty" implementation that is never connected.
    Author:
    Lukas Eder
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Connection acquire()
      This method will always return null.
      void release​(java.sql.Connection connection)
      This method has no effect.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoConnectionProvider

        public NoConnectionProvider()
    • Method Detail

      • acquire

        public final java.sql.Connection acquire()
        This method will always return null.
        Specified by:
        acquire in interface ConnectionProvider
        Returns:
        A connection for the current ExecuteContext.
      • release

        public final void release​(java.sql.Connection connection)
        This method has no effect.
        Specified by:
        release in interface ConnectionProvider
        Parameters:
        connection - A connection that was previously obtained from ConnectionProvider.acquire(). This is never null.