Package de.businesscode.bcdui.wrs.load
Class BindingItemWithMetaData
java.lang.Object
de.businesscode.bcdui.binding.SimpleBindingItem
de.businesscode.bcdui.binding.BindingItem
de.businesscode.bcdui.wrs.load.BindingItemWithMetaData
- All Implemented Interfaces:
WrsBindingItem
- Direct Known Subclasses:
BindingItemAttribute
This class represents a BindingItem in a concrete statement
It adds for example alias, aggregation and the column number
-
Field Summary
Fields inherited from class de.businesscode.bcdui.binding.SimpleBindingItem
BCD_NO_TABLE_ALIAS, columnExpression, pureColumnNamePattern, qColumnExpr, wordPattern
-
Constructor Summary
ConstructorsConstructorDescriptionBindingItemWithMetaData
(BindingItem bindingItem, String aggregationFunction, String alias) BindingItemWithMetaData
(BindingItem bindingItem, String aggregationFunction, String alias, Map<String, String> userAttributes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, String value) Adds regular @ attributevoid
addWrsAAttribute
(BindingItemAttribute wrsAAttribute) Adds an wrs:A attributesgetAlias()
Additional attributes at (plain attributes, not wrs:A) are returned here Note that they can overwrite default attributes of the BindingItem, which were derived from the BindingSet and the databaseint
getQColumnExpression
(String aliasWithTableAlias) Helper to merge a table alias into a column expression, which can contain SQL functions etc Method calcQColumnExpressiongetQColumnExpressionWithAggr
(String aliasWithTableAlias) getQColumnExpressionWithAggr
(String aliasWithTableAlias, String overwriteAggr) boolean
boolean
void
void
setColumnNumber
(int columnNumber) void
setOrderByDescending
(boolean isOrderByDescending) void
setParentWrsC
(BindingItemWithMetaData parentWrsC) void
setWrsAAttributes
(Collection<BindingItemAttribute> wrsAAttributes) Methods inherited from class de.businesscode.bcdui.binding.BindingItem
getAggr, getCaption, getColumnExpression, getCustomAttributesMap, getDisplayFormat, getDisplayFormatAsNode, getJDBCColumnDisplaySize, getJDBCColumnScale, getJDBCDataType, getJDBCDataTypeName, getJDBCNullable, getJDBCSigned, getReferences, getReferencesAsNode, isDefinedJDBCDataType, isEscapeXML, isKey, isNumeric, isReadOnly, setAggr, setCaption, setDisplayFormat, setEscapeXML, setJDBCColumnDisplaySize, setJDBCColumnScale, setJDBCDataType, setJDBCDataTypeName, setJDBCNullable, setJDBCSigned, setKey, setReadOnly, setReferences, toString, toXML
Methods inherited from class de.businesscode.bcdui.binding.SimpleBindingItem
getBindingSet, getDescription, getId, isColumnQuoting, setBindingSet, setColumnExpression, setDescription, setId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.businesscode.bcdui.wrs.load.WrsBindingItem
getCaption, getId, getJDBCColumnScale, getJDBCDataType, isEscapeXML, toXML
-
Constructor Details
-
BindingItemWithMetaData
-
BindingItemWithMetaData
-
-
Method Details
-
getParentWrsC
-
setParentWrsC
-
isOrderByDescending
public boolean isOrderByDescending() -
setOrderByDescending
public void setOrderByDescending(boolean isOrderByDescending) -
getAlias
- Specified by:
getAlias
in interfaceWrsBindingItem
-
setAlias
-
getAggregationFunction
-
setWrsAAttributes
- Parameters:
wrsAAttributes
- Collection of new binding item's attributes.
-
hasWrsAAttributes
public boolean hasWrsAAttributes()- Specified by:
hasWrsAAttributes
in interfaceWrsBindingItem
- Returns:
- Has binding item attributes?
-
getWrsAAttributes
- Specified by:
getWrsAAttributes
in interfaceWrsBindingItem
- Returns:
- A copy of the Collection of binding item's attributes wrs:A
-
addWrsAAttribute
Adds an wrs:A attributes -
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumber
in interfaceWrsBindingItem
- Returns:
- The binding item's column number in SQL select statement.
-
setColumnNumber
public void setColumnNumber(int columnNumber) - Parameters:
columnNumber
- The new binding item's column number in SQL select statement.
-
getQColumnExpression
Description copied from class:SimpleBindingItem
Helper to merge a table alias into a column expression, which can contain SQL functions etc Method calcQColumnExpression- Overrides:
getQColumnExpression
in classSimpleBindingItem
-
getQColumnExpressionWithAggr
-
getQColumnExpressionWithAggr
-
getAttributes
Additional attributes at (plain attributes, not wrs:A) are returned here Note that they can overwrite default attributes of the BindingItem, which were derived from the BindingSet and the database- Overrides:
getAttributes
in classBindingItem
-
addAttribute
Adds regular @ attribute -
getWrsAName
- Specified by:
getWrsAName
in interfaceWrsBindingItem
-