Package uk.org.ogsadai.tuple

Examples of uk.org.ogsadai.tuple.ColumnNotFoundException


                if(result < MIN_PRIORITY)
                  result = MAX_PRIORITY;
               
                if (i > noClassifiers)
                {
                    throw new ColumnNotFoundException(result);
                }
                priorities.add(result);
            }
        }
        return priorities;
View Full Code Here


        if (column instanceof Number)
        {
            result = ((Number)column).intValue();
            if (result < 0 || result > metadata.getColumnCount())
            {
                throw new ColumnNotFoundException(result);
            }
        }
        else if (column instanceof String)
        {
            String name = (String)column;
            result = metadata.getColumnMetadataPosition(name);
            if (result < 0)
            {
                throw new ColumnNotFoundException(name);
            }
        }
        else
        {
            throw new InvalidInputValueException(
View Full Code Here

                mColumnMapping.put(i, mapto);
                columns.remove(column.getName());
            }
            else
            {
                throw new ColumnNotFoundException(column.getName());
            }
        }
        if (columns.size() > 1)
        {
            throw new ActivityUserException(
View Full Code Here

                return index;
            }
            else
            {
                throw new ActivityUserException(
                        new ColumnNotFoundException((String)block));
            }
        }
        else
        {
            throw new InvalidInputValueException(
View Full Code Here

                return index;
            }
            else
            {
                throw new ActivityUserException(
                        new ColumnNotFoundException(index));
            }
        }
        else if (block instanceof String)
        {
            int index = metadata.getColumnMetadataPosition((String)block);
            if (index >= 0)
            {
                return index;
            }
            else
            {
                throw new ActivityUserException(
                        new ColumnNotFoundException((String)block));
            }
        }
        else
        {
            throw new InvalidInputValueException(
View Full Code Here

    {
        if (linearIndex >= metadata.getColumnCount()
                || linearIndex < 0)
        {
            throw new ActivityUserException(
                    new ColumnNotFoundException(linearIndex));
        }
        ColumnMetadata col = metadata.getColumnMetadata(linearIndex);
        if (col.getType() != TupleTypes._DOUBLE
                && col.getType() != TupleTypes._FLOAT
                && col.getType() != TupleTypes._LONG
View Full Code Here

    @Override
    public Object getObject(int index) throws ColumnNotFoundException
    {
        if (index < 0 || index >= mElements.size())
        {
            throw new ColumnNotFoundException(index);
        }
        Object result = mElements.get(index);
        mLastValueWasNull = (result == Null.VALUE);
        return result;
    }
View Full Code Here

                String columnName = template.substring(start + REPLACE_BEGIN.length(), end);
                int columnIndex = metadata.getColumnMetadataPosition(columnName);
                if (columnIndex == -1)
                {
                    throw new ActivityUserException(
                            new ColumnNotFoundException(columnName));
                }
                mColumns.add(columnIndex);
                mFixed.add(template.substring(prevStart, start));
                start = template.indexOf(REPLACE_BEGIN, end);
                prevStart = end + REPLACE_END.length();
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.tuple.ColumnNotFoundException

Copyright © 2018 www.massapicom. 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.