net.ontopia.topicmaps.db2tm
Class MappingVirtualColumn

java.lang.Object
  extended by net.ontopia.topicmaps.db2tm.MappingVirtualColumn
All Implemented Interfaces:
ValueIF

public class MappingVirtualColumn
extends Object
implements ValueIF

INTERNAL: Virtual column that used a hash table to map from old value to new value. A default value can also be specified when no entry exists.


Field Summary
protected  int cix
           
protected  String colname
           
protected  boolean defaultSpecified
           
protected  String defaultValue
           
protected  String inputColumn
           
protected  boolean isVirtualColumn
           
protected  Relation relation
           
protected  Map table
           
 
Method Summary
 void addMapping(String from_value, String to_value)
           
 String getValue(String[] tuple)
          INTERNAL: Returns the value of the virtual column.
 void setDefault(String defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relation

protected Relation relation

colname

protected String colname

table

protected Map table

defaultValue

protected String defaultValue

defaultSpecified

protected boolean defaultSpecified

isVirtualColumn

protected boolean isVirtualColumn

inputColumn

protected String inputColumn

cix

protected int cix
Method Detail

getValue

public String getValue(String[] tuple)
Description copied from interface: ValueIF
INTERNAL: Returns the value of the virtual column.

Specified by:
getValue in interface ValueIF

addMapping

public void addMapping(String from_value,
                       String to_value)

setDefault

public void setDefault(String defaultValue)


Copyright © 2000-2012 Ontopia.