Holger's
Java API

com.antelmann.mgmt
Class DBUpdateEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.antelmann.mgmt.DBUpdateEvent
All Implemented Interfaces:
Serializable

public class DBUpdateEvent
extends EventObject

Author:
Holger Antelmann
See Also:
Serialized Form

Nested Class Summary
static class DBUpdateEvent.UpdateType
           
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DBUpdateEvent(DBClassStore<?> source, DBUpdateEvent.UpdateType type, Resource resource)
           
 
Method Summary
 Resource getResource()
          returns the actual object that was inserted, updated or deleted
 DBClassStore<?> getSource()
          returns the store that updated the database.
 DBUpdateEvent.UpdateType getType()
          indicates whether it was an update, insert or delete
 User getUser()
          returns the user that was associated with the database of the source while this event was created
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBUpdateEvent

public DBUpdateEvent(DBClassStore<?> source,
                     DBUpdateEvent.UpdateType type,
                     Resource resource)
Method Detail

getUser

public User getUser()
returns the user that was associated with the database of the source while this event was created


getSource

public DBClassStore<?> getSource()
returns the store that updated the database.

Overrides:
getSource in class EventObject

getResource

public Resource getResource()
returns the actual object that was inserted, updated or deleted


getType

public DBUpdateEvent.UpdateType getType()
indicates whether it was an update, insert or delete



(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads