/** Adds a referencing key to the list of keys in this mapping table. * @param referencingKey referencing key element to be added * @exception ModelException if impossible */ public void addReferencingKey (MappingReferenceKeyElement referencingKey) throws ModelException { try { fireVetoableChange(PROP_REFERENCING_KEYS, null, null); getReferencingKeys().add(referencingKey); firePropertyChange(PROP_REFERENCING_KEYS, null, null); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Adds a referencing key to the list of keys in this mapping table. * @param referencingKey referencing key element to be added * @exception ModelException if impossible */ public void addReferencingKey (MappingReferenceKeyElement referencingKey) throws ModelException { try { fireVetoableChange(PROP_REFERENCING_KEYS, null, null); getReferencingKeys().add(referencingKey); firePropertyChange(PROP_REFERENCING_KEYS, null, null); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
fireVetoableChange(PROP_REFERENCING_KEYS, null, null); keyIterator.remove(); firePropertyChange(PROP_REFERENCING_KEYS, null, null);
fireVetoableChange(PROP_REFERENCING_KEYS, null, null); keyIterator.remove(); firePropertyChange(PROP_REFERENCING_KEYS, null, null);
/** Adds a column to the primary key of columns in this mapping table. * This method is used internally to manipulate primary key columns * that have passed the null and duplicate tests in addKeyColumn and * secondary table key columns when pairs are being set up and ignoring * duplicates is done at the pair level. * @param column column element to be added * @exception ModelException if impossible */ protected void addKeyColumnInternal (ColumnElement column) throws ModelException { ArrayList key = getKey(); String columnName = NameUtil.getRelativeMemberName( column.getName().getFullName()); try { fireVetoableChange(PROP_KEY_COLUMNS, null, null); key.add(columnName); firePropertyChange(PROP_KEY_COLUMNS, null, null); // sync up runtime's object list too //@olsen: rather clear objects instead of maintaining them //getKeyObjects().add(column); _keyObjects = null; } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Adds a column to the primary key of columns in this mapping table. * This method is used internally to manipulate primary key columns * that have passed the null and duplicate tests in addKeyColumn and * secondary table key columns when pairs are being set up and ignoring * duplicates is done at the pair level. * @param column column element to be added * @exception ModelException if impossible */ protected void addKeyColumnInternal (ColumnElement column) throws ModelException { ArrayList key = getKey(); String columnName = NameUtil.getRelativeMemberName( column.getName().getFullName()); try { fireVetoableChange(PROP_KEY_COLUMNS, null, null); key.add(columnName); firePropertyChange(PROP_KEY_COLUMNS, null, null); // sync up runtime's object list too //@olsen: rather clear objects instead of maintaining them //getKeyObjects().add(column); _keyObjects = null; } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
fireVetoableChange(PROP_KEY_COLUMNS, null, null);
/** Set the table element for this mapping table to the supplied table. * @param table table element to be used by the mapping table. * @exception ModelException if impossible */ public void setTable (TableElement table) throws ModelException { String old = getTable(); String newName = table.toString(); try { fireVetoableChange(PROP_TABLE, old, newName); _table = newName; firePropertyChange(PROP_TABLE, old, newName); setName(_table); // sync up runtime's object too: force next // access to getTableObject to recompute it _tableObject = null; } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Set the table element for this mapping table to the supplied table. * @param table table element to be used by the mapping table. * @exception ModelException if impossible */ public void setTable (TableElement table) throws ModelException { String old = getTable(); String newName = table.toString(); try { fireVetoableChange(PROP_TABLE, old, newName); _table = newName; firePropertyChange(PROP_TABLE, old, newName); setName(_table); // sync up runtime's object too: force next // access to getTableObject to recompute it _tableObject = null; } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
fireVetoableChange(PROP_KEY_COLUMNS, null, null);