Class SqlCountHolder

java.lang.Object
org.firebirdsql.gds.ng.SqlCountHolder

public final class SqlCountHolder extends Object
Class for holding the SQL counts (update, delete, select, insert) for a statement execution.

The long values returned from the getLongXXXCount methods should be considered as unsigned

Since:
3.0
Author:
Mark Rotteveel
  • Constructor Details

    • SqlCountHolder

      public SqlCountHolder(long updateCount, long deleteCount, long insertCount, long selectCount)
  • Method Details

    • getIntegerUpdateCount

      public int getIntegerUpdateCount()
      Returns:
      Update count as int, or 0 if the update count was too large.
      See Also:
    • getLongUpdateCount

      public long getLongUpdateCount()
      Returns:
      Number of updated records
    • getIntegerDeleteCount

      public int getIntegerDeleteCount()
      Returns:
      Delete count as int, or 0 if the delete count was too large.
      See Also:
    • getLongDeleteCount

      public long getLongDeleteCount()
      Returns:
      Number of deleted records
    • getIntegerInsertCount

      public int getIntegerInsertCount()
      Returns:
      Insert count as int, or 0 if the insert count was too large.
      See Also:
    • getLongInsertCount

      public long getLongInsertCount()
      Returns:
      Number of inserted records
    • getIntegerSelectCount

      public int getIntegerSelectCount()
      Returns:
      Select count as int, or 0 if the select count was too large.
      See Also:
    • getLongSelectCount

      public long getLongSelectCount()
      Returns:
      Number of selected records