private HistoryTableRowDdmInfo getDdmInfo()

in src/main/java/com/epam/digital/data/platform/history/repository/HistoryTableSelectRepository.java [100:124]


  private HistoryTableRowDdmInfo getDdmInfo(ResultSet resultSet) throws SQLException {
    var ddmInfo = new HistoryTableRowDdmInfo();
    ddmInfo.setCreatedAt(
        Optional.ofNullable(resultSet.getTimestamp(DDM_CREATED_AT_COLUMN))
            .map(DateUtils::getDateTimeFromSqlTimestamp)
            .orElse(null));
    ddmInfo.setCreatedBy(resultSet.getString(DDM_CREATED_BY_COLUMN));
    ddmInfo.setDmlOp(resultSet.getString(DDM_DML_OP_COLUMN));
    ddmInfo.setSystemId(resultSet.getObject(DDM_SYSTEM_ID_COLUMN, UUID.class));
    ddmInfo.setApplicationId(resultSet.getObject(DDM_APPLICATION_ID_COLUMN, UUID.class));
    ddmInfo.setBusinessProcessId(resultSet.getObject(DDM_BUSINESS_PROCESS_ID_COLUMN, UUID.class));
    ddmInfo.setBusinessProcessDefinitionId(
        resultSet.getString(DDM_BUSINESS_PROCESS_DEFINITION_ID_COLUMN));
    ddmInfo.setBusinessProcessInstanceId(
        resultSet.getString(DDM_BUSINESS_PROCESS_INSTANCE_ID_COLUMN));
    ddmInfo.setBusinessActivity(resultSet.getString(DDM_BUSINESS_ACTIVITY_COLUMN));
    ddmInfo.setBusinessActivityInstanceId(
        resultSet.getString(DDM_BUSINESS_ACTIVITY_INSTANCE_ID_COLUMN));
    ddmInfo.setDigitalSign(resultSet.getString(DDM_DIGITAL_SIGN_COLUMN));
    ddmInfo.setDigitalSignDerived(resultSet.getString(DDM_DIGITAL_SIGN_DERIVED_COLUMN));
    ddmInfo.setDigitalSignChecksum(resultSet.getString(DDM_DIGITAL_SIGN_CHECKSUM_COLUMN));
    ddmInfo.setDigitalSignDerivedChecksum(
        resultSet.getString(DDM_DIGITAL_SIGN_DERIVED_CHECKSUM_COLUMN));
    return ddmInfo;
  }