接口 LogicalConnection

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      Connection close()
      Closes the JdbcSession, making it inactive and forcing release of any held resources
      ResourceRegistry getResourceRegistry()
      Provides access to the registry of JDBC resources associated with this LogicalConnection.
      boolean isOpen()
      Is this (logical) JDBC Connection still open/active.
      boolean isPhysicallyConnected()
      Is this JdbcSession currently physically connected (meaning does it currently hold a JDBC Connection)?
    • 方法详细资料

      • isOpen

        boolean isOpen()
        Is this (logical) JDBC Connection still open/active. In other words, has close() not been called yet?
        返回:
        true if still open (close() has not been called yet); false if not open (close() has been called).
      • close

        Connection close()
        Closes the JdbcSession, making it inactive and forcing release of any held resources
        返回:
        Legacy :( Returns the JDBC Connection *if* the user passed in a Connection originally.
      • isPhysicallyConnected

        boolean isPhysicallyConnected()
        Is this JdbcSession currently physically connected (meaning does it currently hold a JDBC Connection)?
        返回:
        true if the JdbcSession currently hold a JDBC Connection; false if it does not.
      • getResourceRegistry

        ResourceRegistry getResourceRegistry()
        Provides access to the registry of JDBC resources associated with this LogicalConnection.
        返回:
        The JDBC resource registry.
        抛出:
        ResourceClosedException - if the LogicalConnection is closed