Class DbAnswer

java.lang.Object
org.qubership.atp.mia.model.pot.db.DbAnswer

public class DbAnswer extends Object
  • Constructor Details

    • DbAnswer

      public DbAnswer(boolean status, DbTable dbTable, int updateCount)
      Creates a result wrapper for operations that return tabular data.
      Parameters:
      status - true if the operation returned a result set
      dbTable - parsed result set
      updateCount - number of affected rows (or -1 if not applicable)
    • DbAnswer

      public DbAnswer(boolean status, int updateCount)
      Creates a result wrapper for update-only operations.
      Parameters:
      status - true if the operation succeeded
      updateCount - number of affected rows
    • DbAnswer

      @Deprecated public DbAnswer(boolean status, CallableStatement statement) throws SQLException
      Deprecated.
      Legacy constructor for JDBC stored procedures.
      Parameters:
      status - true if the procedure returned a result set
      statement - the CallableStatement used
      Throws:
      SQLException - if result extraction fails
  • Method Details

    • updateSqlResponse

      public void updateSqlResponse(SqlResponse response)
      Populates a SqlResponse with either result data or update count.
      Parameters:
      response - the response to update