use of org.jkiss.dbeaver.model.sql.SQLQueryContainer in project dbeaver by serge-rider.
the class ResultSetViewer method getActiveQueryText.
@NotNull
public String getActiveQueryText() {
DBCStatistics statistics = getModel().getStatistics();
String queryText = statistics == null ? null : statistics.getQueryText();
if (queryText == null || queryText.isEmpty()) {
DBSDataContainer dataContainer = getDataContainer();
if (dataContainer != null) {
if (dataContainer instanceof SQLQueryContainer) {
SQLScriptElement query = ((SQLQueryContainer) dataContainer).getQuery();
if (query != null) {
return query.getText();
}
}
return dataContainer.getName();
}
queryText = DEFAULT_QUERY_TEXT;
}
return queryText;
}
use of org.jkiss.dbeaver.model.sql.SQLQueryContainer in project dbeaver by dbeaver.
the class ResultSetViewer method getActiveQueryText.
@NotNull
public String getActiveQueryText() {
DBCStatistics statistics = getModel().getStatistics();
String queryText = statistics == null ? null : statistics.getQueryText();
if (queryText == null || queryText.isEmpty()) {
DBSDataContainer dataContainer = getDataContainer();
if (dataContainer != null) {
if (dataContainer instanceof SQLQueryContainer) {
SQLScriptElement query = ((SQLQueryContainer) dataContainer).getQuery();
if (query != null) {
return query.getText();
}
}
return dataContainer.getName();
}
queryText = DEFAULT_QUERY_TEXT;
}
return queryText;
}
Aggregations