/** 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); } }