Search in sources :

Example 1 with PotentiallyConvertingIterator

use of org.springframework.data.mongodb.repository.query.ConvertingParameterAccessor.PotentiallyConvertingIterator in project spring-data-mongodb by spring-projects.

the class ConvertingParameterAccessorUnitTests method setupAndConvert.

private Object setupAndConvert(Object... parameters) {
    MongoParameterAccessor delegate = new StubParameterAccessor(parameters);
    PotentiallyConvertingIterator iterator = new ConvertingParameterAccessor(converter, delegate).iterator();
    MongoPersistentEntity<?> entity = context.getRequiredPersistentEntity(Entity.class);
    MongoPersistentProperty property = entity.getRequiredPersistentProperty("property");
    return iterator.nextConverted(property);
}
Also used : PotentiallyConvertingIterator(org.springframework.data.mongodb.repository.query.ConvertingParameterAccessor.PotentiallyConvertingIterator) MongoPersistentProperty(org.springframework.data.mongodb.core.mapping.MongoPersistentProperty)

Aggregations

MongoPersistentProperty (org.springframework.data.mongodb.core.mapping.MongoPersistentProperty)1 PotentiallyConvertingIterator (org.springframework.data.mongodb.repository.query.ConvertingParameterAccessor.PotentiallyConvertingIterator)1