Serializable, FieldSelectorpublic class SetBasedFieldSelector extends Object implements FieldSelector
| Constructor | Description |
|---|---|
SetBasedFieldSelector(Set<String> fieldsToLoad,
Set<String> lazyFieldsToLoad) |
| Modifier and Type | Method | 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 checkFieldSelectorResultCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.