br.shob.event
Class StorageEvent

java.lang.Object
  |
  +--br.shob.event.ShobEvent
        |
        +--br.shob.event.StorageEvent
All Implemented Interfaces:
Serializable

public class StorageEvent
extends ShobEvent

Description of the Class

Since:
September 8, 2002
Author:
dukejeffrie
See Also:
Serialized Form

Field Summary
static int ADD_EVENT
          Description of the Field
static int CHANGE_EVENT
          Description of the Field
static int LOCK_EVENT
          Description of the Field
static int REMOVE_EVENT
          Description of the Field
static int UNLOCK_EVENT
          Description of the Field
 
Constructor Summary
protected StorageEvent(int eventType, PhantomReference oldValue, SharedReference newValue)
          Constructor for the StorageEvent object
protected StorageEvent(int eventType, String globalName)
          Constructor for the StorageEvent object
 
Method Summary
 String getGlobalName()
          Gets the globalName attribute of the StorageEvent object
 SharedReference getNewValue()
          Gets the newValue attribute of the StorageEvent object
 PhantomReference getOldValue()
          Gets the oldValue attribute of the StorageEvent object
 boolean isAddEvent()
          Gets the addEvent attribute of the StorageEvent object
 boolean isChangeEvent()
          Gets the changeEvent attribute of the StorageEvent object
 boolean isLockEvent()
          Gets the lockEvent attribute of the StorageEvent object
 boolean isRemoveEvent()
          Gets the removeEvent attribute of the StorageEvent object
 boolean isUnlockEvent()
          Gets the unlockEvent attribute of the StorageEvent object
 String toString()
          Description of the Method
 
Methods inherited from class br.shob.event.ShobEvent
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD_EVENT

public static final int ADD_EVENT
Description of the Field

See Also:
Constant Field Values

CHANGE_EVENT

public static final int CHANGE_EVENT
Description of the Field

See Also:
Constant Field Values

LOCK_EVENT

public static final int LOCK_EVENT
Description of the Field

See Also:
Constant Field Values

REMOVE_EVENT

public static final int REMOVE_EVENT
Description of the Field

See Also:
Constant Field Values

UNLOCK_EVENT

public static final int UNLOCK_EVENT
Description of the Field

See Also:
Constant Field Values
Constructor Detail

StorageEvent

protected StorageEvent(int eventType,
                       PhantomReference oldValue,
                       SharedReference newValue)
Constructor for the StorageEvent object

Parameters:
eventType - Description of the Parameter
oldValue - Description of the Parameter
newValue - Description of the Parameter

StorageEvent

protected StorageEvent(int eventType,
                       String globalName)
Constructor for the StorageEvent object

Parameters:
eventType - Description of the Parameter
globalName - Description of the Parameter
Method Detail

getGlobalName

public String getGlobalName()
Gets the globalName attribute of the StorageEvent object

Returns:
The globalName value

getNewValue

public SharedReference getNewValue()
Gets the newValue attribute of the StorageEvent object

Returns:
The newValue value

getOldValue

public PhantomReference getOldValue()
Gets the oldValue attribute of the StorageEvent object

Returns:
The oldValue value

isAddEvent

public boolean isAddEvent()
Gets the addEvent attribute of the StorageEvent object

Returns:
The addEvent value

isChangeEvent

public boolean isChangeEvent()
Gets the changeEvent attribute of the StorageEvent object

Returns:
The changeEvent value

isLockEvent

public boolean isLockEvent()
Gets the lockEvent attribute of the StorageEvent object

Returns:
The lockEvent value

isRemoveEvent

public boolean isRemoveEvent()
Gets the removeEvent attribute of the StorageEvent object

Returns:
The removeEvent value

isUnlockEvent

public boolean isUnlockEvent()
Gets the unlockEvent attribute of the StorageEvent object

Returns:
The unlockEvent value

toString

public String toString()
Description of the Method

Overrides:
toString in class Object
Returns:
Description of the Return Value