Class DataTypeConvertUtil
java.lang.Object
org.eclipse.birt.report.model.api.util.DataTypeConvertUtil
The utility class to convert values between parameter type choices and column
data type choices.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconverToColumnDataType(String paramType) Returns the corresponding column data type choice with the given parameter type.static StringconverToParamType(String columnType) Returns the corresponding parameter type choice with the given column data type.
-
Constructor Details
-
DataTypeConvertUtil
public DataTypeConvertUtil()
-
-
Method Details
-
converToParamType
Returns the corresponding parameter type choice with the given column data type. The column data type values are defined inDesignChoiceConstantscan be one of the followings:COLUMN_DATA_TYPE_BOOLEANCOLUMN_DATA_TYPE_DATETIMECOLUMN_DATA_TYPE_DATECOLUMN_DATA_TYPE_TIMECOLUMN_DATA_TYPE_DECIMALCOLUMN_DATA_TYPE_FLOATCOLUMN_DATA_TYPE_INTEGERCOLUMN_DATA_TYPE_STRING
- Parameters:
columnType- the column data type- Returns:
- the parameter type
-
converToColumnDataType
Returns the corresponding column data type choice with the given parameter type. The column data type values are defined inDesignChoiceConstantscan be one of the followings:PARAM_TYPE_BOOLEANPARAM_TYPE_DATETIMEPARAM_TYPE_DATEPARAM_TYPE_TIMEPARAM_TYPE_DECIMALPARAM_TYPE_FLOATPARAM_TYPE_INTEGERPARAM_TYPE_STRING
- Parameters:
paramType- the parameter type- Returns:
- the column data type
-