boolean isFreshFrom(Resource origin) { return !presub && bindings.isEmpty() && moduleMap.isEmpty() && (namespaceBindings == null || namespaceBindings.isFreshFrom(origin.namespaceBindings())); }
/** * Use this constructor when the docs and base are not constant for the query service and need to * be set just before the query. You must also override the prepareContext method. * * @param origin */ QueryService(Resource origin) { this.namespaceBindings = origin.namespaceBindings().extend(); this.db = origin.database(); }