public abstract class AttributeFilterProvider extends Object
WhereBuilder
.
Attribute filter providers must have a constructor that accepts either of the following parameter types
The Class argument refers to the expected type i.e. the attribute type. The object argument refers to the filter value.Constructor and Description |
---|
AttributeFilterProvider() |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
apply(RestrictionBuilder<T> restrictionBuilder)
Applies a restriction on the given restriction builder.
|
<T extends WhereBuilder<T>> |
apply(T whereBuilder,
String attributeExpression)
Applies restrictions for the given attributeExpression on the given where builder.
|
<T extends WhereBuilder<T>> |
apply(T whereBuilder,
String subqueryAlias,
String subqueryExpresion,
SubqueryProvider provider)
Applies restrictions for the given subquery on the given where builder.
|
public <T extends WhereBuilder<T>> T apply(T whereBuilder, String attributeExpression)
T
- The actual type of the where builderwhereBuilder
- The where builder on which the restrictions should be appliedattributeExpression
- The expression for the attribute on which a restriction should be appliedpublic <T extends WhereBuilder<T>> T apply(T whereBuilder, String subqueryAlias, String subqueryExpresion, SubqueryProvider provider)
T
- The actual type of the where builderwhereBuilder
- The where builder on which the restrictions should be appliedsubqueryAlias
- The alias for the subquery which will be replaced by the actual subquerysubqueryExpresion
- The expression which wraps a subqueryprovider
- The provider for the subqueryprotected <T> T apply(RestrictionBuilder<T> restrictionBuilder)
T
- The return type of terminal operations of the restriction builderrestrictionBuilder
- The restriction builderCopyright © 2014–2017 Blazebit. All rights reserved.