Class JdbcUserDirectory.JdbcPredicate
java.lang.Object
org.ametys.plugins.core.impl.user.directory.JdbcUserDirectory.JdbcPredicate
- Enclosing class:
- JdbcUserDirectory
Class representing a SQL predicate (to use in a WHERE or HAVING clause),
with optional string parameters.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The predicate string with optional "?" placeholders.The predicate parameter values. -
Constructor Summary
ConstructorDescriptionJdbcPredicate
(String predicate, String... values) Build a JDBC predicate.JdbcPredicate
(String predicate, List<String> values) Build a JDBC predicate. -
Method Summary
Modifier and TypeMethodDescriptionGet the predicate.Get the parameter values.void
setPredicate
(String predicate) Set the predicate.void
Set the parameter values.
-
Field Details
-
_predicate
The predicate string with optional "?" placeholders. -
_predicateParamValues
The predicate parameter values.
-
-
Constructor Details
-
JdbcPredicate
Build a JDBC predicate.- Parameters:
predicate
- the predicate string.values
- the parameter values.
-
JdbcPredicate
Build a JDBC predicate.- Parameters:
predicate
- the predicate string.values
- the parameter values.
-
-
Method Details
-
getPredicate
Get the predicate.- Returns:
- the predicate
-
setPredicate
Set the predicate.- Parameters:
predicate
- the predicate to set
-
getValues
Get the parameter values.- Returns:
- the parameter values.
-
setValues
Set the parameter values.- Parameters:
values
- the parameter values to set.
-