select queries now work, and print tabular output.
[squelch.git] / src / main / java / net / jaekl / squelch / sql / Row.java
1 package net.jaekl.squelch.sql;
2
3 public class Row {
4         private Object[] m_args;
5         
6         public Row(int numCols) {
7                 m_args = new Object[numCols];
8         }
9         
10         // 1-based index, like JDBC
11         public void setValue(int idx, Object value) {
12                 m_args[idx - 1] = value;
13         }
14         
15         public Object getValue(int idx) {
16                 return m_args[idx-1];
17         }
18 }