Class MetaData

java.lang.Object
org.jdbi.v3.core.statement.MetaData
All Implemented Interfaces:
Closeable, AutoCloseable, Configurable<MetaData>, ResultBearing

public final class MetaData extends Object implements ResultBearing
Access to Database Metadata.
  • Constructor Details Link icon

  • Method Details Link icon

    • scanResultSet Link icon

      public <R> R scanResultSet(ResultSetScanner<R> resultSetScanner)
      Description copied from interface: ResultBearing
      Invokes the mapper with a result set supplier, and returns the value returned by the mapper.
      Specified by:
      scanResultSet in interface ResultBearing
      Type Parameters:
      R - result type returned by the mapper.
      Parameters:
      resultSetScanner - result set scanner
      Returns:
      the value returned by the mapper.
    • execute Link icon

      public <R> R execute()
    • getHandle Link icon

      public final Handle getHandle()
    • getConfig Link icon

      public ConfigRegistry getConfig()
      Description copied from interface: Configurable
      Returns the configuration registry associated with this object.
      Specified by:
      getConfig in interface Configurable<This>
      Returns:
      the configuration registry associated with this object.
    • getContext Link icon

      public final StatementContext getContext()
      Returns the statement context associated with this statement.
      Returns:
      the statement context associated with this statement.
    • attachToHandleForCleanup Link icon

      @Beta public final MetaData attachToHandleForCleanup()
      Registers with the handle for cleaning when the handle is closed.
      There are some situations where Statements need to be cleaned up to avoid resource leaks. This method registers the current Statement it with the Handle. If the statement or the context are cleaned by themselves, it will automatically unregister, so in normal operations, resources should not pool for cleanup with the Handle.
      Since:
      3.35.0
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable