/
JackcessRow.java
71 lines (57 loc) · 1.24 KB
/
JackcessRow.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package org.eclipse.efbt.util.access.impl.jackcess;
import java.util.Date;
import com.healthmarketscience.jackcess.Row;
import org.eclipse.efbt.util.accessdb.AccessRow;
/**
* A wrapper around a Jackcess Row, the wrapper implements the
* Access Row interface
*
* @author Neil Mackenzie
*
*/
public class JackcessRow implements AccessRow{
/**
* The JackcessRow
*/
Row underlyingRow;
/**
* Constructor taking a Jackcess Row as input
*
*/
public JackcessRow(Row row)
{
underlyingRow = row;
}
/**
* Gets the String value from a particular column in the row
*
* @param columnName
*/
public String getString(String columnName) {
return underlyingRow.getString(columnName);
}
/**
* Gets the integer value from a particular column in the row
*
* @param columnName
*/
public int getInt(String columnName) {
return underlyingRow.getInt(columnName);
}
/**
* Gets the date value from a particular column in the row
*
* @param columnName
*/
public Date getDate(String columnName) {
return underlyingRow.getDate(columnName);
}
/**
* Gets the boolean value from a particular column in the row
*
* @param columnName
*/
public boolean getBoolean(String columnName) {
return false;
}
}