org.axonframework.eventstore.jpa.criteria
Class ParameterRegistry

java.lang.Object
  extended by org.axonframework.eventstore.jpa.criteria.ParameterRegistry

public class ParameterRegistry
extends Object

The registry that keeps track of parameterized values. This ensures proper escaping of literal values.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
ParameterRegistry()
           
 
Method Summary
 Map<String,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
 

Constructor Detail

ParameterRegistry

public ParameterRegistry()
Method Detail

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 Map<String,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.