- All Implemented Interfaces:
public class RestrictionTransformer extends AbstractSourceItemTransformer
Transformer implementation that is intended to provide a final filtering of target items. The transformer is used by wrapping an existing source item transformer implementation. The
method will first call the wrapped transformer to get a list of target
items and then apply the given filter before returning the result.
Constructors Constructor Description
SourceItemTransformer transformer, ItemQuery<?> query)(Create a new transformer and use the given query to find the target items.
SourceItemTransformer transformer, Restriction restriction)(Create a new transformer and apply the given restriction to items before they are returned.
Methods inherited from class net.sf.basedb.util.listable.AbstractSourceItemTransformer
getSourceItemType, getTargetItemType, safeIdList
RestrictionTransformerCreate a new transformer and apply the given restriction to items before they are returned. An
ItemQueryfor the correct target item type is automatically created from the given transformer. The restriction is applied to the query before it is executed.
RestrictionTransformerCreate a new transformer and use the given query to find the target items. The query is expected to return the same type of items as the transformer and must have defined a parameter with the name 'ids' that take a list of id values. The list will be populated with the id values returned by the transformer.
transformDescription copied from interface:
SourceItemTransformerTransform the given set of source item ID:s into a set of target item ID:s