1 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 |