Partial implemenation of load-Analysis code.
[cfb.git] / prod / net / jaekl / cfb / db / Row.java
index c5d5478954ce08468daf90074b035624eda52ead..f25b0ae0bd93432e4b2378248794ad2545ca5939 100644 (file)
@@ -32,6 +32,14 @@ public class Row {
                return num.longValue();
        }
        
+       public java.util.Date getDate(int index) throws TypeMismatchException
+       {
+               checkType(index, Column.Type.INTEGER);
+               long milliseconds = (Long)m_values[index];
+               java.util.Date date = new java.util.Date(milliseconds);
+               return date;
+       }
+       
        protected void checkType(int index, Column.Type type) throws TypeMismatchException {
                Column column = m_columns[index];
                if (column.getType().equals(type)) {