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