Class ConnectionCollection

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    
    public final class ConnectionCollection
     implements AutoCloseable
                        

    Data structure for holding DSLContext objects with auto close capabilities.

    The contexts are held in a HashMap keyed by the jdbc address, username and password triple.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final DSLContext createOrGet(String jdbc, String username, String password) Creates a new DSLContext or returns an existing one, based on the passed jdbc address, username and password.
      Unit close()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait