public enum OnTypeMismatch extends Enum<OnTypeMismatch>
Specifies the behaviour in case of type mismatch between HTTP param value
and the type on the property being filtered (e.g. when HTTP param = "abc" and the type is Long).
To be used with onTypeMismatch property of @Spec annotation.
| Enum Constant and Description |
|---|
DEFAULT |
EMPTY_RESULT |
EXCEPTION |
| Modifier and Type | Method and Description |
|---|---|
void |
handleRejectedValues(List<String> rejected) |
static OnTypeMismatch |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OnTypeMismatch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract <T> org.springframework.data.jpa.domain.Specification<T> |
wrap(org.springframework.data.jpa.domain.Specification<T> spec) |
public static final OnTypeMismatch EXCEPTION
public static final OnTypeMismatch EMPTY_RESULT
public static final OnTypeMismatch DEFAULT
public static OnTypeMismatch[] values()
for (OnTypeMismatch c : OnTypeMismatch.values()) System.out.println(c);
public static OnTypeMismatch 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 abstract <T> org.springframework.data.jpa.domain.Specification<T> wrap(org.springframework.data.jpa.domain.Specification<T> spec)
Copyright © 2014–2017. All rights reserved.