Package org.openengsb.core.edbi.api

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


    @SuppressWarnings("unchecked")
    @Override
    public <T> JdbcIndex<T> getIndex(Class<T> model) throws IndexNotFoundException {
        if (!indexExists(model)) {
            throw new IndexNotFoundException("Index for model " + model.getSimpleName() + " does not exist");
        }
        String name = translator.translate(model);

        if (registry.containsKey(name)) {
            JdbcIndex cached = registry.get(name);
View Full Code Here


    }

    @Override
    public JdbcIndex<?> getIndex(String name) throws IndexNotFoundException {
        if (!indexExists(name)) {
            throw new IndexNotFoundException("Index " + name + " does not exist");
        }
        if (registry.containsKey(name)) {
            return registry.get(name);
        }
View Full Code Here

    }

    @Override
    public void removeIndex(Index<?> index) throws EDBIndexException {
        if (!indexExists(index.getName())) {
            throw new IndexNotFoundException("Index " + index.getName() + " does not exist");
        }
        if (!(index instanceof JdbcIndex)) {
            throw new EDBIndexException("Can only handle Index instances of type JdbcIndex, was " + index.getClass());
        }
View Full Code Here

                    return index;
                }
            }, name);
        } catch (EmptyResultDataAccessException e) {
            throw new IndexNotFoundException("Index " + name + " was not found", e);
        }
    }
View Full Code Here

TOP

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

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.