Class ParamsContextObject
- java.lang.Object
-
- de.businesscode.sqlengine.context.ParamsContextObject
-
public class ParamsContextObject extends java.lang.Object
This is the velocity context object, that represents param substitution by one or many placeholders.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
defaultPlaceholder
java.lang.String
defaultSeparator
-
Constructor Summary
Constructors Constructor Description ParamsContextObject(java.lang.String placeholder, java.lang.String separator, java.util.Map<java.lang.String,java.lang.Integer> multiplicity)
ParamsContextObject(java.util.Map<java.lang.String,java.lang.Integer> multiplicity)
using defaults, separator ',' substitute '?'
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String key)
getter for Velocity stores requested keyjava.lang.String
getPlaceholder()
getterjava.util.List<java.lang.String>
getRequestedKeys()
java.lang.String
toString()
-
-
-
Field Detail
-
defaultSeparator
public final java.lang.String defaultSeparator
- See Also:
- Constant Field Values
-
defaultPlaceholder
public final java.lang.String defaultPlaceholder
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParamsContextObject
public ParamsContextObject(java.util.Map<java.lang.String,java.lang.Integer> multiplicity)
using defaults, separator ',' substitute '?'
-
ParamsContextObject
public ParamsContextObject(java.lang.String placeholder, java.lang.String separator, java.util.Map<java.lang.String,java.lang.Integer> multiplicity)
- Parameters:
placeholder
- another substitute instead of default '?'
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.String key)
getter for Velocity stores requested key- Returns:
- constant placeholder, or separated lists of those
-
getRequestedKeys
public java.util.List<java.lang.String> getRequestedKeys()
- Returns:
- List of keys requested keys
-
getPlaceholder
public java.lang.String getPlaceholder()
getter
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- placeholder and requestedKeys as one String
-
-