Class BarListDesc
- java.lang.Object
-
- com.basiscomponents.db.fieldconverter.BarListDesc
-
- All Implemented Interfaces:
IConversionRule
public class BarListDesc extends Object implements IConversionRule
-
-
Constructor Summary
Constructors Constructor Description BarListDesc(String codeCol, String descCol, String attr_ldat, String attr_opts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataField
deserialize(DataField field, DataRow dr)
Convert from internal (source) type value to external (target) type value "going up".int
getSourceFieldType()
int
getTargetFieldType()
DataField
serialize(DataField field, DataRow dr)
Convert from external (target) type value to internal (source) type value "going down".void
setDesc(DataField field, DataRow dr)
Use the code column's value to get and format the description column's value.
-
-
-
Method Detail
-
serialize
public DataField serialize(DataField field, DataRow dr)
Convert from external (target) type value to internal (source) type value "going down". In this case, we don't convert the value at all. We take the value and build the description column.- Specified by:
serialize
in interfaceIConversionRule
-
deserialize
public DataField deserialize(DataField field, DataRow dr)
Convert from internal (source) type value to external (target) type value "going up". In this case, we don't convert the value at all. We take the value and build the description column.- Specified by:
deserialize
in interfaceIConversionRule
-
getTargetFieldType
public int getTargetFieldType()
- Specified by:
getTargetFieldType
in interfaceIConversionRule
-
getSourceFieldType
public int getSourceFieldType()
- Specified by:
getSourceFieldType
in interfaceIConversionRule
-
-