public enum ProjectionConverter extends Enum<ProjectionConverter>
projection converter
defined in the mapping.| Enum Constant and Description |
|---|
DISABLED
Disable the projection converter.
|
ENABLED
Enable the projection converter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled() |
static ProjectionConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProjectionConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProjectionConverter ENABLED
This generally means the projected values will have the same type as the entity property used to populate the index field.
To be more specific, it means the converter passed to
IndexFieldTypeConverterStep.projectionConverter(FromDocumentFieldValueConverter)
will be applied to projected values before returning them.
If no projection converter was defined, this option won't have any effect.
Please refer to the reference documentation for more information.
public static final ProjectionConverter DISABLED
This generally means the projected values will have the same type as the index field.
To be more specific, it means the converter passed to
IndexFieldTypeConverterStep.projectionConverter(FromDocumentFieldValueConverter)
will not be applied to projected values before returning them.
Please refer to the reference documentation for more information.
public static ProjectionConverter[] values()
for (ProjectionConverter c : ProjectionConverter.values()) System.out.println(c);
public static ProjectionConverter valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isEnabled()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.