Search in sources :

Example 1 with MappingTableElement

use of com.sun.jdo.api.persistence.model.mapping.MappingTableElement in project Payara by payara.

the class MappingReferenceKeyElementImpl method setTable.

/**
 * 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);
    }
}
Also used : PropertyVetoException(java.beans.PropertyVetoException) ModelVetoException(com.sun.jdo.api.persistence.model.ModelVetoException) MappingTableElement(com.sun.jdo.api.persistence.model.mapping.MappingTableElement)

Aggregations

ModelVetoException (com.sun.jdo.api.persistence.model.ModelVetoException)1 MappingTableElement (com.sun.jdo.api.persistence.model.mapping.MappingTableElement)1 PropertyVetoException (java.beans.PropertyVetoException)1