PersistenceMemberElementImplpublic abstract class PersistenceMemberElementImpl extends PersistenceElementImpl implements PersistenceMemberElement.Impl
Constructors Summary |
---|
public PersistenceMemberElementImpl()Create new PersistenceMemberElementImpl with no corresponding name.
This constructor should only be used for cloning and archiving.
this(null);
| public PersistenceMemberElementImpl(String name)Creates new PersistenceMemberElementImpl with the corresponding name
super(name);
|
Methods Summary |
---|
protected final void | firePropertyChange(java.lang.String name, java.lang.Object o, java.lang.Object n)Fires property change event. This method overrides that of
PersistenceElementImpl to update the PersistenceClassElementImpl's
modified status.
// even though o == null and n == null will signify a change, that
// is consistent with PropertyChangeSupport's behavior and is
// necessary for this to work
boolean noChange = ((o != null) && (n != null) && o.equals(n));
PersistenceClassElement classElement =
((PersistenceMemberElement)_element).getDeclaringClass();
super.firePropertyChange(name, o, n);
if ((classElement != null) && !noChange)
classElement.setModified(true);
| protected final void | fireVetoableChange(java.lang.String name, java.lang.Object o, java.lang.Object n)Fires vetoable change event. This method overrides that of
PersistenceElementImpl to give listeners a chance to block
changes on the persistence class element modified status.
// even though o == null and n == null will signify a change, that
// is consistent with PropertyChangeSupport's behavior and is
// necessary for this to work
boolean noChange = ((o != null) && (n != null) && o.equals(n));
PersistenceClassElement classElement =
((PersistenceMemberElement)_element).getDeclaringClass();
super.fireVetoableChange(name, o, n);
if ((classElement != null) && !noChange)
{
((PersistenceElementImpl)classElement.getImpl()).
fireVetoableChange(PROP_MODIFIED, Boolean.FALSE, Boolean.TRUE);
}
|
|