@Test @Cassandra public void testConvertParameters() { PojoDao<QueryEntity> dao = createPojoDao(QueryEntity.class); PojoQuery<QueryEntity> query = dao.find().eq("pk").eq("cluster").build(); OffsetDateTime now = OffsetDateTime.now(); QueryEntity entity = new QueryEntity(); entity.setPk("one"); entity.setCluster(now); dao.save(entity); QueryEntity found = query.execute("one", now).one(); assertNotNull(found); }
@Override protected Object[] convertParameters(Object[] params) { Iterator<Object> parameterIterator = Iterators.forArray(params); List<Object> converted = parameterConverters.stream().map(parameterBinding -> parameterBinding.convertParameter(parameterIterator)).collect(Collectors.toList()); return converted.toArray(new Object[converted.size()]); }
DefaultPojoQuery extends AbstractPojoQuery<P> { @Override protected Object[] convertParameters(Object[] params) { Iterator<Object> parameterIterator = Iterators.forArray(params); List<Object> converted = parameterConverters.stream().map(parameterBinding -> parameterBinding.convertParameter(parameterIterator)).collect(Collectors.toList()); return converted.toArray(new Object[converted.size()]); } }
DefaultPojoQuery extends AbstractPojoQuery<P> { @Override protected Object[] convertParameters(Object[] params) { Iterator<Object> parameterIterator = Iterators.forArray(params); List<Object> converted = parameterConverters.stream().map(parameterBinding -> parameterBinding.convertParameter(parameterIterator)).collect(Collectors.toList()); return converted.toArray(new Object[converted.size()]); } DefaultPojoQuery(Session session, PojoBinding<P> binding, PojoQueryContextFactory contextFactory, Select.Where select, List<ParameterConverter> parameterConverters, Executor executor); }
DefaultPojoQuery extends AbstractPojoQuery<P> { @Override protected Object[] convertParameters(Object[] params) { Iterator<Object> parameterIterator = Iterators.forArray(params); List<Object> converted = parameterConverters.stream().map(parameterBinding -> parameterBinding.convertParameter(parameterIterator)).collect(Collectors.toList()); return converted.toArray(new Object[converted.size()]); } DefaultPojoQuery(Session session, PojoBinding<P> binding, PojoQueryContextFactory contextFactory, Select.Where select, List<ParameterConverter> parameterConverters, Executor executor);  }
DefaultPojoQuery extends AbstractPojoQuery<P> { @Override protected Object[] convertParameters(Object[] params) { Iterator<Object> parameterIterator = Iterators.forArray(params); List<Object> converted = parameterConverters.stream().map(parameterBinding -> parameterBinding.convertParameter(parameterIterator)).collect(Collectors.toList()); return converted.toArray(new Object[converted.size()]); } DefaultPojoQuery(Session session, PojoBinding<P> binding, PojoQueryContextFactory contextFactory, Select.Where select, List<ParameterConverter> parameterConverters, Executor executor);   }