Interface ResourceRegistry

    • Method Detail

      • hasRegisteredResources

        boolean hasRegisteredResources()
        Does this registry currently have any registered resources?
        Returns:
        True if the registry does have registered resources; false otherwise.
      • releaseResources

        void releaseResources()
      • register

        void register​(Statement statement,
                      boolean cancelable)
        Register a JDBC statement.
        Parameters:
        statement - The statement to register.
        cancelable - Is the statement being registered capable of being cancelled? In other words, should we register it to be the target of subsequent cancelLastQuery() calls?
      • release

        void release​(Statement statement)
        Release a previously registered statement.
        Parameters:
        statement - The statement to release.
      • register

        void register​(ResultSet resultSet,
                      Statement statement)
        Register a JDBC result set.

        Implementation note: Second parameter has been introduced to prevent multiple registrations of the same statement in case ResultSet.getStatement() does not return original Statement object.

        Parameters:
        resultSet - The result set to register.
        statement - Statement from which ResultSet has been generated.
      • release

        void release​(ResultSet resultSet,
                     Statement statement)
        Release a previously registered result set.
        Parameters:
        resultSet - The result set to release.
        statement - Statement from which ResultSet has been generated.
      • register

        void register​(Blob blob)
      • release

        void release​(Blob blob)
      • register

        void register​(Clob clob)
      • release

        void release​(Clob clob)
      • register

        void register​(NClob nclob)
      • release

        void release​(NClob nclob)
      • cancelLastQuery

        void cancelLastQuery()