if (CurControlRow.isConditionComplete())
{
Object aValue;
String sFieldName = CurControlRow.getSelectedFieldName();
int nOperator = (int) CurControlRow.getSelectedOperator();
FieldColumn aFieldColumn = oQueryMetaData.getFieldColumnByDisplayName(sFieldName);
if (aFieldColumn.getStandardFormatKey() == oQueryMetaData.getNumberFormatter().getTextFormatKey())
{
aValue = "'" + CurControlRow.getValue() + "'";
}
//// TODO the following code is bound to be deprecated as soon as the query composer is able to handle date/time values as numbers
else if ((aFieldColumn.getStandardFormatKey() == oQueryMetaData.getNumberFormatter().getDateFormatKey()) ||
(aFieldColumn.getStandardFormatKey() == oQueryMetaData.getNumberFormatter().getDateTimeFormatKey()))
{
String sDate = CurControlRow.getDateTimeString(true);
aValue = "{D '" + sDate + "' }"; // FormatsSupplier
}
else if (aFieldColumn.getStandardFormatKey() == oQueryMetaData.getNumberFormatter().getTimeFormatKey())
{
String sTime = CurControlRow.getDateTimeString(true);
aValue = "'{T '" + sTime + "' }";
}
else
{
aValue = CurControlRow.getValue();
// if void
if (! AnyConverter.isVoid(aValue))
{
switch (aFieldColumn.getFieldType())
{
case DataType.TINYINT:
case DataType.BIGINT:
case DataType.INTEGER:
case DataType.SMALLINT: