net.ontopia.topicmaps.db2tm
Class MappingVirtualColumn
java.lang.Object
net.ontopia.topicmaps.db2tm.MappingVirtualColumn
- All Implemented Interfaces:
- ValueIF
public class MappingVirtualColumn
- extends java.lang.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.
Method Summary |
void |
addMapping(java.lang.String from_value,
java.lang.String to_value)
|
java.lang.String |
getValue(java.lang.String[] tuple)
INTERNAL: Returns the value of the virtual column. |
void |
setDefault(java.lang.String defaultValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
relation
protected Relation relation
colname
protected java.lang.String colname
table
protected java.util.Map table
defaultValue
protected java.lang.String defaultValue
defaultSpecified
protected boolean defaultSpecified
isVirtualColumn
protected boolean isVirtualColumn
inputColumn
protected java.lang.String inputColumn
cix
protected int cix
getValue
public java.lang.String getValue(java.lang.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(java.lang.String from_value,
java.lang.String to_value)
setDefault
public void setDefault(java.lang.String defaultValue)
Copyright © 2000-2012 Ontopia.