import com.quantum.model.Bookmark;
import com.quantum.model.Column;
import com.quantum.model.Entity;
+import com.quantum.model.NotConnectedException;
import com.quantum.model.Schema;
import org.w3c.dom.Document;
Element table = root.getOwnerDocument().createElement("table");
table.setAttribute("name", entity.getName());
- Column[] columns = entity.getColumns();
- for (int i = 0, length = (columns == null) ? 0 : columns.length;
- i < length;
- i++) {
- convert(table, columns[i]);
- }
+ try {
+ Column[] columns = entity.getColumns();
+ for (int i = 0, length = (columns == null) ? 0 : columns.length;
+ i < length;
+ i++) {
+ convert(table, columns[i]);
+ }
+ } catch (NotConnectedException e) {
+ } catch (SQLException e) {
+ }
root.appendChild(table);
}