public final class ExpressionProviderFactory extends Object
ExpressionProvider based on provided Path type.| Constructor and Description |
|---|
ExpressionProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
findAlias(com.querydsl.core.types.Path path) |
static Optional<com.querydsl.core.types.Predicate> |
getPredicate(com.querydsl.core.types.Path path,
Object value)
Create a predicate based on implementation specific logic's processing of
supplied value(s).
|
static Optional<ExpressionProvider> |
getProvider(com.querydsl.core.types.Path path)
|
static boolean |
isSupportsUnTypedValues() |
static void |
registerAlias(com.querydsl.core.types.Path path,
String alias)
Method registers the new alias for given Path.
|
static void |
setSupportsUnTypedValues(boolean supportsUnTypedValues)
Sets whether experimental features are turned on, implying that untyped
values are going to be made available to
ExpressionProvider for
non-string paths. |
public static Optional<ExpressionProvider> getProvider(com.querydsl.core.types.Path path)
path - Path for which ExpressionProvider is to be returned.Optional containing ExpressionProvider if available or else an empty optional.public static Optional<com.querydsl.core.types.Predicate> getPredicate(com.querydsl.core.types.Path path, Object value)
public static void registerAlias(com.querydsl.core.types.Path path,
String alias)
QuerydslBindings.PathBinder available from QuerydslBindings is also
updated with new alias prior to registering here.path - Path on which alias is appliedalias - String alias value for supplied pathpublic static boolean isSupportsUnTypedValues()
true when experimental features are turned on, implying that untyped
values are going to be made available to ExpressionProvider for
non-string paths, false is returned if experimental features are disabledpublic static void setSupportsUnTypedValues(boolean supportsUnTypedValues)
ExpressionProvider for
non-string paths.supportsUnTypedValues - Boolean indicating status of support of untyped values (aka. experimental features)Copyright © 2018–2019. All rights reserved.