/** Creates new MappingReferenceKeyElementImpl with a corresponding * mapping table. * @param table mapping table element to be used with this key. */ public MappingReferenceKeyElementImpl (MappingTableElement table) throws ModelException { super(table.getName(), table.getDeclaringClass()); setTableInternal(table); }
/** Creates new MappingReferenceKeyElementImpl with a corresponding * mapping table. * @param table mapping table element to be used with this key. */ public MappingReferenceKeyElementImpl (MappingTableElement table) throws ModelException { super(table.getName(), table.getDeclaringClass()); setTableInternal(table); }
/** 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); } }