Class BindingItemFromRel


  • public class BindingItemFromRel
    extends BindingItem
    Represents a BindingItem coming form a BindingSet Relation
    • Constructor Detail

      • BindingItemFromRel

        public BindingItemFromRel​(BindingItem src,
                                  Relation relation,
                                  java.lang.String id,
                                  java.lang.String importCaption)
        Parameters:
        src - - Corresponding BindingItem in related BindingSet
        relation -
        id - - is with relation prefix when from a default import
        importCaption - - 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 class SimpleBindingItem
      • 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