public enum DslConverter extends Enum<DslConverter>
DSL converter
defined in the mapping.| Enum Constant and Description |
|---|
DISABLED
Disable the DSL converter.
|
ENABLED
Enable the DSL converter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled() |
static DslConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DslConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DslConverter ENABLED
This generally means the values passed to the DSL are expected to have the exact same type as the entity property used to populate the index field.
To be more specific, it means the converter passed to
IndexFieldTypeConverterContext.dslConverter(ToDocumentFieldValueConverter)
will be applied to values passed to the DSL in order to get a value that the backend can understand.
If no DSL converter was defined, this option won't have any effect.
Please refer to the reference documentation for more information.
public static final DslConverter DISABLED
This generally means the values passed to the DSL are expected to have the exact same type as the index field.
To be more specific, it means the converter passed to
IndexFieldTypeConverterContext.dslConverter(ToDocumentFieldValueConverter)
will not be applied to values.
Please refer to the reference documentation for more information.
public static DslConverter[] values()
for (DslConverter c : DslConverter.values()) System.out.println(c);
public static DslConverter 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.