Package info.archinnov.achilles.exception

Examples of info.archinnov.achilles.exception.AchillesStaleObjectStateException


    protected <T> Function<T, T> updateProxyInterceptor(final EntityOperations context, final ProxyInterceptor<T> interceptor, final Object entity, final Object primaryKey) {
        return new Function<T, T>() {
                @Override
                public T apply(T freshEntity) {
                    if (freshEntity == null) {
                        throw new AchillesStaleObjectStateException("The entity '" + entity + "' with primary_key '" + primaryKey + "' no longer exists in Cassandra");
                    }
                    interceptor.setTarget(freshEntity);
                    interceptor.getAlreadyLoaded().clear();
                    interceptor.getAlreadyLoaded().addAll(context.getAllGettersExceptCounters());
                    return freshEntity;
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.exception.AchillesStaleObjectStateException

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.