KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > result > SimpleRowValue


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

5 package org.h2.result;
6
7 import org.h2.value.Value;
8
9 public class SimpleRowValue implements SearchRow {
10     
11     private int pos;
12     private int virtualColumnCount;
13     private Value data;
14     
15     public SimpleRowValue(int columnCount) {
16         this.virtualColumnCount = columnCount;
17     }
18     
19     public int getColumnCount() {
20         return virtualColumnCount;
21     }
22     public int getPos() {
23         return pos;
24     }
25     public Value getValue(int index) {
26         return data;
27     }
28     public void setPos(int pos) {
29         this.pos = pos;
30     }
31     
32     public void setValue(int idx, Value v) {
33         data = v;
34     }
35
36 }
37
Popular Tags