public abstract class DataSourceBase extends ControlOwner implements SyntaxProviderChangedEventListener
| Modifier and Type | Field and Description |
|---|---|
protected SQLFromSource |
astFromSource |
protected UnionSubQuery |
query |
children, controls, queryBuilder, sqlContext| Constructor and Description |
|---|
DataSourceBase(ControlOwner owner,
ControlOwner updateParent,
QueryBuilder queryBuilder) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
addLinksFromExpression(SQLExpressionItem expression) |
boolean |
containsDatasource(DataSourceBase ds,
boolean recursive) |
protected AstNode |
createResultAST() |
void |
dispose() |
protected void |
getASTChildren(java.util.List l) |
void |
getDatasourceByClass(java.lang.Class datasourceClass,
java.util.List list) |
protected java.lang.String |
getDataSourceName() |
void |
getDatasources(java.util.List list) |
SQLFromSource |
getFromSource() |
DatasourceGroup |
getGroup() |
SQLJoinKind |
getJoinKind() |
java.lang.Class |
getJoinKindClass() |
UnionSubQuery |
getQuery() |
void |
invalidateLinks() |
boolean |
loadFromAST(SQLFromSource fs) |
void |
loadJoins() |
void |
loadLayout(org.w3c.dom.Element unionSubQuery,
SQLBuilder sqlBuilder) |
void |
realignLinks() |
void |
saveLayout(org.w3c.dom.Document document,
org.w3c.dom.Element unionSubQuery,
SQLBuilder sqlBuilder) |
void |
setGroup(DatasourceGroup value) |
void |
setJoinKind(SQLJoinKind value) |
void |
setJoinKindClass(java.lang.Class value) |
void |
syntaxProviderChangedEventOccurred(SyntaxProviderChangedEvent event) |
void |
updateChecks() |
addAfterUpdatedEventListener, addDestroyingEventListener, beginUpdate, calcAcOwnerFromOwner, canCreateControls, collectSubqueryProxiesByRootNode, createControlInternal, createControls, destroyCachedResultASTs, destroyControls, doAfterUpdated, doCreateControls, doDestroyControls, doSQLUpdated, doUpdateContolParams, editProps, endUpdate, fireAfterUpdatedEvent, fireDestroyingEvent, gatherPrepareAndFixupContext, getASTChildrenForSubtree, getChildrenCount, getControl, getControlsCount, getOwner, getPopupMenu, getQueryBuilder, getResultAST, getResultASTInternal, getResultSQL, getResultSQL, getSQLContext, getSubqueryCountByRootNode, getUpdateParent, getVisibleDataSources, isControlsCreated, isDisposing, isUpdating, loadSubQueries, makeVisible, notifyDatasourceDestroying, notifyDatasourceDestroyingInternal, notifyDatasourceReplaced, notifyDatasourceReplacedInternal, notifySQLUpdated, notifySQLUpdatedRecursive, registerUpdateChild, removeAfterUpdatedEventListener, removeDestroyingEventListener, restoreControlParams, saveControlParams, setDisposing, setOwner, setUpdateParent, showSubQueriesPopup, unregisterUpdateChild, updateContolParamsprotected UnionSubQuery query
protected SQLFromSource astFromSource
public DataSourceBase(ControlOwner owner, ControlOwner updateParent, QueryBuilder queryBuilder)
public void dispose()
dispose in interface Disposabledispose in class ControlOwnerpublic DatasourceGroup getGroup()
public void setGroup(DatasourceGroup value) throws QueryBuilderException
QueryBuilderExceptionpublic UnionSubQuery getQuery()
protected java.lang.String getDataSourceName()
public SQLJoinKind getJoinKind()
public void setJoinKind(SQLJoinKind value)
public java.lang.Class getJoinKindClass()
public void setJoinKindClass(java.lang.Class value)
public SQLFromSource getFromSource()
protected void getASTChildren(java.util.List l)
getASTChildren in class ControlOwnerprotected AstNode createResultAST()
createResultAST in class ControlOwnerpublic void saveLayout(org.w3c.dom.Document document,
org.w3c.dom.Element unionSubQuery,
SQLBuilder sqlBuilder)
public void loadLayout(org.w3c.dom.Element unionSubQuery,
SQLBuilder sqlBuilder)
public boolean loadFromAST(SQLFromSource fs)
public void loadJoins()
public void updateChecks()
public void getDatasources(java.util.List list)
public void getDatasourceByClass(java.lang.Class datasourceClass,
java.util.List list)
public boolean containsDatasource(DataSourceBase ds, boolean recursive)
public void realignLinks()
public void invalidateLinks()
public void syntaxProviderChangedEventOccurred(SyntaxProviderChangedEvent event)
syntaxProviderChangedEventOccurred in interface SyntaxProviderChangedEventListenerpublic java.util.List addLinksFromExpression(SQLExpressionItem expression)