public abstract class MappingElementImpl extends Object implements MappingElement
PROP_ASSOCIATED_COLUMNS, PROP_COLUMNS, PROP_CONSISTENCY, PROP_DATABASE_ROOT, PROP_FETCH_GROUP, PROP_FIELDS, PROP_IN_CONCURRENCY_CHECK, PROP_KEY_COLUMNS, PROP_MODIFIED, PROP_NAME, PROP_NAVIGABLE, PROP_READ_ONLY, PROP_REFERENCING_KEYS, PROP_TABLE, PROP_TABLES, PROP_VERSION_FIELD
Constructor and Description |
---|
MappingElementImpl()
Create new MappingElementImpl with no corresponding name.
|
MappingElementImpl(String name)
Creates new MappingElementImpl with the corresponding name
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener.
|
void |
addVetoableChangeListener(VetoableChangeListener l)
Add a vetoable change listener.
|
int |
compareTo(Object o)
Compares this object with the specified object for order.
|
boolean |
equals(Object obj)
Overrides Object's
equals method by comparing the name of this mapping element
with the name of the argument obj. |
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.
|
protected static ResourceBundle |
getMessages() |
String |
getName()
Get the name of this mapping element.
|
int |
hashCode()
Overrides Object's
hashCode method to return the hashCode of this mapping element's name. |
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 mapping element.
|
String |
toString()
Overrides Object's
toString method to return the name
of this mapping element. |
public MappingElementImpl()
public MappingElementImpl(String name)
name
- the name of the elementprotected static final ResourceBundle getMessages()
public String toString()
toString
method to return the name
of this mapping element.public boolean equals(Object obj)
equals
method by comparing the name of this mapping element
with the name of the argument obj. The method returns false
if obj does not have
the same dynamic type as this mapping element.public int hashCode()
hashCode
method to return the hashCode of this mapping element's name.protected void firePropertyChange(String name, Object o, Object n)
name
- property nameo
- old valuen
- new valueprotected void fireVetoableChange(String name, Object o, Object n) throws PropertyVetoException
name
- property nameo
- old valuen
- new valuePropertyVetoException
- when the change is vetoed by a listenerpublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in interface MappingElement
l
- the listener to addpublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in interface MappingElement
l
- the listener to removepublic void addVetoableChangeListener(VetoableChangeListener l)
addVetoableChangeListener
in interface MappingElement
l
- the listener to addpublic void removeVetoableChangeListener(VetoableChangeListener l)
removeVetoableChangeListener
in interface MappingElement
l
- the listener to removepublic String getName()
getName
in interface MappingElement
public void setName(String name) throws ModelException
setName
in interface MappingElement
name
- the nameModelException
- if impossiblepublic int compareTo(Object o)
compareTo
in interface Comparable
o
- the Object to be compared.ClassCastException
- - if the specified object is null or is not an instance of MappingElementImplCopyright © 2019. All rights reserved.