projects
/
cfb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Partial implemenation of load-Analysis code.
[cfb.git]
/
prod
/
net
/
jaekl
/
cfb
/
db
/
Row.java
diff --git
a/prod/net/jaekl/cfb/db/Row.java
b/prod/net/jaekl/cfb/db/Row.java
index c5d5478954ce08468daf90074b035624eda52ead..f25b0ae0bd93432e4b2378248794ad2545ca5939 100644
(file)
--- a/
prod/net/jaekl/cfb/db/Row.java
+++ b/
prod/net/jaekl/cfb/db/Row.java
@@
-32,6
+32,14
@@
public class Row {
return num.longValue();
}
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)) {
protected void checkType(int index, Column.Type type) throws TypeMismatchException {
Column column = m_columns[index];
if (column.getType().equals(type)) {