public class SetBasedFieldSelector extends Object implements FieldSelector
| Constructor and Description |
|---|
SetBasedFieldSelector(Set<String> fieldsToLoad,
Set<String> lazyFieldsToLoad)
|
| Modifier and Type | Method and Description |
|---|---|
FieldSelectorResult |
accept(String fieldName)
Indicate whether to load the field with the given name or not.
|
public FieldSelectorResult accept(String fieldName)
AbstractField.name() is not in either of the
initializing Sets, then FieldSelectorResult.NO_LOAD is returned. If a Field name
is in both fieldsToLoad and lazyFieldsToLoad, lazy has precedence.accept in interface FieldSelectorfieldName - The Field name to checkFieldSelectorResult