@Test public void testBind() { Logger.getLogger(CqlUtils.class).setLevel(Level.DEBUG); PreparedStatement ps = getSession().prepare(select("id").from("test_table").where(eq("id", bindMarker()))); BoundStatement bound = CqlUtils.bind(ps, new Object[]{123}); assertEquals(1, getSession().execute(bound).all().size()); }
public static BoundStatement bind(PreparedStatement statement, Object[] params) { if(CQL_LOGGER.isDebugEnabled()) { CQL_LOGGER.debug("{} parameters ({})", statement.getQueryString(), StringUtils.join(params, ",")); } return statement.bind(params); }
CqlUtils { public static BoundStatement bind(PreparedStatement statement, Object[] params) { if(CQL_LOGGER.isDebugEnabled()) { CQL_LOGGER.debug("{} parameters ({})", statement.getQueryString(), StringUtils.join(params, ",")); } return statement.bind(params); } }
CqlUtils { public static BoundStatement bind(PreparedStatement statement, Object[] params) { if(CQL_LOGGER.isDebugEnabled()) { CQL_LOGGER.debug("{} parameters ({})", statement.getQueryString(), StringUtils.join(params, ",")); } return statement.bind(params); } private  CqlUtils(); }
CqlUtils { public static BoundStatement bind(PreparedStatement statement, Object[] params) { if(CQL_LOGGER.isDebugEnabled()) { CQL_LOGGER.debug("{} parameters ({})", statement.getQueryString(), StringUtils.join(params, ",")); } return statement.bind(params); } private  CqlUtils(); static BoundStatement bind(PreparedStatement statement, Object[] params); static Object getValue(GettableByIndexData gettable, int columnIndex, DataType dataType); static List<Object> toList(TupleValue tuple); static List<Object> toList(Row row); }
CqlUtils { public static BoundStatement bind(PreparedStatement statement, Object[] params) { if(CQL_LOGGER.isDebugEnabled()) { CQL_LOGGER.debug("{} parameters ({})", statement.getQueryString(), StringUtils.join(params, ",")); } return statement.bind(params); } private  CqlUtils(); static BoundStatement bind(PreparedStatement statement, Object[] params); static Object getValue(GettableByIndexData gettable, int columnIndex, DataType dataType); static List<Object> toList(TupleValue tuple); static List<Object> toList(Row row); static final Logger CQL_LOGGER; }