Package org.openengsb.core.edbi.api

Examples of org.openengsb.core.edbi.api.IndexExistsException


    @Override
    public <T> Index<T> createIndex(Class<T> model) throws IndexExistsException {
        LOG.info("Creating Index for Class {}", model);

        if (indexExists(model)) {
            throw new IndexExistsException("Index for model " + model.getSimpleName() + " already exists");
        }

        // build index skeleton
        JdbcIndex<T> index = new IndexBuilder(translator).buildIndex(model);
View Full Code Here


    protected synchronized void persist(JdbcIndex<?> index) throws IndexExistsException {
        LOG.info("Persisting Index {}", index.getName());

        if (existsInDb(index.getName())) {
            throw new IndexExistsException("Index " + index.getName() + " already exists");
        }

        String sql = "INSERT INTO `INDEX_INFORMATION` VALUES (?, ?, ?, ?)";
        Object[] args = new Object[]{
            index.getName(),
View Full Code Here

TOP

Related Classes of org.openengsb.core.edbi.api.IndexExistsException

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.