Package org.dbunit.dataset

Examples of org.dbunit.dataset.RowOutOfBoundsException


        public int getRowCount() {
            return 0;
        }

        public Object getValue(int row, String column) throws DataSetException {
            throw new RowOutOfBoundsException("This table is always empty.");
        }
View Full Code Here


            return allowedRowNumbers.size();
        }

        public Object getValue(int row, String column) throws DataSetException {
            if (row >= allowedRowNumbers.size()) {
                throw new RowOutOfBoundsException();
            }
            return wrappedTable.getValue(allowedRowNumbers.get(row), column);
        }
View Full Code Here

   * @return The value of the given row at the given column.
   * @throws DataSetException Exception.
   */
  public Object getValue(int row, String column) throws DataSetException {
    if (row < 0 || row >= data.size()) {
      throw new RowOutOfBoundsException(); // !!! DbUnit uses this exception to detect end of iteration over rows!!!
    }
    if (!columnNameIndexes.containsKey(column)) {
      throw new NoSuchColumnException("No such column [" + column + "]");
    }
    int columnIndex = columnNameIndexes.get(column);
View Full Code Here

    return data.length;
  }

  public Object getValue(int row, String column) throws DataSetException {
    if (row < 0 || row >= data.length) {
      throw new RowOutOfBoundsException(); // !!! DbUnit uses this exception to detect end of iteration over rows!!!
    }
    return data[row][tableMetaData.getColumnIndex(column)];
  }
View Full Code Here

            if (_eot || row > _lastRow)
            {
                // Proactively close the resultset
                close();
                throw new RowOutOfBoundsException(row + " > " + _lastRow);
            }

            int columnIndex = getColumnIndex(columnName);
            Column column = _metaData.getColumns()[columnIndex];
            return column.getDataType().getSqlValue(columnIndex + 1, _resultSet);
View Full Code Here

                throw new UnsupportedOperationException("Cannot go backward!");
            }

            if (_eot || row > _lastRow)
            {
                throw new RowOutOfBoundsException(row + " > " + _lastRow);
            }

            return _rowValues[getColumnIndex(columnName)];
        }
View Full Code Here

    if ( row < max ) {
      int realRow = ((Integer) this.filteredRowsMapping.get( row )).intValue();
      Object value = this.originalTable.getValue(realRow, column);
      return value;
    } else {
      throw new RowOutOfBoundsException( "tried to access row " + row +
          " but rowCount is " + max );
    }
  }
View Full Code Here

    if ( row < max ) {
      int realRow = ((Integer) this.filteredRowsMapping.get( row )).intValue();
      Object value = this.originalTable.getValue(realRow, column);
      return value;
    } else {
      throw new RowOutOfBoundsException( "tried to access row " + row +
          " but rowCount is " + max );
    }
  }
View Full Code Here

            if (_eot || row > _lastRow)
            {
                // Proactively close the resultset
                close();
                throw new RowOutOfBoundsException(row + " > " + _lastRow);
            }

            int columnIndex = getColumnIndex(columnName);
            Column column = _metaData.getColumns()[columnIndex];
            return column.getDataType().getSqlValue(columnIndex + 1, _resultSet);
View Full Code Here

TOP

Related Classes of org.dbunit.dataset.RowOutOfBoundsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.