org.nuiton.topia.event
Class TopiaTransactionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.nuiton.topia.event.TopiaTransactionEvent
All Implemented Interfaces:
Serializable

public class TopiaTransactionEvent
extends EventObject

Event fires for TopiaTransactionListener.

Version:
$Id: TopiaTransactionEvent.java 2010 2010-06-13 18:18:35Z tchemit $
Author:
poussin
See Also:
TopiaTransactionListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TopiaTransactionEvent(TopiaContext source)
           
TopiaTransactionEvent(TopiaContext source, Map<TopiaEntity,EntityState> entities)
           
 
Method Summary
protected  void finalize()
           
 Set<TopiaEntity> getEntities()
           
 TopiaContext getSource()
           
 TopiaContext getTopiaContext()
          Deprecated. since 2.3.4, prefer the overriden getSource().
 boolean isCreate(TopiaEntity entity)
           
 boolean isDelete(TopiaEntity entity)
           
 boolean isLoad(TopiaEntity entity)
           
 boolean isModification(TopiaEntity entity)
           
 boolean isRead(TopiaEntity entity)
           
 boolean isUpdate(TopiaEntity entity)
           
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopiaTransactionEvent

public TopiaTransactionEvent(TopiaContext source)

TopiaTransactionEvent

public TopiaTransactionEvent(TopiaContext source,
                             Map<TopiaEntity,EntityState> entities)
Method Detail

getEntities

public Set<TopiaEntity> getEntities()

isLoad

public boolean isLoad(TopiaEntity entity)

isRead

public boolean isRead(TopiaEntity entity)

isCreate

public boolean isCreate(TopiaEntity entity)

isUpdate

public boolean isUpdate(TopiaEntity entity)

isDelete

public boolean isDelete(TopiaEntity entity)

isModification

public boolean isModification(TopiaEntity entity)

getSource

public TopiaContext getSource()
Overrides:
getSource in class EventObject

getTopiaContext

@Deprecated
public TopiaContext getTopiaContext()
Deprecated. since 2.3.4, prefer the overriden getSource().

Returns:
the source context that fires the event

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2004-2010 CodeLutin. All Rights Reserved.