Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.DuplicateViewException


    @Override
    public void createView(Session session, View view) {
        final AkibanInformationSchema oldAIS = getAISForChange(session);
        checkSystemSchema(view.getName(), false);
        if (oldAIS.getView(view.getName()) != null)
            throw new DuplicateViewException(view.getName());
        AkibanInformationSchema newAIS = AISMerge.mergeView(aisCloner, oldAIS, view);
        final String schemaName = view.getName().getSchemaName();
        saveAISChange(session, newAIS, Collections.singleton(schemaName));
    }
View Full Code Here

TOP

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

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.