Class BindingSetContextObject
java.lang.Object
de.businesscode.sqlengine.context.BindingSetContextObject
This is the velocity context object, that represents a concrete BindingSet in phase 2 (@see
SQLEngine
)
From its constructor parameters it already knows, which binding items will be requested from it and this allows it to determine the right concrete BindingSet for its name
Also it keeps track of all requested BindingItems to find the right BindingSet for the BindingSet name
and to provide the caller with information about used BindingItems-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetter for VelocityGetter for BindingItems mentioned somewhere, useful for a caller of SQLEngine to get info about the query structureThis is useful for insert/update statements and self joining selectsThis is useful for insert/update statements and self joining selectsGetter for BindingItems which are part of the select clause, i.e. they are mentioned before the table name, useful for a caller of SQLEngine to get info about the query structuregetTableNametoString()
-
Constructor Details
-
Method Details
-
getBindingSet
- Returns:
- the bindingSet
-
getTableReference
getTableName- Returns:
- the table name
-
getPlainTableName
This is useful for insert/update statements and self joining selects- Returns:
- the table name without alias name.
-
get
getter for Velocity- Returns:
- The BindingItem of this BindingSet for the requested binding item name
-
getPlain
This is useful for insert/update statements and self joining selects- Returns:
- just the column name of the BindingItem for a given binding item name
-
toString
-
getSelectedBindingItemsInOrder
Getter for BindingItems which are part of the select clause, i.e. they are mentioned before the table name, useful for a caller of SQLEngine to get info about the query structure -
getAllBindingItemsInOrder
Getter for BindingItems mentioned somewhere, useful for a caller of SQLEngine to get info about the query structure
-