public interface IAdornmentProvider
AllValidAdornments that describes all
adornments fulfilling the parameter direction declarations.
class SomeAdornments{
public IterablePParameter>> getAdornments(PQuery query){
if (SomeGeneratedQuerySpecification.instance().getInternalQueryRepresentation().equals(query)){
return Collections.singleton(Sets.filter(Sets.newHashSet(query.getParameters()), new Predicate() {
@Override
public boolean apply(PParameter input) {
// Decide whether this particular parameter will be bound
return false;
}
}));
}
// Returning an empty iterable is safe for unknown queries
return Collections.emptySet();
}
}
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<java.util.Set<PParameter>> |
getAdornments(PQuery query)
The bound parameter sets
|
java.lang.Iterable<java.util.Set<PParameter>> getAdornments(PQuery query)