Пример #1
0
 @Override
 public boolean hasNext() {
   if (!iterator.hasNext() && count == batchSize) {
     iterator = context.bindAndExecute(ps, lastVaryingComponentValue).iterator();
     count = 0;
   }
   return iterator.hasNext();
 }
Пример #2
0
 private T proxify(T clusteredEntity) {
   CQLPersistenceContext duplicate = context.duplicate(clusteredEntity);
   return proxifier.buildProxy(clusteredEntity, duplicate);
 }