5960616263646566
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"); } }
55565758596061626364
} } LOGGER.debug("Done scanning : {}", packagesToScan); } catch (Exception e) { throw new MongoLinkError("Error scanning package", e); } return result; }
7475767778798081
protected Object getIdValue(Object element) { try { return fieldContainer.value(element); } catch (Exception e) { throw new MongoLinkError("Can't get id value", e); } }
3738394041424344
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); } }
495051525354555657
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; }
7273747576777879
public Object value(final Object instance) { try { return Fields.getValue(instance, field); } catch (Exception e) { throw new MongoLinkError("Invocation exception : " + toString(), e); } }