use of org.springframework.data.cassandra.core.convert.UpdateMapper in project spring-data-cassandra by spring-projects.
the class CassandraQueryCreatorUnitTests method createQuery.
private String createQuery(String source, Class<?> entityClass, Object... values) {
PartTree tree = new PartTree(source, entityClass);
CassandraQueryCreator creator = new CassandraQueryCreator(tree, getAccessor(converter, values), context);
StatementFactory factory = new StatementFactory(new UpdateMapper(converter));
Query query = creator.createQuery();
SimpleStatement statement = factory.select(query, context.getRequiredPersistentEntity(entityClass)).build(StatementBuilder.ParameterHandling.INLINE, CodecRegistry.DEFAULT);
return statement.getQuery();
}
Aggregations