Refactor tabular output for eventual re-use printing table metadata.
[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         public void setValue(int idx, Object value) {
11                 m_args[idx - 1] = value;
12         }
13         
14         public Object getValue(int idx) {
15                 return m_args[idx-1];
16         }
17 }