Class SqlResult.SqlResultImpl<T>

java.lang.Object
io.vertx.mutiny.sqlclient.SqlResult.SqlResultImpl<T>
All Implemented Interfaces:
MutinyDelegate, SqlResult<T>
Enclosing interface:
SqlResult<T>

public static class SqlResult.SqlResultImpl<T> extends Object implements SqlResult<T>
  • Field Details

    • __typeArg_0

      public final TypeArg<T> __typeArg_0
  • Constructor Details

    • SqlResultImpl

      public SqlResultImpl(io.vertx.sqlclient.SqlResult<T> delegate)
      Create a new instance of SqlResult.SqlResultImpl delegating to the given (non-null) instance of SqlResult.
    • SqlResultImpl

      public SqlResultImpl(io.vertx.sqlclient.SqlResult<T> delegate, TypeArg<T> typeArg_0)
  • Method Details

    • getDelegate

      public io.vertx.sqlclient.SqlResult<T> getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Specified by:
      getDelegate in interface SqlResult<T>
      Returns:
      the delegate instance
    • rowCount

      public int rowCount()
      Get the number of the affected rows in the operation to this SqlResult.
      Specified by:
      rowCount in interface SqlResult<T>
      Returns:
      the count of affected rows.
    • rowDescriptor

      public RowDescriptor rowDescriptor()
      Specified by:
      rowDescriptor in interface SqlResult<T>
    • columnsNames

      public List<String> columnsNames()
      Get the names of columns in the SqlResult.
      Specified by:
      columnsNames in interface SqlResult<T>
      Returns:
      the list of names of columns.
    • columnDescriptors

      public List<ColumnDescriptor> columnDescriptors()
      Get the column descriptors in the SqlResult.
      Specified by:
      columnDescriptors in interface SqlResult<T>
      Returns:
      the list of column descriptors
    • size

      public int size()
      Get the number of rows retrieved in the SqlResult.
      Specified by:
      size in interface SqlResult<T>
      Returns:
      the count of rows.
    • property

      public <V> V property(PropertyKind<V> propertyKind)
      Get the specific property with the specified PropertyKind.
      Specified by:
      property in interface SqlResult<T>
      Type Parameters:
      V - the type of the property value
      Parameters:
      propertyKind - the unique object which is used to indicate which property of the execution result to fetch
      Returns:
      the value of the property
    • value

      public T value()
      Get the execution result value, the execution result type may vary such as a rowSet or even a string.
      Specified by:
      value in interface SqlResult<T>
      Returns:
      the result value
    • next

      public SqlResult<T> next()
      Return the next available result or null, e.g for a simple query that executed multiple queries or for a batch result.
      Specified by:
      next in interface SqlResult<T>
      Returns:
      the next available result or null if none is available