Methods Summary |
---|
public synchronized void | addPropertyChangeListener(java.beans.PropertyChangeListener l)Add a property change listener.
if (_support == null)
{
synchronized(this)
{
// new test under synchronized block
if (_support == null)
_support = new PropertyChangeSupport(_element);
}
}
_support.addPropertyChangeListener(l);
|
public synchronized void | addVetoableChangeListener(java.beans.VetoableChangeListener l)Add a vetoable change listener.
if (_vetoableSupport == null)
_vetoableSupport = new VetoableChangeSupport(_element);
_vetoableSupport.addVetoableChangeListener(l);
|
public void | attachToElement(com.sun.jdo.api.persistence.model.jdo.PersistenceElement element)Called to attach the implementation to a specific
element. Will be called in the element's constructor.
Allows implementors of this interface to store a reference to the
holder class, useful for implementing the property change listeners.
_element = element;
|
protected void | firePropertyChange(java.lang.String name, java.lang.Object o, java.lang.Object n)Fires property change event.
if (_support != null)
_support.firePropertyChange(name, o, n);
|
protected void | fireVetoableChange(java.lang.String name, java.lang.Object o, java.lang.Object n)Fires vetoable change event.
if (_vetoableSupport != null)
_vetoableSupport.fireVetoableChange(name, o, n);
|
public java.lang.String | getName()Get the name of this persistence element. return _name;
|
public synchronized void | removePropertyChangeListener(java.beans.PropertyChangeListener l)Remove a property change listener.
if (_support != null)
_support.removePropertyChangeListener(l);
|
public synchronized void | removeVetoableChangeListener(java.beans.VetoableChangeListener l)Remove a vetoable change listener.
if (_vetoableSupport != null)
_vetoableSupport.removeVetoableChangeListener(l);
|
public void | setName(java.lang.String name)Set the name of this persistence element.
String old = getName();
try
{
fireVetoableChange(PROP_NAME, old, name);
_name = name;
firePropertyChange(PROP_NAME, old, name);
}
catch (PropertyVetoException e)
{
throw new ModelVetoException(e);
}
|