Package org.hsqldb.HSQLInterface

Examples of org.hsqldb.HSQLInterface.HSQLParseException


        case OpTypes.MIN:               element = "min"; break;
        case OpTypes.MAX:               element = "max"; break;
        case OpTypes.AVG:               element = "avg"; break;
        case OpTypes.SQL_FUNCTION:      element = "function"; break;
        default:
            throw new HSQLParseException("Unsupported Operation: " +
                                         String.valueOf(opType));
        }

        sb.append(indent).append("<operation id=\"").append(this.getUniqueId()).append("\"");
        sb.append(" type=\"").append(element).append("\"");
View Full Code Here


        if ((typestring.compareTo("VARCHAR") == 0) &&
            (dataType.precision > 1048576)) {
            String msg = "VARCHAR column size for column ";
            msg += getTableNameString() + "." + columnName.name;
            msg += " is > 1048576 char maximum.";
            throw new HSQLParseException(msg);
        }

        // see if there is a default value for the column
        Expression exp = getDefaultExpression();
View Full Code Here

        case OpTypes.MAX:               element = "max"; break;
        case OpTypes.AVG:               element = "avg"; break;
        case OpTypes.SQL_FUNCTION:      element = "function"; break;
        case OpTypes.SIMPLE_COLUMN:     element = "simplecolumn"; break;
        default:
            throw new HSQLParseException("Unsupported Operation: " +
                                         String.valueOf(opType));
        }

        StringBuffer sb = new StringBuffer();
View Full Code Here

        try {
            getResult(session);
        }
        catch (HsqlException e)
        {
            throw new HSQLParseException(e.getMessage());
        }
        catch (Exception e)
        {
            // XXX coward.
        }

        StringBuffer sb = new StringBuffer();
        String indent = orig_indent + HSQLInterface.XML_INDENT;

        // select
        sb.append(orig_indent).append("<select");
        if (select.isDistinctSelect)
            sb.append(" distinct=\"true\"");
        if (select.isGrouped)
            sb.append(" grouped=\"true\"");
        if (select.isAggregated)
            sb.append(" aggregated=\"true\"");

        // limit
        if ((select.sortAndSlice != null) && (select.sortAndSlice.limitCondition != null)) {
            Expression limitCondition = select.sortAndSlice.limitCondition;
            if (limitCondition.nodes.length != 2) {
                throw new HSQLParseException("Parser did not create limit and offset expression for LIMIT.");
            }
            try {
                // read offset. it may be a parameter token.
                if (limitCondition.nodes[0].isParam() == false) {
                    Integer offset = (Integer)limitCondition.nodes[0].getValue(session);
View Full Code Here

        case OpTypes.MIN:               element = "min"; break;
        case OpTypes.MAX:               element = "max"; break;
        case OpTypes.AVG:               element = "avg"; break;
        case OpTypes.SQL_FUNCTION:      element = "function"; break;
        default:
            throw new HSQLParseException("Unsupported Operation: " +
                                         String.valueOf(opType));
        }

        StringBuffer sb = new StringBuffer();
View Full Code Here

        case OpTypes.MIN:               element = "min"; break;
        case OpTypes.MAX:               element = "max"; break;
        case OpTypes.AVG:               element = "avg"; break;
        case OpTypes.SQL_FUNCTION:      element = "function"; break;
        default:
            throw new HSQLParseException("Unsupported Operation: " +
                                         String.valueOf(opType));
        }

        StringBuffer sb = new StringBuffer();
View Full Code Here

TOP

Related Classes of org.hsqldb.HSQLInterface.HSQLParseException

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.