1 package net.jaekl.squelch.stmt;
3 import java.sql.SQLException;
4 import java.util.ArrayList;
6 import net.jaekl.squelch.sql.Column;
7 import net.jaekl.squelch.sql.Row;
9 public class TabularMock extends Tabular {
10 private Column[] m_cols;
11 private ArrayList<Row> m_rows;
14 public TabularMock() {
15 m_cols = new Column[0];
16 m_rows = new ArrayList<Row>();
21 Column[] getCols() throws SQLException {
22 return m_cols.clone();
27 if (m_rowIdx >= (m_rows.size() - 1)) {
31 return m_rows.get(m_rowIdx);
34 public void mock_setCols(Column[] cols) {
35 m_cols = cols.clone();
38 public void mock_addRow(Row row) {