@Override public String name() { return collection.name(); }
@Override public String name() { return collection.name(); }
private Map<String, Object> prepareBindVars(final Map<String, Object> bindVars) { final Map<String, Object> prepared = new HashMap<>(bindVars.size()); for (final Entry<String, Object> entry : bindVars.entrySet()) { if (entry.getKey().startsWith("@") && entry.getValue() instanceof Class) { prepared.put(entry.getKey(), _collection((Class<?>) entry.getValue()).name()); } else { prepared.put(entry.getKey(), toVPack(entry.getValue())); } } return prepared; }
private Map<String, Object> prepareBindVars(final Map<String, Object> bindVars) { final Map<String, Object> prepared = new HashMap<>(bindVars.size()); for (final Entry<String, Object> entry : bindVars.entrySet()) { if (entry.getKey().startsWith("@") && entry.getValue() instanceof Class) { prepared.put(entry.getKey(), _collection((Class<?>) entry.getValue()).name()); } else { prepared.put(entry.getKey(), toVPack(entry.getValue())); } } return prepared; }
@Override public void drop() throws DataAccessException { collectionCache.remove(new CollectionCacheKey(collection.db().name(), collection.name())); try { collection.drop(); } catch (final ArangoDBException e) { throw translateExceptionIfPossible(e); } }
@Override public void drop() throws DataAccessException { collectionCache.remove(new CollectionCacheKey(collection.db().name(), collection.name())); try { collection.drop(); } catch (final ArangoDBException e) { throw translateExceptionIfPossible(e); } }