Package com.foundationdb.sql

Examples of com.foundationdb.sql.StandardException


                   newLength);

        int diff = newLen - charLength(val);

        if (diff < 0) {
            throw new StandardException("Value truncated");
        }

        // Blank pad the string if necessesary
        for (int i = 0; i < diff; i++) {
            val = val + ' ';
View Full Code Here


        for (ResultColumn joinRC : joinColumns) {
            String columnName = joinRC.getName();
            ResultColumn xferRC = getResultColumn(columnName);

            if (xferRC == null) {
                throw new StandardException("Column not found: " + columnName);
            }

            // Add the RC to the new list.
            newRCL.add(xferRC);
        }
View Full Code Here

        return options;
    }

    public void addOption(String key, String value) throws StandardException {
        if (options.containsKey(key))
            throw new StandardException("Option " + key + " specified more than once.");
        options.put(key, value);
    }
View Full Code Here

                                             ex,
                                             lineColumnErrorPosition(ex.errorLine,
                                                                     ex.errorColumn,
                                                                     sqlText));
            else
                throw new StandardException(ex);
        }
    }
View Full Code Here

                                             ex,
                                             lineColumnErrorPosition(ex.errorLine,
                                                                     ex.errorColumn,
                                                                     sqlText));
            else
                throw new StandardException(ex);
        }
    }
View Full Code Here

    }

    /** Check that string literal is not too long. */
    public void checkStringLiteralLengthLimit(String image) throws StandardException {
        if (image.length() > maxStringLiteralLength) {
            throw new StandardException("String literal too long");
        }
    }
View Full Code Here

     * Check that identifier is not too long.
     */
    public void checkIdentifierLengthLimit(String identifier)
            throws StandardException {
        if (identifier.length() > maxIdentifierLength)
            throw new StandardException("Identifier too long: '" + identifier + "'");
    }
View Full Code Here

                case MODIFY_TYPE:
                case LOCKING_TYPE:
                    // OK
                break;
                default:
                    throw new StandardException("ChangeType "+this.changeType+" Not implemented");
            }
        }
        this.existenceCheck = (ExistenceCheck)existenceCheck;
    }
View Full Code Here

                }
                else {                                     
                    rightTable = get(index).getTableName();
                }
                if (leftTable.equals(rightTable)) {
                    throw new StandardException("Table duplicated in FROM list: " +
                                                fromTable.getExposedName());
                }
            }
        }
View Full Code Here

        TableName tempTableName = (TableName)objectName;
        if (tempTableName != null) {
            if (tempTableName.getSchemaName() == null)
                tempTableName.setSchemaName("SESSION"); //If no schema specified, SESSION is the implicit schema.
            else if (!"SESSION".equals(tempTableName.getSchemaName()))
                throw new StandardException("Must specify SESSION schema");
        }
        return(tempTableName);
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.sql.StandardException

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.