-
Notifications
You must be signed in to change notification settings - Fork 566
dbeaver/pro#8981 add api for reference panel in cloudbeaver #4313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
serge-rider
merged 15 commits into
devel
from
dbeaver/pro#8981-api-pref-panel-for-cloudbeaver
Jun 11, 2026
Merged
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6c95b65
dbeaver/pro#8981 add api for reference panel in cloudbeaver
HocKu7 1f7a913
dbeaver/pro#8981 fixes
HocKu7 7c62750
Merge branch 'devel' into dbeaver/pro#8981-api-pref-panel-for-cloudbe…
HocKu7 289781e
dbeaver/pro#8981 api ref panel
HocKu7 b09a60a
dbeaver/pro#8981 api ref panel
HocKu7 864a075
Merge branch 'devel' into dbeaver/pro#8981-api-pref-panel-for-cloudbe…
HocKu7 8107495
Merge branch 'devel' into dbeaver/pro#8981-api-pref-panel-for-cloudbe…
HocKu7 1af0d48
dbeaver/pro#8981 api ref panel
HocKu7 839b053
dbeaver/pro#8981 add api ref to table level
HocKu7 486e835
dbeaver/pro#8981 fix tests
HocKu7 9d1d321
dbeaver/pro#8981 fix review
HocKu7 c093c42
Merge branch 'devel' into dbeaver/pro#8981-api-pref-panel-for-cloudbe…
EvgeniaBzzz c57d168
Merge branch 'devel' into dbeaver/pro#8981-api-pref-panel-for-cloudbe…
HocKu7 7129527
dbeaver/pro#8981 lazy loading fix
HocKu7 af6701e
dbeaver/pro#8981 separate association and refs
HocKu7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...o.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLQueryResultColumnReference.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| /* | ||
| * DBeaver - Universal Database Manager | ||
| * Copyright (C) 2010-2026 DBeaver Corp and others | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| package io.cloudbeaver.service.sql; | ||
|
|
||
| import org.jkiss.code.NotNull; | ||
| import org.jkiss.code.Nullable; | ||
| import org.jkiss.dbeaver.model.DBPEvaluationContext; | ||
| import org.jkiss.dbeaver.model.DBUtils; | ||
| import org.jkiss.dbeaver.model.meta.Property; | ||
| import org.jkiss.dbeaver.model.struct.DBSEntity; | ||
| import org.jkiss.dbeaver.model.struct.DBSEntityAssociation; | ||
| import org.jkiss.dbeaver.model.struct.DBSEntityConstraint; | ||
|
|
||
| /** | ||
| * Web SQL query result column reference. | ||
| */ | ||
| public class WebSQLQueryResultColumnReference { | ||
|
|
||
| @NotNull | ||
| private final DBSEntityAssociation association; | ||
|
|
||
| public WebSQLQueryResultColumnReference(@NotNull DBSEntityAssociation association) { | ||
| this.association = association; | ||
| } | ||
|
|
||
| @NotNull | ||
| @Property | ||
| public String getAssociationName() { | ||
| return association.getName(); | ||
| } | ||
|
|
||
| @Nullable | ||
| @Property | ||
| public String getTargetEntityName() { | ||
| DBSEntityConstraint referencedConstraint = association.getReferencedConstraint(); | ||
| if (referencedConstraint == null) { | ||
| return null; | ||
| } | ||
| DBSEntity targetEntity = referencedConstraint.getParentObject(); | ||
| if (targetEntity == null) { | ||
| return null; | ||
| } | ||
| return DBUtils.getObjectFullName(targetEntity, DBPEvaluationContext.UI); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.