org.openrdf.sesame.sail.util
Class SailChangedEventImpl

java.lang.Object
  extended byorg.openrdf.sesame.sail.util.SailChangedEventImpl
All Implemented Interfaces:
SailChangedEvent

public class SailChangedEventImpl
extends Object
implements SailChangedEvent

Default implementation of the SailChangedEvent interface.

Author:
Jeen Broekstra

Constructor Summary
SailChangedEventImpl()
          Creates a new SailChangedEventImpl in which all possible changes are set to false.
SailChangedEventImpl(boolean statementsAdded, boolean statementsRemoved)
          Creates a new SailChangedEventImpl in which statementsAdded and statementsRemoved are set to the supplied values.
 
Method Summary
 boolean sailChanged()
          Utitiliy method that ndicates whether anything has changed in the Sail during this even.
 void setStatementsAdded(boolean statementsAdded)
           
 void setStatementsRemoved(boolean statementsRemoved)
           
 boolean statementsAdded()
          Indicates if statements were added to the Sail during the event.
 boolean statementsRemoved()
          Indicates if statements were removed from the Sail during the event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SailChangedEventImpl

public SailChangedEventImpl()
Creates a new SailChangedEventImpl in which all possible changes are set to false.


SailChangedEventImpl

public SailChangedEventImpl(boolean statementsAdded,
                            boolean statementsRemoved)
Creates a new SailChangedEventImpl in which statementsAdded and statementsRemoved are set to the supplied values.

Parameters:
statementsAdded - indicates if statements were added during this event.
statementsRemoved - indicates if statements were removed during this event.
Method Detail

setStatementsAdded

public void setStatementsAdded(boolean statementsAdded)

setStatementsRemoved

public void setStatementsRemoved(boolean statementsRemoved)

sailChanged

public boolean sailChanged()
Utitiliy method that ndicates whether anything has changed in the Sail during this even. NOTE: this is not meant to be used at the listener-side, it is strictly a convenience method at the event-producing side.

Returns:
true if the sail has changed, false otherwise.

statementsAdded

public boolean statementsAdded()
Description copied from interface: SailChangedEvent
Indicates if statements were added to the Sail during the event.

Specified by:
statementsAdded in interface SailChangedEvent
Returns:
true if statements were added during the event, false otherwise.

statementsRemoved

public boolean statementsRemoved()
Description copied from interface: SailChangedEvent
Indicates if statements were removed from the Sail during the event.

Specified by:
statementsRemoved in interface SailChangedEvent
Returns:
true if statements were removed during the event, false otherwise.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.