Class MappingVirtualColumn

java.lang.Object
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 Details

    • relation

      protected final Relation relation
    • colname

      protected final String colname
    • table

      protected Map<String,String> table
    • defaultValue

      protected String defaultValue
    • defaultSpecified

      protected boolean defaultSpecified
    • isVirtualColumn

      protected final boolean isVirtualColumn
    • inputColumn

      protected final String inputColumn
    • cix

      protected int cix
  • Method Details

    • 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)