@Test @Cassandra public void testConvertParameters() { PojoDao<LogEntry> dao = createPojoDao(LogEntry.class); Date now = new Date(); LogEntry expected = new LogEntry(); expected.setCategory("cat"); expected.setTimestamp(now); expected.setMessage("Now is the time for all good men..."); dao.save(expected); LogEntry actual = dao.findByKeys().add("cat", now).execute().one(); assertNotNull(actual); assertEquals("cat", actual.getCategory()); assertEquals(now, actual.getTimestamp()); assertEquals("Now is the time for all good men...", actual.getMessage()); }
@Override protected Object[] convertParameters(Object[] params) { List<Object> converted = getBinding().getKeyBinding().getKeyParameters(Arrays.asList(params)); return converted.toArray(new Object[converted.size()]); }
FindByKeyQuery extends AbstractPojoQuery<P> { @Override protected Object[] convertParameters(Object[] params) { List<Object> converted = getBinding().getKeyBinding().getKeyParameters(Arrays.asList(params)); return converted.toArray(new Object[converted.size()]); } }
FindByKeyQuery extends AbstractPojoQuery<P> { @Override protected Object[] convertParameters(Object[] params) { List<Object> converted = getBinding().getKeyBinding().getKeyParameters(Arrays.asList(params)); return converted.toArray(new Object[converted.size()]); } FindByKeyQuery(Session session, PojoBinding<P> binding, PojoQueryContextFactory contextFactory, PreparedStatement statement, Executor executor); }
FindByKeyQuery extends AbstractPojoQuery<P> { @Override protected Object[] convertParameters(Object[] params) { List<Object> converted = getBinding().getKeyBinding().getKeyParameters(Arrays.asList(params)); return converted.toArray(new Object[converted.size()]); } FindByKeyQuery(Session session, PojoBinding<P> binding, PojoQueryContextFactory contextFactory, PreparedStatement statement, Executor executor);  }
FindByKeyQuery extends AbstractPojoQuery<P> { @Override protected Object[] convertParameters(Object[] params) { List<Object> converted = getBinding().getKeyBinding().getKeyParameters(Arrays.asList(params)); return converted.toArray(new Object[converted.size()]); } FindByKeyQuery(Session session, PojoBinding<P> binding, PojoQueryContextFactory contextFactory, PreparedStatement statement, Executor executor);   }