Exemplo n.º 1
0
 boolean isFreshFrom(Resource origin) {
   return !presub
       && bindings.isEmpty()
       && moduleMap.isEmpty()
       && (namespaceBindings == null || namespaceBindings.isFreshFrom(origin.namespaceBindings()));
 }
Exemplo n.º 2
0
 /**
  * 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();
 }