Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.ProtectedTableDDLException


        }
       
        private StoreAdapter getAdapter() {
            // no writing to the memory tables.
            if (table.hasMemoryTableFactory())
                throw new ProtectedTableDDLException (table.getName());
            return store.createAdapter(session, schema);
        }
View Full Code Here


        private Table getTable () {
            Table table = ais.getTable(tableName);
            if (table == null) {
                throw new NoSuchTableException(tableName.getSchemaName(), tableName.getTableName());
            } else if (table.isProtectedTable()) {
                throw  new ProtectedTableDDLException (table.getName());
            }
            return table;
        }
View Full Code Here

       
        if(shouldBeSystem && !inSystem) {
            throw new IllegalArgumentException("Table required to be in "+TableName.INFORMATION_SCHEMA +" schema");
        }
        if(!shouldBeSystem && inSystem) {
            throw new ProtectedTableDDLException(tableName);
        }
    }
View Full Code Here

    private void checkTableName(Session session, TableName tableName, boolean shouldExist, boolean inIS) {
        checkSystemSchema(tableName, inIS);
        if (!inIS && (securityService != null) &&
            !securityService.isAccessible(session, tableName.getSchemaName())) {
            throw new ProtectedTableDDLException(tableName);
        }
        final boolean tableExists = getAISForChange(session, !inIS).getTable(tableName) != null;
        if(shouldExist && !tableExists) {
            throw new NoSuchTableException(tableName);
        }
View Full Code Here

            Table table = (Table)tableName.getUserData();
            if (table == null)
                throw new NoSuchTableException(tableName.getSchemaName(),
                                               tableName.getTableName());
            if (table.isAISTable()) {
                throw new ProtectedTableDDLException (table.getName());
            }
            return getTableNode(table);
        }
View Full Code Here

TOP

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

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.