Class BindingsContextObject
- java.lang.Object
-
- de.businesscode.sqlengine.context.BindingsContextObject
-
public class BindingsContextObject extends java.lang.Object
This is the velocity context object, that represents BCD-UI global Bindings singleton, $bindings and serves as a lookup for BindingSets It already known from its parameters in the constructor, which binding set name / binding item names combinations occur and is used in phase 2 (@seeSQLEngine
)
-
-
Constructor Summary
Constructors Constructor Description BindingsContextObject(Bindings bindings, BindingsLookupContextObject bindingsLookup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String key)
Getter for Velocityjava.util.Map<java.lang.String,BindingSetContextObject>
getUsedBindings()
Getter for a map, key is requested BindingSet name, value is the actual BindingSet determined, useful for a caller of SQLEngine to get info about the query structure
-
-
-
Constructor Detail
-
BindingsContextObject
public BindingsContextObject(Bindings bindings, BindingsLookupContextObject bindingsLookup)
- Parameters:
bindings
- BCD global Bindings singletonbindingsLookup
-
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.String key)
Getter for Velocity- Parameters:
key
-- Returns:
- the BindingSet representation
-
getUsedBindings
public java.util.Map<java.lang.String,BindingSetContextObject> getUsedBindings()
Getter for a map, key is requested BindingSet name, value is the actual BindingSet determined, useful for a caller of SQLEngine to get info about the query structure- Returns:
-
-