|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.util.AbstractMessage anon.infoservice.DatabaseMessage
public class DatabaseMessage
This is the message implementation used for database-specific messages. It is used from the instances of the Database class to notify their observers about database events. The message code identifies the reason of the notification.
Field Summary | |
---|---|
static int |
ALL_ENTRIES_REMOVED
This message is sent, if the database is cleared (all entries are removed at once). |
static int |
ENTRY_ADDED
This message is sent after an entry was added to the database. |
static int |
ENTRY_REMOVED
This message is sent, if a single entry is removed from the database. |
static int |
ENTRY_RENEWED
This message is sent after an entry was renewed in the database. |
static int |
INITIAL_OBSERVER_MESSAGE
This message is sent, if an observer registers at the database. |
Constructor Summary | |
---|---|
DatabaseMessage(int a_messageCode)
This creates a new DatabaseMessage. |
|
DatabaseMessage(int a_messageCode,
java.lang.Object a_messageData)
This creates a new DatabaseMessage. |
Method Summary |
---|
Methods inherited from class anon.util.AbstractMessage |
---|
getMessageCode, getMessageData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ENTRY_ADDED
public static final int ENTRY_RENEWED
public static final int ENTRY_REMOVED
public static final int ALL_ENTRIES_REMOVED
public static final int INITIAL_OBSERVER_MESSAGE
Constructor Detail |
---|
public DatabaseMessage(int a_messageCode)
a_messageCode
- The message code. See the constants in this class.public DatabaseMessage(int a_messageCode, java.lang.Object a_messageData)
a_messageCode
- The message code. See the constants in this class.a_messageData
- The data to send with the message.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |