KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > table > SingleColumnResolver


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.table;
6
7 import org.h2.value.Value;
8
9 public class SingleColumnResolver implements ColumnResolver {
10
11     private Column column;
12     private Value value;
13
14     SingleColumnResolver(Column column) {
15         this.column = column;
16     }
17
18     public String JavaDoc getTableAlias() {
19         return null;
20     }
21
22     public void setValue(Value value) {
23         this.value = value;
24     }
25
26     public Value getValue(Column column) {
27         return value;
28     }
29
30     public Column[] getColumns() {
31         return new Column[] { column };
32     }
33
34     public String JavaDoc getSchemaName() {
35         return null;
36     }
37
38     public TableFilter getTableFilter() {
39         return null;
40     }
41
42 }
43
Popular Tags