|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.model.jdo.impl.PersistenceElementImpl
public abstract class PersistenceElementImpl
| 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 | |
|---|---|
PersistenceElementImpl()
Create new PersistenceElementImpl with no corresponding name. |
|
PersistenceElementImpl(String name)
Creates new PersistenceElementImpl with the corresponding name |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener. |
void |
addVetoableChangeListener(VetoableChangeListener l)
Add a vetoable change listener. |
void |
attachToElement(PersistenceElement element)
Called to attach the implementation to a specific element. |
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. |
String |
getName()
Get the name of this persistence element. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener. |
void |
removeVetoableChangeListener(VetoableChangeListener l)
Remove a vetoable change listener. |
void |
setName(String name)
Set the name of this persistence element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceElementImpl()
public PersistenceElementImpl(String name)
name - the name of the element| Method Detail |
|---|
public void attachToElement(PersistenceElement element)
attachToElement in interface PersistenceElement.Implelement - the element to attach to
protected void firePropertyChange(String name,
Object o,
Object n)
name - property nameo - old valuen - new valuepublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in interface PersistenceElement.Impll - the listener to addpublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in interface PersistenceElement.Impll - the listener to remove
protected void fireVetoableChange(String name,
Object o,
Object n)
throws PropertyVetoException
name - property nameo - old valuen - new value
PropertyVetoException - when the change is vetoed by a listenerpublic void addVetoableChangeListener(VetoableChangeListener l)
addVetoableChangeListener in interface PersistenceElement.Impll - the listener to addpublic void removeVetoableChangeListener(VetoableChangeListener l)
removeVetoableChangeListener in interface PersistenceElement.Impll - the listener to removepublic String getName()
getName in interface PersistenceElement.Impl
public void setName(String name)
throws ModelException
setName in interface PersistenceElement.Implname - the name
ModelException - if impossible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||