org.axonframework.eventstore.jdbc.criteria
Class ParameterRegistry
java.lang.Object
org.axonframework.eventstore.jdbc.criteria.ParameterRegistry
public class ParameterRegistry
- extends Object
The registry that keeps track of parameterized values. This ensures proper escaping of literal values.
- Since:
- 2.2
- Author:
- Allard Buijze, Kristian Rosenvold
Method Summary |
List<Object> |
getParameters()
Returns a map containing the key-value pairs, where each key is the parameter name, and the value the expression
to be inserted as parameter. |
String |
register(Object expression)
Registers the given expression as parameter and returns the value to use to refer to this
expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterRegistry
public ParameterRegistry()
register
public String register(Object expression)
- Registers the given
expression
as parameter and returns the value to use to refer to this
expression.
- Parameters:
expression
- The expression to parametrize in the query
- Returns:
- The placeholder to use in the query to refer to the given parameter
getParameters
public List<Object> getParameters()
- Returns a map containing the key-value pairs, where each key is the parameter name, and the value the expression
to be inserted as parameter.
- Returns:
- a map containing the parameters
Copyright © 2010-2016. All Rights Reserved.