/** Set the mapping table for this referencing key to the supplied table. * @param table mapping table element to be used with this key. * @exception ModelException if impossible */ public void setTable (MappingTableElement table) throws ModelException { MappingTableElement old = getTable(); try { fireVetoableChange(PROP_TABLE, old, table); setTableInternal(table); firePropertyChange(PROP_TABLE, old, table); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Set the mapping table for this referencing key to the supplied table. * @param table mapping table element to be used with this key. * @exception ModelException if impossible */ public void setTable (MappingTableElement table) throws ModelException { MappingTableElement old = getTable(); try { fireVetoableChange(PROP_TABLE, old, table); setTableInternal(table); firePropertyChange(PROP_TABLE, old, table); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
firePropertyChange(PROP_KEY_COLUMNS, null, null);
firePropertyChange(PROP_KEY_COLUMNS, null, null);
/** Adds a column to the list of key columns in this referencing key. * This method is only called privately from addColumnPairs and assumes * that the column is not <code>null</code>. * @param column column element to be added * @exception ModelException if impossible */ private void addKeyColumn (ColumnElement column) throws ModelException { ArrayList referencingKey = getReferencingKey(); String columnName = NameUtil.getRelativeMemberName( column.getName().getFullName()); try { fireVetoableChange(PROP_KEY_COLUMNS, null, null); referencingKey.add(columnName); firePropertyChange(PROP_KEY_COLUMNS, null, null); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Adds a column to the list of key columns in this referencing key. * This method is only called privately from addColumnPairs and assumes * that the column is not <code>null</code>. * @param column column element to be added * @exception ModelException if impossible */ private void addKeyColumn (ColumnElement column) throws ModelException { ArrayList referencingKey = getReferencingKey(); String columnName = NameUtil.getRelativeMemberName( column.getName().getFullName()); try { fireVetoableChange(PROP_KEY_COLUMNS, null, null); referencingKey.add(columnName); firePropertyChange(PROP_KEY_COLUMNS, null, null); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }