Package org.openengsb.core.edbi.jdbc.api

Examples of org.openengsb.core.edbi.jdbc.api.NoSuchTableException


    }

    @Override
    public Table get(JdbcIndex<?> index) {
        if (!exists(index)) {
            throw new NoSuchTableException("Table for index " + index.getName() + " does not exist");
        }

        Table table = registry.get(index);

        if (table == null) {
View Full Code Here


    }

    @Override
    public void drop(JdbcIndex<?> index) {
        if (!exists(index)) {
            throw new NoSuchTableException("Table for index " + index.getName() + " does not exist");
        }

        String tableName = getTableNameTranslator().translate(index);

        if (tableName == null || tableName.isEmpty()) {
            throw new NoSuchTableException("Table name for index " + index + " could not be resolved. Can not drop.");
        }

        jdbc().update("DROP TABLE " + tableName);
        registry.remove(index);
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.edbi.jdbc.api.NoSuchTableException

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.