Class BindingsContextObject

java.lang.Object
de.businesscode.sqlengine.context.BindingsContextObject

public class BindingsContextObject extends 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 (@see SQLEngine)
  • Constructor Details

    • BindingsContextObject

      public BindingsContextObject(Bindings bindings, BindingsLookupContextObject bindingsLookup)
      Parameters:
      bindings - BCD global Bindings singleton
      bindingsLookup -
  • Method Details

    • get

      public Object get(String key)
      Getter for Velocity
      Parameters:
      key -
      Returns:
      the BindingSet representation
    • getUsedBindings

      public Map<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: