Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.map.event
Class DomainEvent  view DomainEvent download DomainEvent.java

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.objectstyle.cayenne.event.CayenneEvent
          extended byorg.objectstyle.cayenne.map.event.MapEvent
              extended byorg.objectstyle.cayenne.map.event.DomainEvent
All Implemented Interfaces:
java.io.Serializable

public class DomainEvent
extends MapEvent

Represents events resulted from DataDomain changes in CayenneModeler.


Field Summary
protected  org.objectstyle.cayenne.access.DataDomain domain
           
 
Fields inherited from class org.objectstyle.cayenne.map.event.MapEvent
ADD, CHANGE, id, oldName, REMOVE
 
Fields inherited from class org.objectstyle.cayenne.event.CayenneEvent
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DomainEvent(java.lang.Object src, org.objectstyle.cayenne.access.DataDomain domain)
          Creates a domain change event.
DomainEvent(java.lang.Object src, org.objectstyle.cayenne.access.DataDomain domain, int id)
          Creates a domain event of a specified type.
DomainEvent(java.lang.Object src, org.objectstyle.cayenne.access.DataDomain domain, java.lang.String oldName)
          Creates a domain name change event.
 
Method Summary
 org.objectstyle.cayenne.access.DataDomain getDomain()
          Returns domain object associated with this event.
 java.lang.String getNewName()
          Returns the newName of the object that caused this event.
 void setDomain(org.objectstyle.cayenne.access.DataDomain domain)
          Sets domain object associated with this event.
 
Methods inherited from class org.objectstyle.cayenne.map.event.MapEvent
getId, getOldName, isNameChange, setId, setOldName
 
Methods inherited from class org.objectstyle.cayenne.event.CayenneEvent
getInfo
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

domain

protected org.objectstyle.cayenne.access.DataDomain domain
Constructor Detail

DomainEvent

public DomainEvent(java.lang.Object src,
                   org.objectstyle.cayenne.access.DataDomain domain)
Creates a domain change event.


DomainEvent

public DomainEvent(java.lang.Object src,
                   org.objectstyle.cayenne.access.DataDomain domain,
                   int id)
Creates a domain event of a specified type.


DomainEvent

public DomainEvent(java.lang.Object src,
                   org.objectstyle.cayenne.access.DataDomain domain,
                   java.lang.String oldName)
Creates a domain name change event.

Method Detail

getDomain

public org.objectstyle.cayenne.access.DataDomain getDomain()
Returns domain object associated with this event.


setDomain

public void setDomain(org.objectstyle.cayenne.access.DataDomain domain)
Sets domain object associated with this event.


getNewName

public java.lang.String getNewName()
Description copied from class: MapEvent
Returns the newName of the object that caused this event.

Specified by:
getNewName in class MapEvent