@Override public String toString() { String name; try { name = m_parent.getName() + "." + m_column.getName(); } catch (DbException ex) { name = super.toString(); } // end try return name; }
public String getName() { String tableName = m_parent.getName(); String columnName; try { columnName = m_column.getName(); } catch (DbException ex) { columnName = "???"; } String name = tableName + "." + columnName; return name; }
public boolean isRubrique() { boolean rubrique; try { String name = m_column.getName(); DbSMSStereotype stereotype = m_column.getUmlStereotype(); rubrique = (name == null) ? false : name.endsWith(RUBRIQUE_SUFFIX); rubrique |= (stereotype == null) ? false : RUBRIQUE_STEREOTYPE.equals(stereotype.getName()); } catch (DbException ex) { rubrique = false; } return rubrique; }
// find, if any, the column of 'table' whose name is 'columnName' private DbORColumn findColumn(DbORTable table, String columnName) throws DbException { DbORColumn namedColumn = null; DbRelationN relN = table.getComponents(); DbEnumeration enu = relN.elements(DbORColumn.metaClass); while (enu.hasMoreElements()) { DbORColumn c = (DbORColumn) enu.nextElement(); if (columnName.equals(c.getName())) { namedColumn = c; break; } } // end while enu.close(); return namedColumn; }