Package org.ametys.odf.ose.db
Class ParameterizableQuery
- java.lang.Object
-
- org.ametys.odf.ose.db.ParameterizableQuery
-
public class ParameterizableQuery extends Object
Object representing a query and its parameters.
-
-
Constructor Summary
Constructors Constructor Description ParameterizableQuery(String query)
Constructor.ParameterizableQuery(String query, List<ValuedQueryParameter> parameters)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ValuedQueryParameter>
getParameters()
Get the query parametersString
getQuery()
Get the queryString
toReadableString()
Gets the representation of this parameterizable query as a readable string for logging purposes.
-
-
-
Constructor Detail
-
ParameterizableQuery
public ParameterizableQuery(String query, List<ValuedQueryParameter> parameters)
Constructor.- Parameters:
query
- The queryparameters
- The query parameters
-
ParameterizableQuery
public ParameterizableQuery(String query)
Constructor.- Parameters:
query
- The query
-
-
Method Detail
-
getParameters
public List<ValuedQueryParameter> getParameters()
Get the query parameters- Returns:
- the parameters
-
toReadableString
public String toReadableString()
Gets the representation of this parameterizable query as a readable string for logging purposes.- Returns:
- the representation of this parameterizable query as a readable string for logging purposes.
-
-