Examples of LabelDomain


Examples of org.jboss.dashboard.domain.label.LabelDomain

            // Text-like columns.
            case Types.VARCHAR:
            case Types.LONGVARCHAR:
            case Types.BIT: // Booleans
                setDomain(new LabelDomain());
                break;

             // Number-like columns.
            case Types.BIGINT:
            case Types.INTEGER:
            case Types.BOOLEAN:
            case Types.DECIMAL:
            case Types.DOUBLE:
            case Types.FLOAT:
            case Types.NUMERIC:
            case Types.REAL:
            case Types.SMALLINT:
                setDomain(new NumericDomain());
                break;

            // Date-like columns.
            case Types.DATE:
            case Types.TIME:
            case Types.TIMESTAMP:
                setDomain(new DateDomain());
                break;

            // Unsupported types are treated as a string values.
            default:
                setDomain(new LabelDomain());
                break;
        }
    }
View Full Code Here

Examples of org.jboss.dashboard.domain.label.LabelDomain

            // Text-like columns.
            case Types.VARCHAR:
            case Types.LONGVARCHAR:
            case Types.BIT: // Booleans
                setDomain(new LabelDomain());
                break;

             // Mumber-like columns.
            case Types.BIGINT:
            case Types.INTEGER:
            case Types.BOOLEAN:
            case Types.DECIMAL:
            case Types.DOUBLE:
            case Types.FLOAT:
            case Types.NUMERIC:
            case Types.REAL:
            case Types.SMALLINT:
                setDomain(new NumericDomain());
                break;

            // Date-like columns.
            case Types.DATE:
            case Types.TIME:
            case Types.TIMESTAMP:
                setDomain(new DateDomain());
                break;

            // Unsupported types are treated as a string values.
            default:
                setDomain(new LabelDomain());
                break;
        }
    }
View Full Code Here

Examples of org.jboss.dashboard.domain.label.LabelDomain

        } catch (Exception e) {
            try {
                _numberFormat.parse(value);
                return new NumericDomain();
            } catch (Exception ee) {
                return new LabelDomain();
            }
        }
    }
View Full Code Here

Examples of org.jboss.dashboard.domain.label.LabelDomain

                        filter.removeProperty(propId);
                    }
                    else if (allowedValue instanceof CompositeInterval) {
                        CompositeInterval compositeInterval = (CompositeInterval) allowedValue;
                        if (compositeInterval.getDomain() instanceof LabelDomain) {
                            LabelDomain labelDomain = (LabelDomain) compositeInterval.getDomain();
                            Set<Integer> compositeRows = labelDomain.getRowNumbers(compositeInterval.getIntervals());
                            targetRows.addAll(compositeRows);
                            filter.removeProperty(propId);
                        }
                    }
                }
View Full Code Here

Examples of org.jboss.dashboard.domain.label.LabelDomain

            DataProperty dataProp = getPropertyByColumn(columns[j]);
            DataProperty _prop = dataProp.cloneProperty();
            _result.addProperty(_prop, j);

            if (pivotColumn == -1 && groupByProperty.equals(dataProp)) {
                _prop.setDomain(new LabelDomain());
                pivotColumn = j;

                // The row values for the pivot column are the own interval instances.
                for (Interval interval : intervals) {
                    _result.addRowValue(j, interval);
View Full Code Here

Examples of org.jboss.dashboard.domain.label.LabelDomain

            if (sortIndex < 0 || sortIndex == pivotColumn) index.sortByValue(distinctValues, sortOrder);
            else index.sortByScalar(distinctValues, functionCodes[sortIndex], columns[sortIndex], sortOrder);
        }

        // Build the label interval set from the sorted list of distinct values.
        LabelDomain _pivotDomain = (LabelDomain) _pivotProp.getDomain();
        List<Interval> intervals = _pivotDomain.getIntervals(distinctValues);

        // Populate the dataset with the calculations.
        for (int j=0; j<columns.length; j++) {
            DataProperty dataProp = getPropertyByColumn(columns[j]);
View Full Code Here

Examples of org.jboss.dashboard.domain.label.LabelDomain

        } catch (Exception e) {
            try {
                _numberFormat.parse(value);
                return new NumericDomain();
            } catch (Exception ee) {
                return new LabelDomain();
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.