public static final class VariableRestrictionQueryHint.Factory extends Object implements VariableRestrictionQueryHintFactory
Modifier and Type | Method and Description |
---|---|
QueryHint |
matching(Predicate predicate)
Creates a query hint which restricts the variables to be loaded based on the given predicate (white list semantics).
|
QueryHint |
matching(String... variableNames)
Creates a query hint which restricts the variables to be loaded based on the given names.
|
QueryHint |
matching(String variableName)
Creates a query hint which restricts the variable to be loaded based on the given name.
|
QueryHint |
matching(ValueAccessor<?>... valueAccessors)
Creates a query hint which restricts the variables to be loaded based on the given value accessors.
|
public Factory(String name)
public QueryHint matching(String variableName)
VariableRestrictionQueryHintFactory
Creates a query hint which restricts the variable to be loaded based on the given name.
Note
|
this method does not support variables that are backed by a List or Map .
If the results may contain such variables then you should either use an unrestricted query
or the ValueAccessor variant.
|
matching
in interface VariableRestrictionQueryHintFactory
variableName
- the variable name to be loadedpublic QueryHint matching(String... variableNames)
VariableRestrictionQueryHintFactory
Creates a query hint which restricts the variables to be loaded based on the given names.
Note
|
this method does not support variables that are backed by a List or Map .
If the results may contain such variables then you should either use an unrestricted query
or the ValueAccessor variant.
|
matching
in interface VariableRestrictionQueryHintFactory
variableNames
- the variable name to be loadedpublic QueryHint matching(ValueAccessor<?>... valueAccessors)
VariableRestrictionQueryHintFactory
Creates a query hint which restricts the variables to be loaded based on the given value accessors.
Note
|
it is not currently possible to restrict the results to contain variables that are
backed by a Map , so requests containing such variables will result in an unrestricted query hint.
|
matching
in interface VariableRestrictionQueryHintFactory
valueAccessors
- the value accessors for the variables to be loadedpublic QueryHint matching(Predicate predicate)
VariableRestrictionQueryHintFactory
Creates a query hint which restricts the variables to be loaded based on the given predicate (white list semantics).
matching
in interface VariableRestrictionQueryHintFactory
predicate
- the criteria to be matchedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.