Package com.adbs.querybuilder
Class Link
- java.lang.Object
-
- com.adbs.querybuilder.ControlOwner
-
- com.adbs.querybuilder.Link
-
- All Implemented Interfaces:
Disposable
,java.awt.event.ActionListener
,java.util.EventListener
public class Link extends ControlOwner implements java.awt.event.ActionListener
-
-
Field Summary
Fields Modifier and Type Field Description protected DataSourceBase
datasourceOwner
protected DataSource
leftDatasource
protected DataSource
rightDatasource
-
Fields inherited from class com.adbs.querybuilder.ControlOwner
children, controls, queryBuilder, sqlContext
-
-
Constructor Summary
Constructors Constructor Description Link(DatasourceGroup owner, QueryBuilder queryBuilder)
-
Method Summary
-
Methods inherited from class com.adbs.querybuilder.ControlOwner
addAfterUpdatedEventListener, addDestroyingEventListener, beginUpdate, calcAcOwnerFromOwner, canCreateControls, collectSubqueryProxiesByRootNode, createControls, createResultAST, destroyCachedResultASTs, destroyControls, doAfterUpdated, doCreateControls, doDestroyControls, doSQLUpdated, doUpdateContolParams, editProps, endUpdate, fireAfterUpdatedEvent, fireDestroyingEvent, gatherPrepareAndFixupContext, getASTChildrenForSubtree, getChildrenCount, getControl, getOwner, getPopupMenu, getQueryBuilder, getResultAST, getResultASTInternal, getResultSQL, getResultSQL, getSQLContext, getSubqueryCountByRootNode, getUpdateParent, getVisibleDataSources, isControlsCreated, isDisposing, isUpdating, loadSubQueries, makeVisible, notifyDatasourceDestroying, notifyDatasourceReplaced, notifySQLUpdated, notifySQLUpdatedRecursive, registerUpdateChild, removeAfterUpdatedEventListener, removeDestroyingEventListener, restoreControlParams, saveControlParams, setDisposing, setOwner, setUpdateParent, showSubQueriesPopup, unregisterUpdateChild
-
-
-
-
Field Detail
-
datasourceOwner
protected DataSourceBase datasourceOwner
-
leftDatasource
protected DataSource leftDatasource
-
rightDatasource
protected DataSource rightDatasource
-
-
Constructor Detail
-
Link
public Link(DatasourceGroup owner, QueryBuilder queryBuilder)
-
-
Method Detail
-
getReferencedColumns
protected static void getReferencedColumns(SQLExpressionItem expression, java.util.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 interfaceDisposable
- Overrides:
dispose
in classControlOwner
-
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 java.lang.String getLinkExpressionString()
-
setLinkExpressionString
public void setLinkExpressionString(java.lang.String value)
-
getControlsCount
public int getControlsCount()
- Overrides:
getControlsCount
in classControlOwner
-
createControlInternal
protected java.awt.Component createControlInternal(int i)
- Overrides:
createControlInternal
in classControlOwner
-
updateContolParams
protected void updateContolParams(int i)
- Overrides:
updateContolParams
in classControlOwner
-
getASTChildren
protected void getASTChildren(java.util.List l)
- Overrides:
getASTChildren
in classControlOwner
-
loadDataSourceList
protected void loadDataSourceList(DataSourceBase dataSourceOwner)
-
resetCardinality
protected void resetCardinality()
-
calcCardinality
public void calcCardinality()
-
calcDatasourcesReferencedByLink
protected void calcDatasourcesReferencedByLink(java.util.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 classControlOwner
-
notifyDatasourceReplacedInternal
protected void notifyDatasourceReplacedInternal(DataSource datasourceFrom, DataSource datasourceTo)
- Overrides:
notifyDatasourceReplacedInternal
in classControlOwner
-
setJoinKindClass
public void setJoinKindClass(java.lang.Class joinKindClass)
-
recalcSideDatasources
protected void recalcSideDatasources()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.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()
-
-