package com.quantum.view.bookmark;
+import java.sql.SQLException;
+
import com.quantum.model.Column;
import com.quantum.model.Entity;
import com.quantum.model.EntityHolder;
+import com.quantum.model.NotConnectedException;
import com.quantum.model.SchemaHolder;
import com.quantum.model.Table;
import com.quantum.model.View;
}
}
- public Object[] getChildren() {
+ public Object[] getChildren() throws NotConnectedException, SQLException {
initializeChildren();
if (this.children.size() > 0) {
return (ColumnNode[]) this.children.toArray(new ColumnNode[this.children.size()]);
}
}
- protected synchronized void initializeChildren() {
+ protected synchronized void initializeChildren() throws NotConnectedException, SQLException {
this.children.clear();
Column[] columns = this.entity.getColumns();
for (int i = 0, length = (columns == null) ? 0 : columns.length;
}
public String getLabelName() {
- return (this.longFormName) ? this.entity.getCondQualifiedName() : this.entity.getName();
+ return (this.longFormName) ? this.entity.getQualifiedName() : this.entity.getName();
}
public boolean isTable() {
public int compareTo(Object o) {
if (o instanceof EntityNode) {
EntityNode that = (EntityNode) o;
- return this.entity.getCondQualifiedName().compareTo(
- that.entity.getCondQualifiedName());
+ return this.entity.getQualifiedName().compareTo(
+ that.entity.getQualifiedName());
} else {
return super.compareTo(o);
}