Class SqlCountProcessor

java.lang.Object
org.firebirdsql.gds.ng.SqlCountProcessor
All Implemented Interfaces:
InfoProcessor<SqlCountHolder>

public final class SqlCountProcessor extends Object implements InfoProcessor<SqlCountHolder>
Info processor for retrieving affected record count.
Since:
3.0
Author:
Mark Rotteveel
  • Constructor Details

    • SqlCountProcessor

      public SqlCountProcessor()
  • Method Details

    • process

      public SqlCountHolder process(byte[] infoResponse) throws SQLException
      Description copied from interface: InfoProcessor
      Process an infoResponse block into an object of type T.
      Specified by:
      process in interface InfoProcessor<SqlCountHolder>
      Parameters:
      infoResponse - byte array containing the server response to an info-request.
      Returns:
      Processed response of type T (usually - but not required - a newly created object).
      Throws:
      InfoTruncatedException - (optional) if infoResponse is truncated and this processor could not recover by itself
      SQLException - for errors during processing the infoResponse.
    • getRecordCountInfoItems

      public byte[] getRecordCountInfoItems()