Class PersistenceMemberElementImpl
- java.lang.Object
-
- com.sun.jdo.api.persistence.model.jdo.impl.PersistenceElementImpl
-
- com.sun.jdo.api.persistence.model.jdo.impl.PersistenceMemberElementImpl
-
- All Implemented Interfaces:
PersistenceElement.Impl
,PersistenceElementProperties
,PersistenceMemberElement.Impl
- Direct Known Subclasses:
FieldGroupElementImpl
,PersistenceFieldElementImpl
public abstract class PersistenceMemberElementImpl extends PersistenceElementImpl implements PersistenceMemberElement.Impl
- Version:
- %I%
- Author:
- raccah
-
-
Field Summary
-
Fields inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl
ADD, REMOVE, SET
-
Fields inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElementProperties
PROP_CARDINALITY, PROP_COLLECTION_CLASS, PROP_DELETE_ACTION, PROP_ELEMENT_CLASS, PROP_FIELDS, PROP_GROUPS, PROP_IDENTITY, PROP_INVERSE_FIELD, PROP_KEY_CLASS, PROP_KEY_FIELD, PROP_MODIFIED, PROP_NAME, PROP_PERSISTENCE, PROP_PREFETCH, PROP_SENSITIVITY, PROP_UPDATE_ACTION
-
-
Constructor Summary
Constructors Constructor Description PersistenceMemberElementImpl()
Create new PersistenceMemberElementImpl with no corresponding name.PersistenceMemberElementImpl(String name)
Creates new PersistenceMemberElementImpl with the corresponding name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
firePropertyChange(String name, Object o, Object n)
Fires property change event.protected void
fireVetoableChange(String name, Object o, Object n)
Fires vetoable change event.-
Methods inherited from class com.sun.jdo.api.persistence.model.jdo.impl.PersistenceElementImpl
addPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl
addPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setName
-
-
-
-
Constructor Detail
-
PersistenceMemberElementImpl
public PersistenceMemberElementImpl()
Create new PersistenceMemberElementImpl with no corresponding name. This constructor should only be used for cloning and archiving.
-
PersistenceMemberElementImpl
public PersistenceMemberElementImpl(String name)
Creates new PersistenceMemberElementImpl with the corresponding name- Parameters:
name
- the name of the element
-
-
Method Detail
-
firePropertyChange
protected final void firePropertyChange(String name, Object o, Object n)
Fires property change event. This method overrides that of PersistenceElementImpl to update the PersistenceClassElementImpl's modified status.- Overrides:
firePropertyChange
in classPersistenceElementImpl
- Parameters:
name
- property nameo
- old valuen
- new value
-
fireVetoableChange
protected final void fireVetoableChange(String name, Object o, Object n) throws PropertyVetoException
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.- Overrides:
fireVetoableChange
in classPersistenceElementImpl
- Parameters:
name
- property nameo
- old valuen
- new value- Throws:
PropertyVetoException
- when the change is vetoed by a listener
-
-