Java Code Examples for ims.framework.enumerations.DynamicCellType.DATETIME

The following are Jave code examples for showing how to use DATETIME of the ims.framework.enumerations.DynamicCellType class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File:   Source Code and License Vote up 5 votes
public DynamicCellType getCellType(ReportSeedParsedVo voReportSeed)
	if (voReportSeed == null)
		return DynamicCellType.LABEL;

	String dataType = voReportSeed.getType();
	if (dataType == null)
		return DynamicCellType.LABEL;

	if (dataType.equals(INTEGER) || dataType.equals(BIG_INTEGER) || dataType.equals(SHORT) || dataType.equals(LONG))
		DynamicCellType defaultType = DynamicCellType.INT;

		if (dataType.equals(INTEGER))
			defaultType = getBoReportType(voReportSeed);

		return defaultType;

	if (dataType.equals(BOOOLEAN))
		return DynamicCellType.BOOL;

	if (dataType.equals(STRING))
		return DynamicCellType.STRING;

	if (dataType.equals(BIG_DECIMAL) || dataType.equals(FLOAT) || dataType.equals(DOUBLE))
		return DynamicCellType.DECIMAL;

	if (dataType.equals(SQL_DATE))
		return DynamicCellType.DATE;

	if (dataType.equals(UTIL_DATE))
		return DynamicCellType.DATETIME;
	if (dataType.equals(SQL_TIME))
		return DynamicCellType.TIME;

	return DynamicCellType.LABEL;