Examples of MongoLinkError


Examples of org.mongolink.MongoLinkError

        getValue(element.getClass(), id).markForDeletion();
    }

    private void checkEntityIsInCache(Object element, Object id) {
        if (!contains(element.getClass(), id)) {
            throw new MongoLinkError("Entity to delete not loaded");
        }
    }
View Full Code Here

Examples of org.mongolink.MongoLinkError

                }
            }

            LOGGER.debug("Done scanning : {}", packagesToScan);
        } catch (Exception e) {
            throw new MongoLinkError("Error scanning package", e);

        }
        return result;
    }
View Full Code Here

Examples of org.mongolink.MongoLinkError

    protected Object getIdValue(Object element) {
        try {
            return fieldContainer.value(element);
        } catch (Exception e) {
            throw new MongoLinkError("Can't get id value", e);
        }
    }
View Full Code Here

Examples of org.mongolink.MongoLinkError

    static Object getValue(Object instance, Field field) throws IllegalAccessException {
        try {
            return field.get(instance);
        } catch (Exception e) {
            throw new MongoLinkError("Can't get field value", e);
        }
    }
View Full Code Here

Examples of org.mongolink.MongoLinkError

            result = clazz.getDeclaredField(fieldName);
        } catch (final NoSuchFieldException e) {
            if (clazz.getSuperclass() != null) {
                return find(clazz.getSuperclass(), fieldName);
            }
            throw new MongoLinkError("Unable to find field", e);
        }
        return result;
    }
View Full Code Here

Examples of org.mongolink.MongoLinkError

    public Object value(final Object instance) {
        try {
            return Fields.getValue(instance, field);
        } catch (Exception e) {
            throw new MongoLinkError("Invocation exception : " + toString(), e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.