This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Metadata API: Primary key needs getPosition() | ||
---|---|---|---|
Product: | db | Reporter: | David Vancouvering <davidvc> |
Component: | Code | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
David Vancouvering
2008-12-03 06:21:18 UTC
Reassigned to new owner. From the API (org.netbeans.modules.db.metadata.model.api.PrimaryKey#getColumns): "Get the list of columns for this primary key. The collection is ordered based on the sequencing of the primary key." So a user could be bold enough to cast to java.util.List other ordered collections don't seem to be to fitting. Guarded with an instanceof and a fallback to "List<Column> columns = new ArrayList<>(pk.getColumns())" should do it. |