Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.UnsupportedColumnDataTypeException


        @Override
        public void visit(Column column) {
            if (!TypeValidator.isSupportedForColumn(column.getType())) {
                failures.reportFailure(new AISValidationFailure (
                        new UnsupportedColumnDataTypeException(column.getTable().getName(),
                                column.getName(), column.getTypeName())));
            }
           
            if (column.getDefaultIdentity() != null && !TypeValidator.isSupportedForGenerator(column.getType())) {
                failures.reportFailure(new AISValidationFailure(
View Full Code Here


                TClass tclass = typeClassForUserDefined(name);
                return tclass.instance(sqlType.isNullable());
            }
        default:
            if (columnName != null) {
                throw new UnsupportedColumnDataTypeException(schemaName, tableName, columnName,
                                                             sqlType.toString());
            }
            else {
                throw new UnsupportedDataTypeException(sqlType.toString());
            }
View Full Code Here

        case Types.REF:
        case Types.ROWID:
        case Types.STRUCT:
        default:
            if (columnName != null) {
                throw new UnsupportedColumnDataTypeException(schemaName, tableName, columnName,
                                                             jdbcTypeName(jdbcType));
            }
            else {
                throw new UnsupportedDataTypeException(jdbcTypeName(jdbcType));
            }
View Full Code Here

                             int defaultCharsetId, int defaultCollationId,
                             boolean nullable,
                             String tableSchema, String tableName, String columnName) {
        TClass typeClass = getTypeClass(typeBundleUUID, typeName);
        if (typeClass == null) {
            throw new UnsupportedColumnDataTypeException(tableSchema, tableName, columnName,
                                                         typeName);
        }
        assert (typeVersion == typeClass.serializationVersion()) : typeClass;
        return getType(typeClass, typeParameter1, typeParameter2,
                       charset, collation, defaultCharsetId, defaultCollationId,
View Full Code Here

                             Long typeParameter1, Long typeParameter2,
                             boolean nullable,
                             String tableSchema, String tableName, String columnName) {
        TClass typeClass = getTypeClass(bundleName, typeName);
        if (typeClass == null) {
            throw new UnsupportedColumnDataTypeException(tableSchema, tableName, columnName,
                                                         typeName);
        }
        return getType(typeClass, typeParameter1, typeParameter2, null, null, StringFactory.DEFAULT_CHARSET_ID, StringFactory.DEFAULT_COLLATION_ID,
                       nullable, tableSchema, tableName, columnName);
    }
View Full Code Here

                             String charset, String collation,
                             boolean nullable,
                             String tableSchema, String tableName, String columnName) {
        TClass typeClass = getTypeClass(bundleName, typeName);
        if (typeClass == null) {
            throw new UnsupportedColumnDataTypeException(tableSchema, tableName, columnName,
                                                         typeName);
        }
        return getType(typeClass, typeParameter1, typeParameter2, charset, collation, StringFactory.DEFAULT_CHARSET_ID, StringFactory.DEFAULT_COLLATION_ID,
                       nullable, tableSchema, tableName, columnName);
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.UnsupportedColumnDataTypeException

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.