com.jaregu.database.queries.building.IteratorResolverImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of queries Show documentation
Show all versions of queries Show documentation
Java based SQL templating project. Store your queries in *.sql files and build queries for execution. Supports simple expressions and conditional clauses and interface proxying for java-sql bridge.
package com.jaregu.database.queries.building;
import java.util.Iterator;
final class IteratorResolverImpl implements IteratorResolver {
private Iterator> iterator;
IteratorResolverImpl(Iterable> parameters) {
iterator = parameters.iterator();
}
@Override
public boolean hasNext() {
return iterator.hasNext();
}
@Override
public Object next() {
return iterator.next();
}
}