Add "Describe" command, with support for describing both (a) specific table(s) and...
[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 Row(Object[] values) {
11                 m_args = values.clone();
12         }
13         
14         // 1-based index, like JDBC
15         public void setValue(int idx, Object value) {
16                 m_args[idx - 1] = value;
17         }
18         
19         public Object getValue(int idx) {
20                 return m_args[idx-1];
21         }
22 }