Package de.businesscode.bcdui.binding
Class BindingItemFromRel
- java.lang.Object
-
- de.businesscode.bcdui.binding.SimpleBindingItem
-
- de.businesscode.bcdui.binding.BindingItem
-
- de.businesscode.bcdui.binding.BindingItemFromRel
-
public class BindingItemFromRel extends BindingItem
Represents a BindingItem coming form a BindingSet Relation
-
-
Field Summary
-
Fields inherited from class de.businesscode.bcdui.binding.SimpleBindingItem
BCD_NO_TABLE_ALIAS, columnExpression, pureColumnNamePattern, qColumnExpr, wordPattern
-
-
Constructor Summary
Constructors Constructor Description BindingItemFromRel(BindingItem src, Relation relation, java.lang.String id, java.lang.String importCaption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getQColumnExpression(java.lang.String tableAlias)
Helper to merge a table alias into a column expression, which can contain SQL functions etc Method calcQColumnExpressionBindingItem
getReferencedBindingItem()
Relation
getRelation()
java.lang.String
getTableAlias(java.lang.String mainTableAlias)
Returns the table alias of either the main table or the relation, depending on where the source BindingItem belongs to-
Methods inherited from class de.businesscode.bcdui.binding.BindingItem
getAggr, getAttributes, 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, getId, isColumnQuoting, setBindingSet, setColumnExpression, setId
-
-
-
-
Constructor Detail
-
BindingItemFromRel
public BindingItemFromRel(BindingItem src, Relation relation, java.lang.String id, java.lang.String importCaption)
- Parameters:
src
- - Corresponding BindingItem in related BindingSetrelation
-id
- - is with relation prefix when from a default importimportCaption
- - In a Relation we can overwrite the imported BindingItem's caption
-
-
Method Detail
-
getRelation
public Relation getRelation()
-
getReferencedBindingItem
public BindingItem getReferencedBindingItem()
-
getQColumnExpression
public java.lang.String getQColumnExpression(java.lang.String tableAlias)
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
-
getTableAlias
public java.lang.String getTableAlias(java.lang.String mainTableAlias)
Returns the table alias of either the main table or the relation, depending on where the source BindingItem belongs to- Parameters:
mainTableAlias
-- Returns:
- Throws:
BindingNotFoundException
-
-