org.eclipse.jpt.utility.model
Interface Model

All Known Subinterfaces:
Annotation, AssociationOverride, AssociationOverrideAnnotation, AssociationOverridesAnnotation, AttributeMapping, AttributeOverride, AttributeOverrideAnnotation, AttributeOverridesAnnotation, BaseColumn, BaseColumnAnnotation, BaseEmbeddedMapping, BaseJoinColumn, BaseOverride, BasicAnnotation, BasicMapping, Cascade, ClassRef, CollectionValueModel<E>, Column, ColumnAnnotation, ColumnMapping, ContainerAnnotation<T>, DiscriminatorColumn, DiscriminatorColumnAnnotation, DiscriminatorValueAnnotation, Embeddable, EmbeddableAnnotation, EmbeddedAnnotation, EmbeddedIdAnnotation, EmbeddedIdMapping, EmbeddedMapping, Entity, EntityAnnotation, EntityMappings, EnumeratedAnnotation, Fetchable, GeneratedValue, GeneratedValueAnnotation, Generator, GeneratorAnnotation, GeneratorHolder, IdAnnotation, IdClass, IdClassAnnotation, IdMapping, InheritanceAnnotation, JavaAssociationOverride, JavaAttributeMapping, JavaAttributeOverride, JavaBaseColumn, JavaBaseEmbeddedMapping, JavaBaseJoinColumn, JavaBasicMapping, JavaColumn, JavaColumnMapping, JavaDiscriminatorColumn, JavaEmbeddable, JavaEmbeddedIdMapping, JavaEmbeddedMapping, JavaEntity, JavaGeneratedValue, JavaGenerator, JavaGeneratorHolder, JavaIdMapping, JavaJoinColumn, JavaJoinTable, JavaJpaContextNode, JavaManyToManyMapping, JavaManyToOneMapping, JavaMappedSuperclass, JavaMultiRelationshipMapping, JavaNamedColumn, JavaNamedNativeQuery, JavaNamedQuery, JavaOneToManyMapping, JavaOneToOneMapping, JavaPersistentAttribute, JavaPersistentType, JavaPrimaryKeyJoinColumn, JavaQuery, JavaQueryHint, JavaRelationshipMapping, JavaResourceModel, JavaResourceNode, JavaResourcePersistentAttribute, JavaResourcePersistentMember, JavaResourcePersistentType, JavaSecondaryTable, JavaSequenceGenerator, JavaSingleRelationshipMapping, JavaTable, JavaTableGenerator, JavaTransientMapping, JavaTypeMapping, JavaUniqueConstraint, JavaVersionMapping, JoinColumn, JoinColumnAnnotation, JoinColumnsAnnotation, JoinTable, JoinTableAnnotation, JpaCompilationUnit, JpaContextNode, JpaDataSource, JpaFile, JpaModel, JpaNode, JpaProject, JpaRootContextNode, JpaStructureNode, ListValueModel<E>, LobAnnotation, ManyToManyAnnotation, ManyToManyMapping, ManyToOneAnnotation, ManyToOneMapping, MapKeyAnnotation, MappedSuperclass, MappedSuperclassAnnotation, MappingFileRef, MultiRelationshipMapping, NamedColumn, NamedColumnAnnotation, NamedNativeQueriesAnnotation, NamedNativeQuery, NamedNativeQueryAnnotation, NamedQueriesAnnotation, NamedQuery, NamedQueryAnnotation, NestableAnnotation, NestableAssociationOverride, NestableAttributeOverride, NestableJoinColumn, NestableNamedNativeQuery, NestableNamedQuery, NestablePrimaryKeyJoinColumn, NestableQueryHint, NestableSecondaryTable, NestableUniqueConstraint, NonOwningMapping, Nullable, OneToManyAnnotation, OneToManyMapping, OneToOneAnnotation, OneToOneMapping, OrderByAnnotation, OrmAssociationOverride, OrmAttributeMapping, OrmAttributeOverride, OrmBaseColumn, OrmBaseEmbeddedMapping, OrmBaseJoinColumn, OrmBasicMapping, OrmColumn, OrmColumnMapping, OrmDiscriminatorColumn, OrmEmbeddable, OrmEmbeddedIdMapping, OrmEmbeddedMapping, OrmEntity, OrmGeneratedValue, OrmGenerator, OrmGeneratorHolder, OrmIdMapping, OrmJoinColumn, OrmJoinTable, OrmJpaContextNode, OrmManyToManyMapping, OrmManyToOneMapping, OrmMappedSuperclass, OrmMultiRelationshipMapping, OrmNamedColumn, OrmNamedNativeQuery, OrmNamedQuery, OrmOneToManyMapping, OrmOneToOneMapping, OrmPersistentAttribute, OrmPersistentType, OrmPrimaryKeyJoinColumn, OrmQuery, OrmQueryHint, OrmRelationshipMapping, OrmSecondaryTable, OrmSequenceGenerator, OrmSingleRelationshipMapping, OrmTable, OrmTableGenerator, OrmTransientMapping, OrmTypeMapping, OrmUniqueConstraint, OrmVersionMapping, OrmXml, OverrideAnnotation, Persistence, PersistenceJpaContextNode, PersistenceUnit, PersistenceUnitDefaults, PersistenceUnitMetadata, PersistenceXml, PersistentAttribute, PersistentType, PrimaryKeyJoinColumn, PrimaryKeyJoinColumnAnnotation, PrimaryKeyJoinColumns, Property, PropertyValueModel<T>, Query, QueryAnnotation, QueryHint, QueryHintAnnotation, QueryHolder, RelationshipMapping, RelationshipMappingAnnotation, ResourceModel, SecondaryTable, SecondaryTableAnnotation, SecondaryTablesAnnotation, SequenceGenerator, SequenceGeneratorAnnotation, SingleRelationshipMapping, Table, TableAnnotation, TableGenerator, TableGeneratorAnnotation, TemporalAnnotation, TransientAnnotation, TransientMapping, TreeNodeValueModel<T>, TreeValueModel<E>, TypeMapping, UniqueConstraint, UniqueConstraintAnnotation, VersionAnnotation, VersionMapping, WritablePropertyValueModel<T>
All Known Implementing Classes:
org.eclipse.jpt.utility.internal.model.AbstractModel, org.eclipse.jpt.core.internal.AbstractResourceModel, JpaXmlResourceModel, OrmResourceModel, PersistenceResourceModel

public interface Model

Interface to be implemented by models that notify listeners of changes to bound properties, collections, lists, and/or trees. Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Method Summary
 void addCollectionChangeListener(CollectionChangeListener listener)
          Add a listener that listens to all collection change events, regardless of the collection name associated with that event.
 void addCollectionChangeListener(java.lang.String collectionName, CollectionChangeListener listener)
          Add a listener that listens to all collection change events with the specified collection name.
 void addListChangeListener(ListChangeListener listener)
          Add a listener that listens to all list change events, regardless of the list name associated with that event.
 void addListChangeListener(java.lang.String listName, ListChangeListener listener)
          Add a listener that listens to all list change events with the specified list name.
 void addPropertyChangeListener(PropertyChangeListener listener)
          Add a listener that listens to all property change events, regardless of the property name associated with that event.
 void addPropertyChangeListener(java.lang.String propertyName, PropertyChangeListener listener)
          Add a listener that listens to all property change events with the specified property name.
 void addStateChangeListener(StateChangeListener listener)
          Add a listener that listens to all state change events.
 void addTreeChangeListener(java.lang.String treeName, TreeChangeListener listener)
          Add a listener that listens to all tree change events with the specified tree name.
 void addTreeChangeListener(TreeChangeListener listener)
          Add a listener that listens to all tree change events, regardless of the tree name associated with that event.
 void removeCollectionChangeListener(CollectionChangeListener listener)
          Remove a listener that listens to all collection change events, regardless of the collection name associated with that event.
 void removeCollectionChangeListener(java.lang.String collectionName, CollectionChangeListener listener)
          Remove a listener that listens to all collection change events, with the specified collection name.
 void removeListChangeListener(ListChangeListener listener)
          Remove a listener that listens to all list change events, regardless of the list name associated with that event.
 void removeListChangeListener(java.lang.String listName, ListChangeListener listener)
          Remove a listener that listens to all list change events, with the specified list name.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Remove a listener that listens to all property change events, regardless of the property name associated with that event.
 void removePropertyChangeListener(java.lang.String propertyName, PropertyChangeListener listener)
          Remove a listener that listens to all property change events, with the specified property name.
 void removeStateChangeListener(StateChangeListener listener)
          Remove the specified state change listener.
 void removeTreeChangeListener(java.lang.String treeName, TreeChangeListener listener)
          Remove a listener that listens to all tree change events, with the specified tree name.
 void removeTreeChangeListener(TreeChangeListener listener)
          Remove a listener that listens to all tree change events, regardless of the tree name associated with that event.
 

Method Detail

addStateChangeListener

void addStateChangeListener(StateChangeListener listener)
Add a listener that listens to all state change events. The same listener may be added more than once and will be called as many times as it is added. The listener cannot be null.


removeStateChangeListener

void removeStateChangeListener(StateChangeListener listener)
Remove the specified state change listener. If the listener was added more than once, it will be notified one less time after being removed. An exception will be thrown if the listener is null or if the listener was never added.


addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener listener)
Add a listener that listens to all property change events, regardless of the property name associated with that event. The same listener may be added more than once and will be called as many times as it is added. The listener cannot be null.


addPropertyChangeListener

void addPropertyChangeListener(java.lang.String propertyName,
                               PropertyChangeListener listener)
Add a listener that listens to all property change events with the specified property name. The same listener may be added more than once and will be called as many times as it is added. The listener cannot be null.


removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener that listens to all property change events, regardless of the property name associated with that event. If the listener was added more than once, it will be notified one less time after being removed. An exception will be thrown if the listener is null or if the listener was never added.


removePropertyChangeListener

void removePropertyChangeListener(java.lang.String propertyName,
                                  PropertyChangeListener listener)
Remove a listener that listens to all property change events, with the specified property name. If the listener was added more than once, it will be notified one less time after being removed. An exception will be thrown if the listener is null or if the listener was never added.


addCollectionChangeListener

void addCollectionChangeListener(CollectionChangeListener listener)
Add a listener that listens to all collection change events, regardless of the collection name associated with that event. The same listener may be added more than once and will be called as many times as it is added. The listener cannot be null.


addCollectionChangeListener

void addCollectionChangeListener(java.lang.String collectionName,
                                 CollectionChangeListener listener)
Add a listener that listens to all collection change events with the specified collection name. The same listener may be added more than once and will be called as many times as it is added. The listener cannot be null.


removeCollectionChangeListener

void removeCollectionChangeListener(CollectionChangeListener listener)
Remove a listener that listens to all collection change events, regardless of the collection name associated with that event. If the listener was added more than once, it will be notified one less time after being removed. An exception will be thrown if the listener is null or if the listener was never added.


removeCollectionChangeListener

void removeCollectionChangeListener(java.lang.String collectionName,
                                    CollectionChangeListener listener)
Remove a listener that listens to all collection change events, with the specified collection name. If the listener was added more than once, it will be notified one less time after being removed. An exception will be thrown if the listener is null or if the listener was never added.


addListChangeListener

void addListChangeListener(ListChangeListener listener)
Add a listener that listens to all list change events, regardless of the list name associated with that event. The same listener may be added more than once and will be called as many times as it is added. The listener cannot be null.


addListChangeListener

void addListChangeListener(java.lang.String listName,
                           ListChangeListener listener)
Add a listener that listens to all list change events with the specified list name. The same listener may be added more than once and will be called as many times as it is added. The listener cannot be null.


removeListChangeListener

void removeListChangeListener(ListChangeListener listener)
Remove a listener that listens to all list change events, regardless of the list name associated with that event. If the listener was added more than once, it will be notified one less time after being removed. An exception will be thrown if the listener is null or if the listener was never added.


removeListChangeListener

void removeListChangeListener(java.lang.String listName,
                              ListChangeListener listener)
Remove a listener that listens to all list change events, with the specified list name. If the listener was added more than once, it will be notified one less time after being removed. An exception will be thrown if the listener is null or if the listener was never added.


addTreeChangeListener

void addTreeChangeListener(TreeChangeListener listener)
Add a listener that listens to all tree change events, regardless of the tree name associated with that event. The same listener may be added more than once and will be called as many times as it is added. The listener cannot be null.


addTreeChangeListener

void addTreeChangeListener(java.lang.String treeName,
                           TreeChangeListener listener)
Add a listener that listens to all tree change events with the specified tree name. The same listener may be added more than once and will be called as many times as it is added. The listener cannot be null.


removeTreeChangeListener

void removeTreeChangeListener(TreeChangeListener listener)
Remove a listener that listens to all tree change events, regardless of the tree name associated with that event. If the listener was added more than once, it will be notified one less time after being removed. An exception will be thrown if the listener is null or if the listener was never added.


removeTreeChangeListener

void removeTreeChangeListener(java.lang.String treeName,
                              TreeChangeListener listener)
Remove a listener that listens to all tree change events, with the specified tree name. If the listener was added more than once, it will be notified one less time after being removed. An exception will be thrown if the listener is null or if the listener was never added.