Class Link

All Implemented Interfaces:
Disposable, ActionListener, EventListener

public class Link extends ControlOwner implements ActionListener
  • Field Details

  • Constructor Details

  • Method Details

    • getReferencedColumns

      protected static void getReferencedColumns(SQLExpressionItem expression, List columnList)
    • canLoadExpressionAsSimpleLink

      public static boolean canLoadExpressionAsSimpleLink(DataSourceBase datasourceOwner, SQLExpressionItem expression)
    • canLoadExpressionAsSimpleWhereLink

      public static boolean canLoadExpressionAsSimpleWhereLink(DatasourceGroup fromClause, SQLExpressionItem expression)
    • dispose

      public void dispose()
      Specified by:
      dispose in interface Disposable
      Overrides:
      dispose in class ControlOwner
    • getDatasourceGroup

      public DatasourceGroup getDatasourceGroup()
    • setDatasourceGroup

      public void setDatasourceGroup(DatasourceGroup value) throws QueryBuilderException
      Throws:
      QueryBuilderException
    • getDatasourceOwner

      public DataSourceBase getDatasourceOwner()
    • getLinkControl

      protected LinkControl getLinkControl()
    • isSimple

      public boolean isSimple()
    • getPlace

      public LinkPlace getPlace()
    • getLeftDatasource

      public DataSource getLeftDatasource()
    • setLeftDatasource

      public void setLeftDatasource(DataSource datasource)
    • getLeftType

      public LinkSideType getLeftType()
    • setLeftType

      public void setLeftType(LinkSideType leftType)
    • getLeftField

      public SQLQualifiedName getLeftField()
    • getLeftCardinality

      public LinkCardinality getLeftCardinality()
    • getRightDatasource

      public DataSource getRightDatasource()
    • setRightDatasource

      public void setRightDatasource(DataSource datasource)
    • getRightType

      public LinkSideType getRightType()
    • setRightType

      public void setRightType(LinkSideType rightType)
    • getRightField

      public SQLQualifiedName getRightField()
    • getRightCardinality

      public LinkCardinality getRightCardinality()
    • getLinkExpression

      public SQLExpressionItem getLinkExpression()
    • setLinkExpression

      public void setLinkExpression(SQLExpressionItem value)
    • getLinkExpressionString

      public String getLinkExpressionString()
    • setLinkExpressionString

      public void setLinkExpressionString(String value)
    • getControlsCount

      public int getControlsCount()
      Overrides:
      getControlsCount in class ControlOwner
    • createControlInternal

      protected Component createControlInternal(int i)
      Overrides:
      createControlInternal in class ControlOwner
    • updateContolParams

      protected void updateContolParams(int i)
      Overrides:
      updateContolParams in class ControlOwner
    • getASTChildren

      protected void getASTChildren(List l)
      Overrides:
      getASTChildren in class ControlOwner
    • loadDataSourceList

      protected void loadDataSourceList(DataSourceBase dataSourceOwner)
    • resetCardinality

      protected void resetCardinality()
    • calcCardinality

      public void calcCardinality()
    • calcDatasourcesReferencedByLink

      protected void calcDatasourcesReferencedByLink(ArrayList l)
    • recalcSameLevelDatasources

      protected void recalcSameLevelDatasources(DataSourceBase datasourceOwner)
    • setLinkParamsInternal

      public void setLinkParamsInternal(DataSourceBase datasourceOwner, SQLExpressionItem ast, LinkPlace place, boolean newFlag)
    • calcLeftTypeInternal

      protected void calcLeftTypeInternal()
    • calcRightTypeInternal

      protected void calcRightTypeInternal()
    • setWhereLinkTypeTransactSQL

      protected void setWhereLinkTypeTransactSQL(LinkSideType linkType, DataSource datasource)
    • flipLink

      protected void flipLink()
    • moveDatasourceIntoGroup

      protected void moveDatasourceIntoGroup(DataSourceBase datasource, DatasourceGroup group)
    • notifyDatasourceDestroyingInternal

      protected boolean notifyDatasourceDestroyingInternal(DataSource datasource)
      Overrides:
      notifyDatasourceDestroyingInternal in class ControlOwner
    • notifyDatasourceReplacedInternal

      protected void notifyDatasourceReplacedInternal(DataSource datasourceFrom, DataSource datasourceTo)
      Overrides:
      notifyDatasourceReplacedInternal in class ControlOwner
    • setJoinKindClass

      public void setJoinKindClass(Class joinKindClass)
    • recalcSideDatasources

      protected void recalcSideDatasources()
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • setOraclePlusForDatasource

      protected void setOraclePlusForDatasource(DataSource datasource, boolean setPlus)
    • isSupportOuterJoins

      public boolean isSupportOuterJoins()
    • leftTypeSupportOuter

      public boolean leftTypeSupportOuter()
    • rightTypeSupportOuter

      public boolean rightTypeSupportOuter()
    • getMetadataRelation

      public MetadataRelation getMetadataRelation()
    • refreshMetadata

      public void refreshMetadata()